OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_PROXY_H_ | 5 #ifndef CC_TREES_PROXY_H_ |
6 #define CC_TREES_PROXY_H_ | 6 #define CC_TREES_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 virtual bool IsStarted() const = 0; | 58 virtual bool IsStarted() const = 0; |
59 virtual bool CommitToActiveTree() const = 0; | 59 virtual bool CommitToActiveTree() const = 0; |
60 | 60 |
61 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted | 61 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted |
62 // with the result of this function. | 62 // with the result of this function. |
63 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; | 63 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; |
64 | 64 |
65 virtual void ReleaseOutputSurface() = 0; | 65 virtual void ReleaseOutputSurface() = 0; |
66 | 66 |
67 // Indicates that the compositing surface associated with our context is | |
68 // ready to use. | |
69 virtual void SetLayerTreeHostClientReady() = 0; | |
70 | |
71 virtual void SetVisible(bool visible) = 0; | 67 virtual void SetVisible(bool visible) = 0; |
72 | 68 |
73 virtual void SetThrottleFrameProduction(bool throttle) = 0; | 69 virtual void SetThrottleFrameProduction(bool throttle) = 0; |
74 | 70 |
75 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 71 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
76 | 72 |
77 virtual void SetNeedsAnimate() = 0; | 73 virtual void SetNeedsAnimate() = 0; |
78 virtual void SetNeedsUpdateLayers() = 0; | 74 virtual void SetNeedsUpdateLayers() = 0; |
79 virtual void SetNeedsCommit() = 0; | 75 virtual void SetNeedsCommit() = 0; |
80 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; | 76 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 147 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
152 ~DebugScopedSetMainThreadBlocked() {} | 148 ~DebugScopedSetMainThreadBlocked() {} |
153 private: | 149 private: |
154 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 150 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
155 }; | 151 }; |
156 #endif | 152 #endif |
157 | 153 |
158 } // namespace cc | 154 } // namespace cc |
159 | 155 |
160 #endif // CC_TREES_PROXY_H_ | 156 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |