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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual void SetVisible(bool visible) = 0; | 61 virtual void SetVisible(bool visible) = 0; |
62 | 62 |
63 // Attempts to recreate the context and renderer synchronously after the | 63 // Attempts to recreate the context and renderer synchronously after the |
64 // output surface is lost. Calls | 64 // output surface is lost. Calls |
65 // LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted with the result. | 65 // LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted with the result. |
66 virtual void CreateAndInitializeOutputSurface() = 0; | 66 virtual void CreateAndInitializeOutputSurface() = 0; |
67 | 67 |
68 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; | 68 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; |
69 | 69 |
70 virtual void SetNeedsAnimate() = 0; | 70 virtual void SetNeedsAnimate() = 0; |
| 71 virtual void SetNeedsUpdateLayers() = 0; |
71 virtual void SetNeedsCommit() = 0; | 72 virtual void SetNeedsCommit() = 0; |
72 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0; | 73 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0; |
73 | 74 |
74 // Defers commits until it is reset. It is only supported when in threaded | 75 // Defers commits until it is reset. It is only supported when in threaded |
75 // mode. It's an error to make a sync call like CompositeAndReadback while | 76 // mode. It's an error to make a sync call like CompositeAndReadback while |
76 // commits are deferred. | 77 // commits are deferred. |
77 virtual void SetDeferCommits(bool defer_commits) = 0; | 78 virtual void SetDeferCommits(bool defer_commits) = 0; |
78 | 79 |
79 virtual void MainThreadHasStoppedFlinging() = 0; | 80 virtual void MainThreadHasStoppedFlinging() = 0; |
80 | 81 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 140 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
140 ~DebugScopedSetMainThreadBlocked() {} | 141 ~DebugScopedSetMainThreadBlocked() {} |
141 private: | 142 private: |
142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 143 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
143 }; | 144 }; |
144 #endif | 145 #endif |
145 | 146 |
146 } // namespace cc | 147 } // namespace cc |
147 | 148 |
148 #endif // CC_TREES_PROXY_H_ | 149 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |