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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #if DCHECK_IS_ON() | 49 #if DCHECK_IS_ON() |
50 void SetMainThreadBlocked(bool is_main_thread_blocked); | 50 void SetMainThreadBlocked(bool is_main_thread_blocked); |
51 void SetCurrentThreadIsImplThread(bool is_impl_thread); | 51 void SetCurrentThreadIsImplThread(bool is_impl_thread); |
52 #endif | 52 #endif |
53 | 53 |
54 virtual ~Proxy(); | 54 virtual ~Proxy(); |
55 | 55 |
56 virtual void FinishAllRendering() = 0; | 56 virtual void FinishAllRendering() = 0; |
57 | 57 |
58 virtual bool IsStarted() const = 0; | 58 virtual bool IsStarted() const = 0; |
| 59 virtual bool CommitToActiveTree() const = 0; |
59 | 60 |
60 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted | 61 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted |
61 // with the result of this function. | 62 // with the result of this function. |
62 virtual void SetOutputSurface(scoped_ptr<OutputSurface> output_surface) = 0; | 63 virtual void SetOutputSurface(scoped_ptr<OutputSurface> output_surface) = 0; |
63 | 64 |
64 // Indicates that the compositing surface associated with our context is | 65 // Indicates that the compositing surface associated with our context is |
65 // ready to use. | 66 // ready to use. |
66 virtual void SetLayerTreeHostClientReady() = 0; | 67 virtual void SetLayerTreeHostClientReady() = 0; |
67 | 68 |
68 virtual void SetVisible(bool visible) = 0; | 69 virtual void SetVisible(bool visible) = 0; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 158 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
158 ~DebugScopedSetMainThreadBlocked() {} | 159 ~DebugScopedSetMainThreadBlocked() {} |
159 private: | 160 private: |
160 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 161 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
161 }; | 162 }; |
162 #endif | 163 #endif |
163 | 164 |
164 } // namespace cc | 165 } // namespace cc |
165 | 166 |
166 #endif // CC_TREES_PROXY_H_ | 167 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |