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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Maximum number of sub-region texture updates supported for each commit. | 98 // Maximum number of sub-region texture updates supported for each commit. |
99 virtual size_t MaxPartialTextureUpdates() const = 0; | 99 virtual size_t MaxPartialTextureUpdates() const = 0; |
100 | 100 |
101 virtual bool SupportsImplScrolling() const = 0; | 101 virtual bool SupportsImplScrolling() const = 0; |
102 | 102 |
103 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; | 103 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; |
104 | 104 |
105 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | 105 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; |
106 | 106 |
| 107 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; |
| 108 |
107 // Testing hooks | 109 // Testing hooks |
108 virtual bool MainFrameWillHappenForTesting() = 0; | 110 virtual bool MainFrameWillHappenForTesting() = 0; |
109 | 111 |
110 BlockingTaskRunner* blocking_main_thread_task_runner() const { | 112 BlockingTaskRunner* blocking_main_thread_task_runner() const { |
111 return blocking_main_thread_task_runner_.get(); | 113 return blocking_main_thread_task_runner_.get(); |
112 } | 114 } |
113 | 115 |
114 protected: | 116 protected: |
115 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 117 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
116 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 118 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
154 ~DebugScopedSetMainThreadBlocked() {} | 156 ~DebugScopedSetMainThreadBlocked() {} |
155 private: | 157 private: |
156 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
157 }; | 159 }; |
158 #endif | 160 #endif |
159 | 161 |
160 } // namespace cc | 162 } // namespace cc |
161 | 163 |
162 #endif // CC_TREES_PROXY_H_ | 164 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |