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

Unified Diff: cc/output/begin_frame_args.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 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/layers/picture_layer_impl.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/begin_frame_args.h
diff --git a/cc/output/begin_frame_args.h b/cc/output/begin_frame_args.h
index 025a4075c25e6b84ab9597dabac7e5c83b34ea1b..50f0f37491bf3b49711c04f314be8bb2e0c7bb90 100644
--- a/cc/output/begin_frame_args.h
+++ b/cc/output/begin_frame_args.h
@@ -7,6 +7,7 @@
#include "base/time/time.h"
#include "cc/base/cc_export.h"
+#include "ui/gfx/frame_time.h"
namespace cc {
@@ -16,8 +17,8 @@ struct CC_EXPORT BeginFrameArgs {
// You should be able to find all instances where a BeginFrame has been
// created by searching for "BeginFrameArgs::Create".
- static BeginFrameArgs Create(base::TimeTicks frame_time,
- base::TimeTicks deadline,
+ static BeginFrameArgs Create(gfx::FrameTime frame_time,
+ gfx::FrameTime deadline,
base::TimeDelta interval);
static BeginFrameArgs CreateForSynchronousCompositor();
static BeginFrameArgs CreateForTesting();
@@ -39,13 +40,13 @@ struct CC_EXPORT BeginFrameArgs {
bool IsValid() const { return interval >= base::TimeDelta(); }
- base::TimeTicks frame_time;
- base::TimeTicks deadline;
+ gfx::FrameTime frame_time;
+ gfx::FrameTime deadline;
base::TimeDelta interval;
private:
- BeginFrameArgs(base::TimeTicks frame_time,
- base::TimeTicks deadline,
+ BeginFrameArgs(gfx::FrameTime frame_time,
+ gfx::FrameTime deadline,
base::TimeDelta interval);
};
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/output/begin_frame_args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698