| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void Start() = 0; | 82 virtual void Start() = 0; |
| 83 virtual void Stop() = 0; // Must be called before deleting the proxy. | 83 virtual void Stop() = 0; // Must be called before deleting the proxy. |
| 84 | 84 |
| 85 // Forces 3D commands on all contexts to wait for all previous SwapBuffers | 85 // Forces 3D commands on all contexts to wait for all previous SwapBuffers |
| 86 // to finish before executing in the GPU process. | 86 // to finish before executing in the GPU process. |
| 87 virtual void ForceSerializeOnSwapBuffers() = 0; | 87 virtual void ForceSerializeOnSwapBuffers() = 0; |
| 88 | 88 |
| 89 // Maximum number of sub-region texture updates supported for each commit. | 89 // Maximum number of sub-region texture updates supported for each commit. |
| 90 virtual size_t MaxPartialTextureUpdates() const = 0; | 90 virtual size_t MaxPartialTextureUpdates() const = 0; |
| 91 | 91 |
| 92 virtual bool SupportsImplScrolling() const = 0; |
| 93 |
| 92 virtual scoped_ptr<base::Value> AsValue() const = 0; | 94 virtual scoped_ptr<base::Value> AsValue() const = 0; |
| 93 | 95 |
| 94 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; | 96 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; |
| 95 | 97 |
| 96 // Testing hooks | 98 // Testing hooks |
| 97 virtual bool CommitPendingForTesting() = 0; | 99 virtual bool CommitPendingForTesting() = 0; |
| 98 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting(); | 100 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting(); |
| 99 | 101 |
| 100 protected: | 102 protected: |
| 101 explicit Proxy( | 103 explicit Proxy( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
| 138 ~DebugScopedSetMainThreadBlocked() {} | 140 ~DebugScopedSetMainThreadBlocked() {} |
| 139 private: | 141 private: |
| 140 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
| 141 }; | 143 }; |
| 142 #endif | 144 #endif |
| 143 | 145 |
| 144 } // namespace cc | 146 } // namespace cc |
| 145 | 147 |
| 146 #endif // CC_TREES_PROXY_H_ | 148 #endif // CC_TREES_PROXY_H_ |
| OLD | NEW |