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

Unified Diff: components/surfaces/display_impl.h

Issue 1131933006: Ensure that instances of DisplayImpl and SurfaceImpl don't outlive SurfacesServiceApplication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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.cc ('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_impl.h
diff --git a/components/surfaces/display_impl.h b/components/surfaces/display_impl.h
index d10150d9208496a36ea09d2d7fa3faec84d886bc..5e101704844eff6c858f73c803199db918fe81c6 100644
--- a/components/surfaces/display_impl.h
+++ b/components/surfaces/display_impl.h
@@ -19,13 +19,15 @@ class SurfaceFactory;
namespace surfaces {
class SurfacesScheduler;
+class SurfacesServiceApplication;
class DisplayImpl : public mojo::Display,
public mojo::ViewportParameterListener,
public cc::DisplayClient,
public cc::SurfaceFactoryClient {
public:
- DisplayImpl(cc::SurfaceManager* manager,
+ DisplayImpl(SurfacesServiceApplication* application,
+ cc::SurfaceManager* manager,
cc::SurfaceId cc_id,
SurfacesScheduler* scheduler,
mojo::ContextProviderPtr context_provider,
@@ -57,6 +59,7 @@ class DisplayImpl : public mojo::Display,
void Draw();
+ SurfacesServiceApplication* application_;
cc::SurfaceManager* manager_;
cc::SurfaceFactory factory_;
cc::SurfaceId cc_id_;
« no previous file with comments | « components/surfaces/display_factory_impl.cc ('k') | components/surfaces/display_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698