| 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_PROXY_H_ | 5 #ifndef CC_PROXY_H_ |
| 6 #define CC_PROXY_H_ | 6 #define CC_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual const RendererCapabilities& rendererCapabilities() const = 0; | 74 virtual const RendererCapabilities& rendererCapabilities() const = 0; |
| 75 | 75 |
| 76 virtual void setNeedsAnimate() = 0; | 76 virtual void setNeedsAnimate() = 0; |
| 77 virtual void setNeedsCommit() = 0; | 77 virtual void setNeedsCommit() = 0; |
| 78 virtual void setNeedsRedraw() = 0; | 78 virtual void setNeedsRedraw() = 0; |
| 79 | 79 |
| 80 // Defers commits until it is reset. It is only supported when in threaded m
ode. It's an error to make a sync call | 80 // Defers commits until it is reset. It is only supported when in threaded m
ode. It's an error to make a sync call |
| 81 // like compositeAndReadback while commits are deferred. | 81 // like compositeAndReadback while commits are deferred. |
| 82 virtual void setDeferCommits(bool) = 0; | 82 virtual void setDeferCommits(bool) = 0; |
| 83 | 83 |
| 84 virtual void didAddAnimation() = 0; | |
| 85 | |
| 86 virtual bool commitRequested() const = 0; | 84 virtual bool commitRequested() const = 0; |
| 87 | 85 |
| 88 virtual void start() = 0; // Must be called before using the proxy. | 86 virtual void start() = 0; // Must be called before using the proxy. |
| 89 virtual void stop() = 0; // Must be called before deleting the proxy. | 87 virtual void stop() = 0; // Must be called before deleting the proxy. |
| 90 | 88 |
| 91 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU | 89 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU |
| 92 // process. | 90 // process. |
| 93 virtual void forceSerializeOnSwapBuffers() = 0; | 91 virtual void forceSerializeOnSwapBuffers() = 0; |
| 94 | 92 |
| 95 // Maximum number of sub-region texture updates supported for each commit. | 93 // Maximum number of sub-region texture updates supported for each commit. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 class DebugScopedSetMainThreadBlocked { | 136 class DebugScopedSetMainThreadBlocked { |
| 139 public: | 137 public: |
| 140 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } | 138 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } |
| 141 ~DebugScopedSetMainThreadBlocked() { } | 139 ~DebugScopedSetMainThreadBlocked() { } |
| 142 }; | 140 }; |
| 143 #endif | 141 #endif |
| 144 | 142 |
| 145 } | 143 } |
| 146 | 144 |
| 147 #endif // CC_PROXY_H_ | 145 #endif // CC_PROXY_H_ |
| OLD | NEW |