Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Unified Diff: content/browser/compositor/image_transport_factory.h

Issue 2083853002: exo: Recreate Surface resources on context lost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698