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

Unified Diff: cc/surfaces/display_scheduler.cc

Issue 2565783002: Moves ownership of the cc::Display's BeginFrameSource out of Display. (Closed)
Patch Set: rebase. Created 4 years 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_scheduler.h ('k') | cc/surfaces/display_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_scheduler.cc
diff --git a/cc/surfaces/display_scheduler.cc b/cc/surfaces/display_scheduler.cc
index 229bc6306ccb1ecf4af4056e074b35a56ac9f429..46f26ff331f2306d8f504b58f907fbc060d0affd 100644
--- a/cc/surfaces/display_scheduler.cc
+++ b/cc/surfaces/display_scheduler.cc
@@ -13,10 +13,10 @@
namespace cc {
-DisplayScheduler::DisplayScheduler(BeginFrameSource* begin_frame_source,
- base::SingleThreadTaskRunner* task_runner,
+DisplayScheduler::DisplayScheduler(base::SingleThreadTaskRunner* task_runner,
int max_pending_swaps)
- : begin_frame_source_(begin_frame_source),
+ : client_(nullptr),
+ begin_frame_source_(nullptr),
task_runner_(task_runner),
inside_surface_damaged_(false),
visible_(false),
@@ -44,6 +44,11 @@ void DisplayScheduler::SetClient(DisplaySchedulerClient* client) {
client_ = client;
}
+void DisplayScheduler::SetBeginFrameSource(
+ BeginFrameSource* begin_frame_source) {
+ begin_frame_source_ = begin_frame_source;
+}
+
void DisplayScheduler::SetVisible(bool visible) {
if (visible_ == visible)
return;
« no previous file with comments | « cc/surfaces/display_scheduler.h ('k') | cc/surfaces/display_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698