OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_SURFACES_DISPLAY_H_ | 5 #ifndef CC_SURFACES_DISPLAY_H_ |
6 #define CC_SURFACES_DISPLAY_H_ | 6 #define CC_SURFACES_DISPLAY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void SetExternalClip(const gfx::Rect& clip); | 77 void SetExternalClip(const gfx::Rect& clip); |
78 void SetExternalViewport(const gfx::Rect& viewport); | 78 void SetExternalViewport(const gfx::Rect& viewport); |
79 void SetOutputIsSecure(bool secure); | 79 void SetOutputIsSecure(bool secure); |
80 | 80 |
81 const SurfaceId& CurrentSurfaceId(); | 81 const SurfaceId& CurrentSurfaceId(); |
82 | 82 |
83 // DisplaySchedulerClient implementation. | 83 // DisplaySchedulerClient implementation. |
84 bool DrawAndSwap() override; | 84 bool DrawAndSwap() override; |
85 | 85 |
86 // OutputSurfaceClient implementation. | 86 // OutputSurfaceClient implementation. |
87 void CommitVSyncParameters(base::TimeTicks timebase, | |
88 base::TimeDelta interval) override; | |
89 void SetBeginFrameSource(BeginFrameSource* source) override; | 87 void SetBeginFrameSource(BeginFrameSource* source) override; |
90 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; | 88 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; |
91 void DidSwapBuffersComplete() override; | 89 void DidSwapBuffersComplete() override; |
92 void DidReceiveTextureInUseResponses( | 90 void DidReceiveTextureInUseResponses( |
93 const gpu::TextureInUseResponses& responses) override; | 91 const gpu::TextureInUseResponses& responses) override; |
94 void ReclaimResources(const ReturnedResourceArray& resources) override; | 92 void ReclaimResources(const ReturnedResourceArray& resources) override; |
95 void DidLoseOutputSurface() override; | 93 void DidLoseOutputSurface() override; |
96 void SetExternalTilePriorityConstraints( | 94 void SetExternalTilePriorityConstraints( |
97 const gfx::Rect& viewport_rect, | 95 const gfx::Rect& viewport_rect, |
98 const gfx::Transform& transform) override; | 96 const gfx::Transform& transform) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 SoftwareRenderer* software_renderer_ = nullptr; | 141 SoftwareRenderer* software_renderer_ = nullptr; |
144 std::vector<ui::LatencyInfo> stored_latency_info_; | 142 std::vector<ui::LatencyInfo> stored_latency_info_; |
145 | 143 |
146 private: | 144 private: |
147 DISALLOW_COPY_AND_ASSIGN(Display); | 145 DISALLOW_COPY_AND_ASSIGN(Display); |
148 }; | 146 }; |
149 | 147 |
150 } // namespace cc | 148 } // namespace cc |
151 | 149 |
152 #endif // CC_SURFACES_DISPLAY_H_ | 150 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |