| 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 CCProxy_h | 5 #ifndef CCProxy_h |
| 6 #define CCProxy_h | 6 #define CCProxy_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 <public/WebCompositorOutputSurface.h> | 10 #include <public/WebCompositorOutputSurface.h> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual bool recreateContext() = 0; | 58 virtual bool recreateContext() = 0; |
| 59 | 59 |
| 60 virtual void renderingStats(RenderingStats*) = 0; | 60 virtual void renderingStats(RenderingStats*) = 0; |
| 61 | 61 |
| 62 virtual const RendererCapabilities& rendererCapabilities() const = 0; | 62 virtual const RendererCapabilities& rendererCapabilities() const = 0; |
| 63 | 63 |
| 64 virtual void setNeedsAnimate() = 0; | 64 virtual void setNeedsAnimate() = 0; |
| 65 virtual void setNeedsCommit() = 0; | 65 virtual void setNeedsCommit() = 0; |
| 66 virtual void setNeedsRedraw() = 0; | 66 virtual void setNeedsRedraw() = 0; |
| 67 | 67 |
| 68 // Defers commits until it is reset. It is only supported when in threaded m
ode. It's an error to make a sync call |
| 69 // like compositeAndReadback while commits are deferred. |
| 70 virtual void setDeferCommits(bool) = 0; |
| 71 |
| 68 virtual void didAddAnimation() = 0; | 72 virtual void didAddAnimation() = 0; |
| 69 | 73 |
| 70 virtual bool commitRequested() const = 0; | 74 virtual bool commitRequested() const = 0; |
| 71 | 75 |
| 72 virtual void start() = 0; // Must be called before using the proxy. | 76 virtual void start() = 0; // Must be called before using the proxy. |
| 73 virtual void stop() = 0; // Must be called before deleting the proxy. | 77 virtual void stop() = 0; // Must be called before deleting the proxy. |
| 74 | 78 |
| 75 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU | 79 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU |
| 76 // process. | 80 // process. |
| 77 virtual void forceSerializeOnSwapBuffers() = 0; | 81 virtual void forceSerializeOnSwapBuffers() = 0; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 #ifndef NDEBUG | 123 #ifndef NDEBUG |
| 120 DCHECK(Proxy::isMainThreadBlocked()); | 124 DCHECK(Proxy::isMainThreadBlocked()); |
| 121 Proxy::setMainThreadBlocked(false); | 125 Proxy::setMainThreadBlocked(false); |
| 122 #endif | 126 #endif |
| 123 } | 127 } |
| 124 }; | 128 }; |
| 125 | 129 |
| 126 } | 130 } |
| 127 | 131 |
| 128 #endif | 132 #endif |
| OLD | NEW |