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

Unified Diff: components/surfaces/surfaces_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/surfaces_impl.h ('k') | components/surfaces/surfaces_service_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/surfaces/surfaces_impl.cc
diff --git a/components/surfaces/surfaces_impl.cc b/components/surfaces/surfaces_impl.cc
index 10e6982b80af7a230893bbfd28d7e0767b79b2a4..682af12777061b71a3a3acf58de02e58ef16e20e 100644
--- a/components/surfaces/surfaces_impl.cc
+++ b/components/surfaces/surfaces_impl.cc
@@ -9,6 +9,7 @@
#include "cc/resources/returned_resource.h"
#include "cc/surfaces/surface_id_allocator.h"
#include "components/surfaces/surfaces_scheduler.h"
+#include "components/surfaces/surfaces_service_application.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/converters/surfaces/surfaces_type_converters.h"
@@ -22,11 +23,13 @@ void CallCallback(const mojo::Closure& callback, cc::SurfaceDrawStatus status) {
}
}
-SurfacesImpl::SurfacesImpl(cc::SurfaceManager* manager,
+SurfacesImpl::SurfacesImpl(SurfacesServiceApplication* application,
+ cc::SurfaceManager* manager,
uint32_t id_namespace,
SurfacesScheduler* scheduler,
mojo::InterfaceRequest<mojo::Surface> request)
- : manager_(manager),
+ : application_(application),
+ manager_(manager),
factory_(manager, this),
id_namespace_(id_namespace),
scheduler_(scheduler),
@@ -34,6 +37,7 @@ SurfacesImpl::SurfacesImpl(cc::SurfaceManager* manager,
}
SurfacesImpl::~SurfacesImpl() {
+ application_->SurfaceDestroyed(this);
factory_.DestroyAll();
}
« no previous file with comments | « components/surfaces/surfaces_impl.h ('k') | components/surfaces/surfaces_service_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698