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

Unified Diff: cc/scheduler/scheduler.h

Issue 16863005: cc: Add BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc12
Patch Set: Rebase Created 7 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 | « cc/scheduler/frame_rate_controller_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index facd7a2b04f21176888b79a0fde0e40d7cf6047f..93d5b4ec55f9b06f3a2518c9ce9ee367f2369188 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "cc/base/cc_export.h"
+#include "cc/output/begin_frame_args.h"
#include "cc/scheduler/scheduler_settings.h"
#include "cc/scheduler/scheduler_state_machine.h"
#include "cc/trees/layer_tree_host.h"
@@ -100,7 +101,7 @@ class CC_EXPORT Scheduler {
base::TimeTicks LastBeginFrameOnImplThreadTime();
- void BeginFrame(base::TimeTicks frame_time);
+ void BeginFrame(const BeginFrameArgs& args);
std::string StateAsStringForTesting() { return state_machine_.ToString(); }
@@ -122,8 +123,7 @@ class CC_EXPORT Scheduler {
// TODO(brianderson): crbug.com/249806 : Remove safe_to_expect_begin_frame_
// workaround.
bool safe_to_expect_begin_frame_;
- base::TimeTicks last_begin_frame_time_;
- base::TimeDelta interval_;
+ BeginFrameArgs last_begin_frame_args_;
SchedulerStateMachine state_machine_;
bool inside_process_scheduled_actions_;
« no previous file with comments | « cc/scheduler/frame_rate_controller_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698