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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 16863005: cc: Add BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@nofrc12
Patch Set: 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
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 59e940c518ce2516b08bce3d3ac89e7675ea38a9..4709aa3c6f380acc7011c60570df3fd274c2d7b1 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/time.h"
#include "cc/base/cc_export.h"
+#include "cc/output/begin_frame_args.h"
#include "cc/scheduler/scheduler_settings.h"
namespace cc {
@@ -78,8 +79,7 @@ class CC_EXPORT SchedulerStateMachine {
// Indicates that the system has entered and left a BeginFrame callback.
// The scheduler will not draw more than once in a given BeginFrame
// callback.
- void DidEnterBeginFrame();
- void SetFrameTime(base::TimeTicks frame_time);
+ void DidEnterBeginFrame(BeginFrameArgs args);
void DidLeaveBeginFrame();
bool inside_begin_frame() const { return inside_begin_frame_; }
@@ -188,7 +188,7 @@ class CC_EXPORT SchedulerStateMachine {
bool expect_immediate_begin_frame_for_main_thread_;
bool main_thread_needs_layer_textures_;
bool inside_begin_frame_;
- base::TimeTicks last_frame_time_;
+ BeginFrameArgs last_begin_frame_args_;
bool visible_;
bool can_start_;
bool can_draw_;

Powered by Google App Engine
This is Rietveld 408576698