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

Unified Diff: ui/compositor/compositor.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/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 0524bbda906218dd5b42fc6f53b6b4737af07543..9710ebf7c740fa4a7093840d9ddcffa9eb245bed 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -54,6 +54,18 @@ bool IsRunningInMojoShell(base::CommandLine* command_line) {
namespace ui {
+ContextFactory::~ContextFactory() {}
+
+void ContextFactory::AddObserver(ContextFactoryObserver* observer) {
+ observer_list_.AddObserver(observer);
+}
+
+void ContextFactory::RemoveObserver(ContextFactoryObserver* observer) {
+ observer_list_.RemoveObserver(observer);
+}
+
+ContextFactory::ContextFactory() {}
+
CompositorLock::CompositorLock(Compositor* compositor)
: compositor_(compositor) {
if (compositor_->locks_will_time_out_) {

Powered by Google App Engine
This is Rietveld 408576698