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

Unified Diff: components/surfaces/display_factory_impl.cc

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
« no previous file with comments | « components/surfaces/display_factory_impl.h ('k') | components/surfaces/display_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/surfaces/display_factory_impl.cc
diff --git a/components/surfaces/display_factory_impl.cc b/components/surfaces/display_factory_impl.cc
index fa7a5a8d4683c4f4175bc6ab3b646beabe9f4846..f9ba9b9adc13b0ba5dbb54f1fa3572e91ea2e12a 100644
--- a/components/surfaces/display_factory_impl.cc
+++ b/components/surfaces/display_factory_impl.cc
@@ -5,22 +5,26 @@
#include "components/surfaces/display_factory_impl.h"
#include "cc/surfaces/surface_id.h"
+#include "components/surfaces/surfaces_service_application.h"
namespace surfaces {
DisplayFactoryImpl::DisplayFactoryImpl(
+ SurfacesServiceApplication* application,
cc::SurfaceManager* manager,
uint32_t id_namespace,
SurfacesScheduler* scheduler,
mojo::InterfaceRequest<mojo::DisplayFactory> request)
: id_namespace_(id_namespace),
next_local_id_(1u),
+ application_(application),
scheduler_(scheduler),
manager_(manager),
binding_(this, request.Pass()) {
}
DisplayFactoryImpl::~DisplayFactoryImpl() {
+ application_->DisplayFactoryDestroyed(this);
}
void DisplayFactoryImpl::Create(
« no previous file with comments | « components/surfaces/display_factory_impl.h ('k') | components/surfaces/display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698