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; |
87 void SetBeginFrameSource(BeginFrameSource* source) override; | 89 void SetBeginFrameSource(BeginFrameSource* source) override; |
88 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; | 90 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; |
89 void DidSwapBuffersComplete() override; | 91 void DidSwapBuffersComplete() override; |
90 void DidReceiveTextureInUseResponses( | 92 void DidReceiveTextureInUseResponses( |
91 const gpu::TextureInUseResponses& responses) override; | 93 const gpu::TextureInUseResponses& responses) override; |
92 void ReclaimResources(const ReturnedResourceArray& resources) override; | 94 void ReclaimResources(const ReturnedResourceArray& resources) override; |
93 void DidLoseOutputSurface() override; | 95 void DidLoseOutputSurface() override; |
94 void SetExternalTilePriorityConstraints( | 96 void SetExternalTilePriorityConstraints( |
95 const gfx::Rect& viewport_rect, | 97 const gfx::Rect& viewport_rect, |
96 const gfx::Transform& transform) override; | 98 const gfx::Transform& transform) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 SoftwareRenderer* software_renderer_ = nullptr; | 143 SoftwareRenderer* software_renderer_ = nullptr; |
142 std::vector<ui::LatencyInfo> stored_latency_info_; | 144 std::vector<ui::LatencyInfo> stored_latency_info_; |
143 | 145 |
144 private: | 146 private: |
145 DISALLOW_COPY_AND_ASSIGN(Display); | 147 DISALLOW_COPY_AND_ASSIGN(Display); |
146 }; | 148 }; |
147 | 149 |
148 } // namespace cc | 150 } // namespace cc |
149 | 151 |
150 #endif // CC_SURFACES_DISPLAY_H_ | 152 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |