Chromium Code Reviews| 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 BeginFrameRequested() = 0; | |
|
brianderson
2014/08/21 00:14:00
SetChildrenNeedBeginFrames(bool enable)?
The 's'
simonhong
2014/08/26 08:24:48
This also removed.
| |
| 104 | |
| 103 // Testing hooks | 105 // Testing hooks |
| 104 virtual bool CommitPendingForTesting() = 0; | 106 virtual bool CommitPendingForTesting() = 0; |
| 105 | 107 |
| 106 protected: | 108 protected: |
| 107 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 109 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 110 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 109 friend class DebugScopedSetImplThread; | 111 friend class DebugScopedSetImplThread; |
| 110 friend class DebugScopedSetMainThread; | 112 friend class DebugScopedSetMainThread; |
| 111 friend class DebugScopedSetMainThreadBlocked; | 113 friend class DebugScopedSetMainThreadBlocked; |
| 112 | 114 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 145 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 144 ~DebugScopedSetMainThreadBlocked() {} | 146 ~DebugScopedSetMainThreadBlocked() {} |
| 145 private: | 147 private: |
| 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 148 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 147 }; | 149 }; |
| 148 #endif | 150 #endif |
| 149 | 151 |
| 150 } // namespace cc | 152 } // namespace cc |
| 151 | 153 |
| 152 #endif // CC_TREES_PROXY_H_ | 154 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |