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

Unified Diff: cc/surfaces/onscreen_display_client.h

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 5 years, 2 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 | « cc/surfaces/display_unittest.cc ('k') | cc/surfaces/onscreen_display_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/onscreen_display_client.h
diff --git a/cc/surfaces/onscreen_display_client.h b/cc/surfaces/onscreen_display_client.h
index 4c4245d4161eb3e04120f582ce04fed82c8a3872..30943066d3dc4d8518682f6a9ae3b245eecc0617 100644
--- a/cc/surfaces/onscreen_display_client.h
+++ b/cc/surfaces/onscreen_display_client.h
@@ -53,11 +53,14 @@ class CC_SURFACES_EXPORT OnscreenDisplayClient
protected:
scoped_ptr<OutputSurface> output_surface_;
- scoped_ptr<Display> display_;
+ // Be careful of destruction order:
+ // Display depends on DisplayScheduler depends on *BeginFrameSource
+ // depends on TaskRunner.
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
scoped_ptr<SyntheticBeginFrameSource> synthetic_frame_source_;
scoped_ptr<BackToBackBeginFrameSource> unthrottled_frame_source_;
scoped_ptr<DisplayScheduler> scheduler_;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
+ scoped_ptr<Display> display_;
SurfaceDisplayOutputSurface* surface_display_output_surface_;
bool output_surface_lost_;
bool disable_display_vsync_;
« no previous file with comments | « cc/surfaces/display_unittest.cc ('k') | cc/surfaces/onscreen_display_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698