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

Unified Diff: ui/compositor/test/in_process_context_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 browser test 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: ui/compositor/test/in_process_context_factory.h
diff --git a/ui/compositor/test/in_process_context_factory.h b/ui/compositor/test/in_process_context_factory.h
index 525126021bfcaeb7ce39167941acb89347d80a52..b873db9c995b7c8c51bd73173f1ba36e6535e8b4 100644
--- a/ui/compositor/test/in_process_context_factory.h
+++ b/ui/compositor/test/in_process_context_factory.h
@@ -41,6 +41,10 @@ class InProcessContextFactory : public ContextFactory {
use_test_surface_ = use_test_surface;
}
+ // This is used to call OnLostResources on all clients, to ensure they stop
+ // using the SharedMainThreadContextProvider.
+ void SendOnLostResources();
+
// ContextFactory implementation
void CreateOutputSurface(base::WeakPtr<Compositor> compositor) override;

Powered by Google App Engine
This is Rietveld 408576698