blob: dab44d6bcfe548689553523f593d1d58cb79166b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_CLIENT_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_CLIENT_H_
#include "components/viz/common/quads/render_pass.h"
namespace gfx {
struct CALayerParams;
} // namespace gfx
namespace ui {
class LatencyInfo;
} // namespace ui
namespace viz {
class DisplayClient {
public:
virtual ~DisplayClient() {}
virtual void DisplayOutputSurfaceLost() = 0;
virtual void DisplayWillDrawAndSwap(bool will_draw_and_swap,
const RenderPassList& render_passes) = 0;
virtual void DisplayDidDrawAndSwap() = 0;
virtual void DisplayDidReceiveCALayerParams(
const gfx::CALayerParams& ca_layer_params) = 0;
virtual void DisplayDidCompleteSwapWithSize(const gfx::Size& pixel_size) = 0;
// Notifies that a swap has occured after some latency info with snapshot
// component reached the display.
virtual void DidSwapAfterSnapshotRequestReceived(
const std::vector<ui::LatencyInfo>& latency_info) = 0;
};
} // namespace viz
#endif // COMPONENTS_VIZ_SERVICE_DISPLAY_DISPLAY_CLIENT_H_
|