| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // The FrameRateController is deprecated. | 156 // The FrameRateController is deprecated. |
| 157 // Platforms should move to native BeginFrames instead. | 157 // Platforms should move to native BeginFrames instead. |
| 158 void OnVSyncParametersChanged(base::TimeTicks timebase, | 158 void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 159 base::TimeDelta interval); | 159 base::TimeDelta interval); |
| 160 virtual void FrameRateControllerTick(bool throttled, | 160 virtual void FrameRateControllerTick(bool throttled, |
| 161 const BeginFrameArgs& args) OVERRIDE; | 161 const BeginFrameArgs& args) OVERRIDE; |
| 162 scoped_ptr<FrameRateController> frame_rate_controller_; | 162 scoped_ptr<FrameRateController> frame_rate_controller_; |
| 163 int max_frames_pending_; | 163 int max_frames_pending_; |
| 164 int pending_swap_buffers_; | 164 int pending_swap_buffers_; |
| 165 bool needs_begin_frame_; | 165 bool needs_begin_frame_; |
| 166 bool begin_frame_pending_; | 166 bool client_ready_for_begin_frame_; |
| 167 | 167 |
| 168 // Forwarded to OutputSurfaceClient but threaded through OutputSurface | 168 // Forwarded to OutputSurfaceClient but threaded through OutputSurface |
| 169 // first so OutputSurface has a chance to update the FrameRateController | 169 // first so OutputSurface has a chance to update the FrameRateController |
| 170 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 170 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 171 void BeginFrame(const BeginFrameArgs& args); | 171 void BeginFrame(const BeginFrameArgs& args); |
| 172 void DidSwapBuffers(); | 172 void DidSwapBuffers(); |
| 173 void OnSwapBuffersComplete(const CompositorFrameAck* ack); | 173 void OnSwapBuffersComplete(const CompositorFrameAck* ack); |
| 174 void DidLoseOutputSurface(); | 174 void DidLoseOutputSurface(); |
| 175 void SetExternalStencilTest(bool enabled); | 175 void SetExternalStencilTest(bool enabled); |
| 176 void SetExternalDrawConstraints(const gfx::Transform& transform, | 176 void SetExternalDrawConstraints(const gfx::Transform& transform, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 201 bool check_for_retroactive_begin_frame_pending_; | 201 bool check_for_retroactive_begin_frame_pending_; |
| 202 | 202 |
| 203 bool external_stencil_test_enabled_; | 203 bool external_stencil_test_enabled_; |
| 204 | 204 |
| 205 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 205 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace cc | 208 } // namespace cc |
| 209 | 209 |
| 210 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 210 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |