| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Testing hooks | 103 // Testing hooks |
| 104 virtual bool CommitPendingForTesting() = 0; | 104 virtual bool MainFrameWillHappenForTesting() = 0; |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 107 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 109 friend class DebugScopedSetImplThread; | 109 friend class DebugScopedSetImplThread; |
| 110 friend class DebugScopedSetMainThread; | 110 friend class DebugScopedSetMainThread; |
| 111 friend class DebugScopedSetMainThreadBlocked; | 111 friend class DebugScopedSetMainThreadBlocked; |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 114 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 144 ~DebugScopedSetMainThreadBlocked() {} | 144 ~DebugScopedSetMainThreadBlocked() {} |
| 145 private: | 145 private: |
| 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 147 }; | 147 }; |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 } // namespace cc | 150 } // namespace cc |
| 151 | 151 |
| 152 #endif // CC_TREES_PROXY_H_ | 152 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |