| Index: content/browser/compositor/image_transport_factory.h
|
| diff --git a/content/browser/compositor/image_transport_factory.h b/content/browser/compositor/image_transport_factory.h
|
| index 984d652884725f6216695f99d73ec2668c53bfba..376e240877549b7e3077e6f27cb472437c618879 100644
|
| --- a/content/browser/compositor/image_transport_factory.h
|
| +++ b/content/browser/compositor/image_transport_factory.h
|
| @@ -28,6 +28,7 @@ enum class SwapResult;
|
| namespace ui {
|
| class Compositor;
|
| class ContextFactory;
|
| +class ContextFactoryObserver;
|
| class Texture;
|
| }
|
|
|
| @@ -37,20 +38,6 @@ class GLHelper;
|
|
|
| namespace content {
|
|
|
| -// This class provides a way to get notified when surface handles get lost.
|
| -class CONTENT_EXPORT ImageTransportFactoryObserver {
|
| - public:
|
| - virtual ~ImageTransportFactoryObserver() {}
|
| -
|
| - // Notifies that the surface handles generated by ImageTransportFactory were
|
| - // lost.
|
| - // When this is called, the old resources (e.g. shared context, GL helper)
|
| - // still exist, but are about to be destroyed. Getting a reference to those
|
| - // resources from the ImageTransportFactory (e.g. through GetGLHelper) will
|
| - // return newly recreated, valid resources.
|
| - virtual void OnLostResources() = 0;
|
| -};
|
| -
|
| // This class provides the interface for creating the support for the
|
| // cross-process image transport, both for creating the shared surface handle
|
| // (destination surface for the GPU process) and the transport client (logic for
|
| @@ -83,9 +70,6 @@ class CONTENT_EXPORT ImageTransportFactory {
|
| // (ImageTransportFactoryObserver::OnLostResources is called).
|
| virtual display_compositor::GLHelper* GetGLHelper() = 0;
|
|
|
| - virtual void AddObserver(ImageTransportFactoryObserver* observer) = 0;
|
| - virtual void RemoveObserver(ImageTransportFactoryObserver* observer) = 0;
|
| -
|
| #if defined(OS_MACOSX)
|
| // Called with |suspended| as true when the ui::Compositor has been
|
| // disconnected from an NSView and may be attached to another one. Called
|
|
|