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

Unified Diff: cc/surfaces/surface_factory.h

Issue 2087383002: Fix destruction order between SurfaceManger and OffscreenCanvasSurfaceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | cc/surfaces/surface_factory.cc » ('j') | cc/surfaces/surface_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_factory.h
diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h
index c869029cbaabe66cefb25c4934a5368bc9c7980c..d73817abb586ba1849091ff9c302597009f536f8 100644
--- a/cc/surfaces/surface_factory.h
+++ b/cc/surfaces/surface_factory.h
@@ -83,6 +83,8 @@ class CC_SURFACES_EXPORT SurfaceFactory
bool needs_sync_points() const { return needs_sync_points_; }
void set_needs_sync_points(bool needs) { needs_sync_points_ = needs; }
+ void onSurfaceManagerDestroyed() { manager_ = nullptr; }
+
private:
SurfaceManager* manager_;
SurfaceFactoryClient* client_;
« no previous file with comments | « no previous file | cc/surfaces/surface_factory.cc » ('j') | cc/surfaces/surface_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698