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_CLIENT_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 // Called to synchronously re-initialize using the Context3D. Upon returning | 24 // Called to synchronously re-initialize using the Context3D. Upon returning |
25 // the compositor should be able to draw using GL what was previously | 25 // the compositor should be able to draw using GL what was previously |
26 // committed. | 26 // committed. |
27 virtual bool DeferredInitialize( | 27 virtual bool DeferredInitialize( |
28 scoped_refptr<ContextProvider> offscreen_context_provider) = 0; | 28 scoped_refptr<ContextProvider> offscreen_context_provider) = 0; |
29 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0; | 29 virtual void SetNeedsRedrawRect(gfx::Rect damage_rect) = 0; |
30 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 30 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
31 base::TimeDelta interval) = 0; | 31 base::TimeDelta interval) = 0; |
32 virtual void BeginFrame(base::TimeTicks frame_time) = 0; | 32 virtual void BeginFrame(base::TimeTicks frame_time) = 0; |
33 virtual void OnSendFrameToParentCompositorAck( | 33 virtual void OnSwapBuffersComplete(const CompositorFrameAck* ack) = 0; |
34 const CompositorFrameAck& ack) = 0; | |
35 virtual void OnSwapBuffersComplete() = 0; | |
36 virtual void DidLoseOutputSurface() = 0; | 34 virtual void DidLoseOutputSurface() = 0; |
37 virtual void SetExternalDrawConstraints(const gfx::Transform& transform, | 35 virtual void SetExternalDrawConstraints(const gfx::Transform& transform, |
38 gfx::Rect viewport) = 0; | 36 gfx::Rect viewport) = 0; |
39 | 37 |
40 protected: | 38 protected: |
41 virtual ~OutputSurfaceClient() {} | 39 virtual ~OutputSurfaceClient() {} |
42 }; | 40 }; |
43 | 41 |
44 } // namespace cc | 42 } // namespace cc |
45 | 43 |
46 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ | 44 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
OLD | NEW |