| 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 | 94 |
| 95 // Maximum number of sub-region texture updates supported for each commit. | 95 // Maximum number of sub-region texture updates supported for each commit. |
| 96 virtual size_t MaxPartialTextureUpdates() const = 0; | 96 virtual size_t MaxPartialTextureUpdates() const = 0; |
| 97 | 97 |
| 98 virtual scoped_ptr<base::Value> AsValue() const = 0; | 98 virtual scoped_ptr<base::Value> AsValue() const = 0; |
| 99 | 99 |
| 100 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | 100 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; |
| 101 | 101 |
| 102 // Testing hooks | 102 // Testing hooks |
| 103 virtual bool CommitPendingForTesting() = 0; | 103 virtual bool CommitPendingForTesting() = 0; |
| 104 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting(); | 104 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting(); |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 explicit Proxy( | 107 explicit Proxy( |
| 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 27 matching lines...) Expand all Loading... |
| 142 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 142 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 143 ~DebugScopedSetMainThreadBlocked() {} | 143 ~DebugScopedSetMainThreadBlocked() {} |
| 144 private: | 144 private: |
| 145 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 145 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 146 }; | 146 }; |
| 147 #endif | 147 #endif |
| 148 | 148 |
| 149 } // namespace cc | 149 } // namespace cc |
| 150 | 150 |
| 151 #endif // CC_TREES_PROXY_H_ | 151 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |