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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 SurfaceId CurrentSurfaceId(); | 81 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, | 87 void CommitVSyncParameters(base::TimeTicks timebase, |
88 base::TimeDelta interval) override; | 88 base::TimeDelta interval) override; |
89 void SetBeginFrameSource(BeginFrameSource* source) override; | 89 void SetBeginFrameSource(BeginFrameSource* source) override; |
90 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; | 90 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; |
91 void DidSwapBuffers() override; | |
92 void DidSwapBuffersComplete() override; | 91 void DidSwapBuffersComplete() override; |
93 void DidReceiveTextureInUseResponses( | 92 void DidReceiveTextureInUseResponses( |
94 const gpu::TextureInUseResponses& responses) override; | 93 const gpu::TextureInUseResponses& responses) override; |
95 void ReclaimResources(const CompositorFrameAck* ack) override; | 94 void ReclaimResources(const CompositorFrameAck* ack) override; |
96 void DidLoseOutputSurface() override; | 95 void DidLoseOutputSurface() override; |
97 void SetExternalTilePriorityConstraints( | 96 void SetExternalTilePriorityConstraints( |
98 const gfx::Rect& viewport_rect, | 97 const gfx::Rect& viewport_rect, |
99 const gfx::Transform& transform) override; | 98 const gfx::Transform& transform) override; |
100 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; | 99 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; |
101 void SetTreeActivationCallback(const base::Closure& callback) override; | 100 void SetTreeActivationCallback(const base::Closure& callback) override; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 SoftwareRenderer* software_renderer_ = nullptr; | 145 SoftwareRenderer* software_renderer_ = nullptr; |
147 std::vector<ui::LatencyInfo> stored_latency_info_; | 146 std::vector<ui::LatencyInfo> stored_latency_info_; |
148 | 147 |
149 private: | 148 private: |
150 DISALLOW_COPY_AND_ASSIGN(Display); | 149 DISALLOW_COPY_AND_ASSIGN(Display); |
151 }; | 150 }; |
152 | 151 |
153 } // namespace cc | 152 } // namespace cc |
154 | 153 |
155 #endif // CC_SURFACES_DISPLAY_H_ | 154 #endif // CC_SURFACES_DISPLAY_H_ |
OLD | NEW |