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 virtual void setDeferCommits(bool) = 0; | |
jamesr
2012/10/23 17:50:44
Document
jonathan.backer
2012/10/23 19:26:42
Done.
| |
69 | |
68 virtual void didAddAnimation() = 0; | 70 virtual void didAddAnimation() = 0; |
69 | 71 |
70 virtual bool commitRequested() const = 0; | 72 virtual bool commitRequested() const = 0; |
71 | 73 |
72 virtual void start() = 0; // Must be called before using the proxy. | 74 virtual void start() = 0; // Must be called before using the proxy. |
73 virtual void stop() = 0; // Must be called before deleting the proxy. | 75 virtual void stop() = 0; // Must be called before deleting the proxy. |
74 | 76 |
75 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU | 77 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU |
76 // process. | 78 // process. |
77 virtual void forceSerializeOnSwapBuffers() = 0; | 79 virtual void forceSerializeOnSwapBuffers() = 0; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 #ifndef NDEBUG | 121 #ifndef NDEBUG |
120 DCHECK(Proxy::isMainThreadBlocked()); | 122 DCHECK(Proxy::isMainThreadBlocked()); |
121 Proxy::setMainThreadBlocked(false); | 123 Proxy::setMainThreadBlocked(false); |
122 #endif | 124 #endif |
123 } | 125 } |
124 }; | 126 }; |
125 | 127 |
126 } | 128 } |
127 | 129 |
128 #endif | 130 #endif |
OLD | NEW |