| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void SetThrottleFrameProduction(bool enable); | 109 void SetThrottleFrameProduction(bool enable); |
| 110 | 110 |
| 111 void InitializeBeginFrameEmulation(base::SingleThreadTaskRunner* task_runner, | 111 void InitializeBeginFrameEmulation(base::SingleThreadTaskRunner* task_runner, |
| 112 base::TimeDelta interval); | 112 base::TimeDelta interval); |
| 113 | 113 |
| 114 virtual void EnsureBackbuffer(); | 114 virtual void EnsureBackbuffer(); |
| 115 virtual void DiscardBackbuffer(); | 115 virtual void DiscardBackbuffer(); |
| 116 | 116 |
| 117 virtual void Reshape(const 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 float SurfaceScaleFactor() const; |
| 119 | 120 |
| 120 virtual void BindFramebuffer(); | 121 virtual void BindFramebuffer(); |
| 121 | 122 |
| 122 // The implementation may destroy or steal the contents of the CompositorFrame | 123 // The implementation may destroy or steal the contents of the CompositorFrame |
| 123 // passed in (though it will not take ownership of the CompositorFrame | 124 // passed in (though it will not take ownership of the CompositorFrame |
| 124 // itself). | 125 // itself). |
| 125 virtual void SwapBuffers(CompositorFrame* frame); | 126 virtual void SwapBuffers(CompositorFrame* frame); |
| 126 | 127 |
| 127 // Notifies frame-rate smoothness preference. If true, all non-critical | 128 // Notifies frame-rate smoothness preference. If true, all non-critical |
| 128 // processing should be stopped, or lowered in priority. | 129 // processing should be stopped, or lowered in priority. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 std::deque<unsigned> available_gpu_latency_query_ids_; | 218 std::deque<unsigned> available_gpu_latency_query_ids_; |
| 218 std::deque<unsigned> pending_gpu_latency_query_ids_; | 219 std::deque<unsigned> pending_gpu_latency_query_ids_; |
| 219 RollingTimeDeltaHistory gpu_latency_history_; | 220 RollingTimeDeltaHistory gpu_latency_history_; |
| 220 | 221 |
| 221 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 222 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 222 }; | 223 }; |
| 223 | 224 |
| 224 } // namespace cc | 225 } // namespace cc |
| 225 | 226 |
| 226 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 227 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |