| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 virtual void setVisible(bool) = 0; | 53 virtual void setVisible(bool) = 0; |
| 54 | 54 |
| 55 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. | 55 // Attempts to initialize the layer renderer. Returns false if the context i
sn't usable for compositing. |
| 56 virtual bool initializeRenderer() = 0; | 56 virtual bool initializeRenderer() = 0; |
| 57 | 57 |
| 58 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be | 58 // Attempts to recreate the context and layer renderer after a context lost.
Returns false if the renderer couldn't be |
| 59 // reinitialized. | 59 // reinitialized. |
| 60 virtual bool recreateContext() = 0; | 60 virtual bool recreateContext() = 0; |
| 61 | 61 |
| 62 virtual int compositorIdentifier() const = 0; | |
| 63 | |
| 64 virtual void implSideRenderingStats(CCRenderingStats&) = 0; | 62 virtual void implSideRenderingStats(CCRenderingStats&) = 0; |
| 65 | 63 |
| 66 virtual const RendererCapabilities& rendererCapabilities() const = 0; | 64 virtual const RendererCapabilities& rendererCapabilities() const = 0; |
| 67 | 65 |
| 68 virtual void setNeedsAnimate() = 0; | 66 virtual void setNeedsAnimate() = 0; |
| 69 virtual void setNeedsCommit() = 0; | 67 virtual void setNeedsCommit() = 0; |
| 70 virtual void setNeedsRedraw() = 0; | 68 virtual void setNeedsRedraw() = 0; |
| 71 | 69 |
| 72 virtual void didAddAnimation() = 0; | 70 virtual void didAddAnimation() = 0; |
| 73 | 71 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 #if !ASSERT_DISABLED | 118 #if !ASSERT_DISABLED |
| 121 ASSERT(CCProxy::isMainThreadBlocked()); | 119 ASSERT(CCProxy::isMainThreadBlocked()); |
| 122 CCProxy::setMainThreadBlocked(false); | 120 CCProxy::setMainThreadBlocked(false); |
| 123 #endif | 121 #endif |
| 124 } | 122 } |
| 125 }; | 123 }; |
| 126 | 124 |
| 127 } | 125 } |
| 128 | 126 |
| 129 #endif | 127 #endif |
| OLD | NEW |