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

Unified Diff: content/browser/compositor/delegated_frame_host.cc

Issue 1143433005: Remove gfx::FrameTime for a single clock source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling patch for mac files Created 5 years, 7 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: content/browser/compositor/delegated_frame_host.cc
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
index 3cc88b4016eb5357c0dfce1b022bb63973b9c3df..ca3155d3cc8acc4a186691526fb7ca0b66e60267 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -25,7 +25,6 @@
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/effects/SkLumaColorFilter.h"
-#include "ui/gfx/frame_time.h"
#include "ui/gfx/geometry/dip_util.h"
namespace content {
@@ -245,7 +244,7 @@ void DelegatedFrameHost::DidReceiveFrameFromRenderer(
if (!frame_subscriber() || !CanCopyToVideoFrame())
return;
- const base::TimeTicks now = gfx::FrameTime::Now();
+ const base::TimeTicks now = base::TimeTicks::Now();
base::TimeTicks present_time;
if (vsync_timebase_.is_null() || vsync_interval_ <= base::TimeDelta()) {
present_time = now;

Powered by Google App Engine
This is Rietveld 408576698