| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Maximum number of sub-region texture updates supported for each commit. | 94 // Maximum number of sub-region texture updates supported for each commit. |
| 95 virtual size_t MaxPartialTextureUpdates() const = 0; | 95 virtual size_t MaxPartialTextureUpdates() const = 0; |
| 96 | 96 |
| 97 virtual bool SupportsImplScrolling() const = 0; | 97 virtual bool SupportsImplScrolling() const = 0; |
| 98 | 98 |
| 99 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; | 99 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; |
| 100 | 100 |
| 101 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | 101 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; |
| 102 | 102 |
| 103 virtual void SetAuthoritativeVSyncInterval(base::TimeDelta interval); |
| 104 |
| 105 virtual void SetChildrenNeedBeginFrames(bool need_begin_frame); |
| 106 |
| 103 // Testing hooks | 107 // Testing hooks |
| 104 virtual bool CommitPendingForTesting() = 0; | 108 virtual bool CommitPendingForTesting() = 0; |
| 105 | 109 |
| 106 protected: | 110 protected: |
| 107 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 111 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 112 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 109 friend class DebugScopedSetImplThread; | 113 friend class DebugScopedSetImplThread; |
| 110 friend class DebugScopedSetMainThread; | 114 friend class DebugScopedSetMainThread; |
| 111 friend class DebugScopedSetMainThreadBlocked; | 115 friend class DebugScopedSetMainThreadBlocked; |
| 112 | 116 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 147 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 144 ~DebugScopedSetMainThreadBlocked() {} | 148 ~DebugScopedSetMainThreadBlocked() {} |
| 145 private: | 149 private: |
| 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 150 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 147 }; | 151 }; |
| 148 #endif | 152 #endif |
| 149 | 153 |
| 150 } // namespace cc | 154 } // namespace cc |
| 151 | 155 |
| 152 #endif // CC_TREES_PROXY_H_ | 156 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |