OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_OUTPUT_OUTPUT_SURFACE_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void InitializeBeginImplFrameEmulation( | 107 void InitializeBeginImplFrameEmulation( |
108 base::SingleThreadTaskRunner* task_runner, | 108 base::SingleThreadTaskRunner* task_runner, |
109 bool throttle_frame_production, | 109 bool throttle_frame_production, |
110 base::TimeDelta interval); | 110 base::TimeDelta interval); |
111 | 111 |
112 void SetMaxFramesPending(int max_frames_pending); | 112 void SetMaxFramesPending(int max_frames_pending); |
113 | 113 |
114 virtual void EnsureBackbuffer(); | 114 virtual void EnsureBackbuffer(); |
115 virtual void DiscardBackbuffer(); | 115 virtual void DiscardBackbuffer(); |
116 | 116 |
117 virtual void Reshape(gfx::Size size, float scale_factor); | 117 virtual void Reshape(const gfx::Size& size, float scale_factor); |
118 virtual gfx::Size SurfaceSize() const; | 118 virtual gfx::Size SurfaceSize() const; |
119 | 119 |
120 virtual void BindFramebuffer(); | 120 virtual void BindFramebuffer(); |
121 | 121 |
122 // The implementation may destroy or steal the contents of the CompositorFrame | 122 // The implementation may destroy or steal the contents of the CompositorFrame |
123 // passed in (though it will not take ownership of the CompositorFrame | 123 // passed in (though it will not take ownership of the CompositorFrame |
124 // itself). | 124 // itself). |
125 virtual void SwapBuffers(CompositorFrame* frame); | 125 virtual void SwapBuffers(CompositorFrame* frame); |
126 | 126 |
127 // Notifies frame-rate smoothness preference. If true, all non-critical | 127 // Notifies frame-rate smoothness preference. If true, all non-critical |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 std::deque<unsigned> available_gpu_latency_query_ids_; | 211 std::deque<unsigned> available_gpu_latency_query_ids_; |
212 std::deque<unsigned> pending_gpu_latency_query_ids_; | 212 std::deque<unsigned> pending_gpu_latency_query_ids_; |
213 RollingTimeDeltaHistory gpu_latency_history_; | 213 RollingTimeDeltaHistory gpu_latency_history_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
216 }; | 216 }; |
217 | 217 |
218 } // namespace cc | 218 } // namespace cc |
219 | 219 |
220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |