| 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 "IntRect.h" | 8 #include "IntRect.h" |
| 9 #include <public/WebCompositorOutputSurface.h> | 9 #include <public/WebCompositorOutputSurface.h> |
| 10 #include <wtf/Noncopyable.h> | 10 #include <wtf/Noncopyable.h> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 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 implSideRenderingStats(CCRenderingStats&) = 0; | 61 virtual void renderingStats(CCRenderingStats*) = 0; |
| 62 | 62 |
| 63 virtual const RendererCapabilities& rendererCapabilities() const = 0; | 63 virtual const RendererCapabilities& rendererCapabilities() const = 0; |
| 64 | 64 |
| 65 virtual void setNeedsAnimate() = 0; | 65 virtual void setNeedsAnimate() = 0; |
| 66 virtual void setNeedsCommit() = 0; | 66 virtual void setNeedsCommit() = 0; |
| 67 virtual void setNeedsRedraw() = 0; | 67 virtual void setNeedsRedraw() = 0; |
| 68 | 68 |
| 69 virtual void didAddAnimation() = 0; | 69 virtual void didAddAnimation() = 0; |
| 70 | 70 |
| 71 virtual bool commitRequested() const = 0; | 71 virtual bool commitRequested() const = 0; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 #if !ASSERT_DISABLED | 117 #if !ASSERT_DISABLED |
| 118 ASSERT(CCProxy::isMainThreadBlocked()); | 118 ASSERT(CCProxy::isMainThreadBlocked()); |
| 119 CCProxy::setMainThreadBlocked(false); | 119 CCProxy::setMainThreadBlocked(false); |
| 120 #endif | 120 #endif |
| 121 } | 121 } |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } | 124 } |
| 125 | 125 |
| 126 #endif | 126 #endif |
| OLD | NEW |