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

Unified Diff: components/viz/frame_sinks/mojo_frame_sink_manager.h

Issue 2880023002: cc::SurfaceDependencyTracker should not crash when a Display goes away (Closed)
Patch Set: StrictMock => NiceMock Created 3 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
Index: components/viz/frame_sinks/mojo_frame_sink_manager.h
diff --git a/components/viz/frame_sinks/mojo_frame_sink_manager.h b/components/viz/frame_sinks/mojo_frame_sink_manager.h
index 2539862e624aaa0be2ebb362a2758038c34198f0..07df39e38b4d21ce23239497a137ab0f7f6044c5 100644
--- a/components/viz/frame_sinks/mojo_frame_sink_manager.h
+++ b/components/viz/frame_sinks/mojo_frame_sink_manager.h
@@ -94,6 +94,9 @@ class VIZ_EXPORT MojoFrameSinkManager
// access to a valid pointer for the entirety of their lifetimes.
cc::SurfaceManager manager_;
+ std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
+ std::unique_ptr<cc::SurfaceDependencyTracker> dependency_tracker_;
+
// Provides a cc::Display for CreateRootCompositorFrameSink().
DisplayProvider* const display_provider_;

Powered by Google App Engine
This is Rietveld 408576698