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

Unified Diff: cc/output/output_surface.cc

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/output/output_surface.h ('k') | cc/resources/resource_update_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.cc
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc
index 002a44a37eb3f2a5f3ceaa437d959f006402321b..1ae5fe12596a8ee68b3bd6604ba0063fb25ddcb2 100644
--- a/cc/output/output_surface.cc
+++ b/cc/output/output_surface.cc
@@ -97,7 +97,7 @@ void OutputSurface::InitializeBeginImplFrameEmulation(
base::TimeDelta interval) {
if (throttle_frame_production) {
scoped_refptr<DelayBasedTimeSource> time_source;
- if (gfx::FrameTime::TimestampsAreHighRes())
+ if (gfx::FrameTime::IsHighRes())
time_source = DelayBasedTimeSourceHighRes::Create(interval, task_runner);
else
time_source = DelayBasedTimeSource::Create(interval, task_runner);
@@ -179,10 +179,10 @@ void OutputSurface::BeginImplFrame(const BeginFrameArgs& args) {
}
}
-base::TimeTicks OutputSurface::RetroactiveBeginImplFrameDeadline() {
+gfx::FrameTime OutputSurface::RetroactiveBeginImplFrameDeadline() {
// TODO(brianderson): Remove the alternative deadline once we have better
// deadline estimations.
- base::TimeTicks alternative_deadline =
+ gfx::FrameTime alternative_deadline =
skipped_begin_impl_frame_args_.frame_time +
BeginFrameArgs::DefaultRetroactiveBeginFramePeriod();
return std::max(skipped_begin_impl_frame_args_.deadline,
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/resources/resource_update_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698