diff options
Diffstat (limited to 'content/browser/aura/image_transport_factory.h')
-rw-r--r-- | content/browser/aura/image_transport_factory.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/content/browser/aura/image_transport_factory.h b/content/browser/aura/image_transport_factory.h index 51bce67..fecb442 100644 --- a/content/browser/aura/image_transport_factory.h +++ b/content/browser/aura/image_transport_factory.h @@ -67,7 +67,13 @@ class CONTENT_EXPORT ImageTransportFactory { // Gets the image transport factory as a context factory for the compositor. virtual ui::ContextFactory* AsContextFactory() = 0; - virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() = 0; + // Creates a shared surface handle. + // Note: the handle may get lost at any time, a state that an + // ImageTransportFactoryObserver gets notified of. + virtual gfx::GLSurfaceHandle CreateSharedSurfaceHandle() = 0; + + // Destroys a shared surface handle. + virtual void DestroySharedSurfaceHandle(gfx::GLSurfaceHandle surface) = 0; // Creates a transport texture for a given scale factor. virtual scoped_refptr<ui::Texture> CreateTransportClient( |