| 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 "base/time.h" | 10 #include "base/time.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual void setVisible(bool) = 0; | 52 virtual void setVisible(bool) = 0; |
| 53 | 53 |
| 54 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. | 54 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. |
| 55 virtual bool initializeRenderer() = 0; | 55 virtual bool initializeRenderer() = 0; |
| 56 | 56 |
| 57 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be | 57 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be |
| 58 // reinitialized. | 58 // reinitialized. |
| 59 virtual bool recreateContext() = 0; | 59 virtual bool recreateContext() = 0; |
| 60 | 60 |
| 61 virtual void renderingStats(RenderingStats*) = 0; | 61 virtual void renderingStats(RenderingStats*) = 0; |
| 62 virtual void startRecordingRenderingStats() = 0; |
| 63 virtual void stopRecordingRenderingStats(RenderingStats*) = 0; |
| 62 | 64 |
| 63 virtual const RendererCapabilities& rendererCapabilities() const = 0; | 65 virtual const RendererCapabilities& rendererCapabilities() const = 0; |
| 64 | 66 |
| 65 virtual void setNeedsAnimate() = 0; | 67 virtual void setNeedsAnimate() = 0; |
| 66 virtual void setNeedsCommit() = 0; | 68 virtual void setNeedsCommit() = 0; |
| 67 virtual void setNeedsRedraw() = 0; | 69 virtual void setNeedsRedraw() = 0; |
| 68 | 70 |
| 69 // Defers commits until it is reset. It is only supported when in threaded m
ode. It's an error to make a sync call | 71 // Defers commits until it is reset. It is only supported when in threaded m
ode. It's an error to make a sync call |
| 70 // like compositeAndReadback while commits are deferred. | 72 // like compositeAndReadback while commits are deferred. |
| 71 virtual void setDeferCommits(bool) = 0; | 73 virtual void setDeferCommits(bool) = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 #ifndef NDEBUG | 126 #ifndef NDEBUG |
| 125 DCHECK(Proxy::isMainThreadBlocked()); | 127 DCHECK(Proxy::isMainThreadBlocked()); |
| 126 Proxy::setMainThreadBlocked(false); | 128 Proxy::setMainThreadBlocked(false); |
| 127 #endif | 129 #endif |
| 128 } | 130 } |
| 129 }; | 131 }; |
| 130 | 132 |
| 131 } | 133 } |
| 132 | 134 |
| 133 #endif | 135 #endif |
| OLD | NEW |