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

Unified Diff: ui/compositor/test/in_process_context_factory.cc

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.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index e68752f8f9c473c02d83e23eb81cbeedbf48377c..3818e182dd6f5b34f272c09436627b22224ff5c5 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -112,6 +112,10 @@ InProcessContextFactory::~InProcessContextFactory() {
DCHECK(per_compositor_data_.empty());
}
+void InProcessContextFactory::SendOnLostResources() {
+ FOR_EACH_OBSERVER(ContextFactoryObserver, observer_list_, OnLostResources());
+}
+
void InProcessContextFactory::CreateOutputSurface(
base::WeakPtr<Compositor> compositor) {
// Try to reuse existing shared worker context provider.
« ui/compositor/compositor.h ('K') | « ui/compositor/test/in_process_context_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698