Chromium Code Reviews| Index: ui/compositor/compositor.h |
| diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
| index f3720bce3cd7a3b81c6e9ceb54bfb3c71720eb16..a487482a2478928728f6c66d80a0d3eeea37160f 100644 |
| --- a/ui/compositor/compositor.h |
| +++ b/ui/compositor/compositor.h |
| @@ -54,6 +54,12 @@ class COMPOSITOR_EXPORT ContextFactory { |
| virtual WebKit::WebGraphicsContext3D* CreateContext( |
| Compositor* compositor) = 0; |
|
piman
2012/10/29 20:36:39
I think you don't need this one any more, since it
ajuma
2012/10/30 21:04:04
Done.
|
| + // Creates an output surface for the given compositor. The factory may keep |
| + // per-compositor data (e.g. a shared context), that needs to be cleaned up |
| + // by calling RemoveCompositor when the compositor gets destroyed. |
| + virtual WebKit::WebCompositorOutputSurface* CreateOutputSurface( |
| + Compositor* compositor) = 0; |
| + |
| // Creates a context used for offscreen rendering. This context can be shared |
| // with all compositors. |
| virtual WebKit::WebGraphicsContext3D* CreateOffscreenContext() = 0; |
| @@ -71,6 +77,8 @@ class COMPOSITOR_EXPORT DefaultContextFactory : public ContextFactory { |
| // ContextFactory implementation |
| virtual WebKit::WebGraphicsContext3D* CreateContext( |
| Compositor* compositor) OVERRIDE; |
| + virtual WebKit::WebCompositorOutputSurface* CreateOutputSurface( |
| + Compositor* compositor) OVERRIDE; |
| virtual WebKit::WebGraphicsContext3D* CreateOffscreenContext() OVERRIDE; |
| virtual void RemoveCompositor(Compositor* compositor) OVERRIDE; |