| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void PostSwapBuffersComplete(); | 152 void PostSwapBuffersComplete(); |
| 153 | 153 |
| 154 struct OutputSurface::Capabilities capabilities_; | 154 struct OutputSurface::Capabilities capabilities_; |
| 155 scoped_refptr<ContextProvider> context_provider_; | 155 scoped_refptr<ContextProvider> context_provider_; |
| 156 scoped_ptr<SoftwareOutputDevice> software_device_; | 156 scoped_ptr<SoftwareOutputDevice> software_device_; |
| 157 gfx::Size surface_size_; | 157 gfx::Size surface_size_; |
| 158 float device_scale_factor_; | 158 float device_scale_factor_; |
| 159 | 159 |
| 160 // The FrameRateController is deprecated. | 160 // The FrameRateController is deprecated. |
| 161 // Platforms should move to native BeginImplFrames instead. | 161 // Platforms should move to native BeginImplFrames instead. |
| 162 void CommitVSyncParameters(base::TimeTicks timebase, | 162 void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 163 base::TimeDelta interval); | 163 base::TimeDelta interval); |
| 164 virtual void FrameRateControllerTick(bool throttled, | 164 virtual void FrameRateControllerTick(bool throttled, |
| 165 const BeginFrameArgs& args) OVERRIDE; | 165 const BeginFrameArgs& args) OVERRIDE; |
| 166 scoped_ptr<FrameRateController> frame_rate_controller_; | 166 scoped_ptr<FrameRateController> frame_rate_controller_; |
| 167 int max_frames_pending_; | 167 int max_frames_pending_; |
| 168 int pending_swap_buffers_; | 168 int pending_swap_buffers_; |
| 169 bool needs_begin_impl_frame_; | 169 bool needs_begin_impl_frame_; |
| 170 bool client_ready_for_begin_impl_frame_; | 170 bool client_ready_for_begin_impl_frame_; |
| 171 | 171 |
| 172 // This stores a BeginImplFrame that we couldn't process immediately, | 172 // This stores a BeginImplFrame that we couldn't process immediately, |
| 173 // but might process retroactively in the near future. | 173 // but might process retroactively in the near future. |
| (...skipping 37 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 |