| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 bool HasClient() { return !!client_; } | 162 bool HasClient() { return !!client_; } |
| 163 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 163 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 164 void BeginFrame(const BeginFrameArgs& args); | 164 void BeginFrame(const BeginFrameArgs& args); |
| 165 void DidSwapBuffers(); | 165 void DidSwapBuffers(); |
| 166 void OnSwapBuffersComplete(const CompositorFrameAck* ack); | 166 void OnSwapBuffersComplete(const CompositorFrameAck* ack); |
| 167 void DidLoseOutputSurface(); | 167 void DidLoseOutputSurface(); |
| 168 void SetExternalDrawConstraints(const gfx::Transform& transform, | 168 void SetExternalDrawConstraints(const gfx::Transform& transform, |
| 169 gfx::Rect viewport); | 169 gfx::Rect viewport); |
| 170 | 170 |
| 171 // virtual for testing. | 171 // virtual for testing. |
| 172 virtual base::TimeDelta RetroactiveBeginFramePeriod(); | 172 virtual base::TimeTicks RetroactiveBeginFrameDeadline(); |
| 173 virtual void PostCheckForRetroactiveBeginFrame(); | 173 virtual void PostCheckForRetroactiveBeginFrame(); |
| 174 void CheckForRetroactiveBeginFrame(); | 174 void CheckForRetroactiveBeginFrame(); |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 OutputSurfaceClient* client_; | 177 OutputSurfaceClient* client_; |
| 178 friend class OutputSurfaceCallbacks; | 178 friend class OutputSurfaceCallbacks; |
| 179 | 179 |
| 180 void SetContext3D(scoped_ptr<WebKit::WebGraphicsContext3D> context3d); | 180 void SetContext3D(scoped_ptr<WebKit::WebGraphicsContext3D> context3d); |
| 181 | 181 |
| 182 BeginFrameArgs skipped_begin_frame_args_; | 182 BeginFrameArgs skipped_begin_frame_args_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 184 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace cc | 187 } // namespace cc |
| 188 | 188 |
| 189 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 189 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |