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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted | 60 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted |
61 // with the result of this function. | 61 // with the result of this function. |
62 virtual void SetOutputSurface(scoped_ptr<OutputSurface> output_surface) = 0; | 62 virtual void SetOutputSurface(scoped_ptr<OutputSurface> output_surface) = 0; |
63 | 63 |
64 // Indicates that the compositing surface associated with our context is | 64 // Indicates that the compositing surface associated with our context is |
65 // ready to use. | 65 // ready to use. |
66 virtual void SetLayerTreeHostClientReady() = 0; | 66 virtual void SetLayerTreeHostClientReady() = 0; |
67 | 67 |
68 virtual void SetVisible(bool visible) = 0; | 68 virtual void SetVisible(bool visible) = 0; |
69 | 69 |
| 70 virtual void SetThrottleFrameProduction(bool throttle) = 0; |
| 71 |
70 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 72 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
71 | 73 |
72 virtual void SetNeedsAnimate() = 0; | 74 virtual void SetNeedsAnimate() = 0; |
73 virtual void SetNeedsUpdateLayers() = 0; | 75 virtual void SetNeedsUpdateLayers() = 0; |
74 virtual void SetNeedsCommit() = 0; | 76 virtual void SetNeedsCommit() = 0; |
75 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; | 77 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; |
76 virtual void SetNextCommitWaitsForActivation() = 0; | 78 virtual void SetNextCommitWaitsForActivation() = 0; |
77 | 79 |
78 virtual void NotifyInputThrottledUntilCommit() = 0; | 80 virtual void NotifyInputThrottledUntilCommit() = 0; |
79 | 81 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 157 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
156 ~DebugScopedSetMainThreadBlocked() {} | 158 ~DebugScopedSetMainThreadBlocked() {} |
157 private: | 159 private: |
158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 160 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
159 }; | 161 }; |
160 #endif | 162 #endif |
161 | 163 |
162 } // namespace cc | 164 } // namespace cc |
163 | 165 |
164 #endif // CC_TREES_PROXY_H_ | 166 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |