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

Unified Diff: ui/gfx/frame_time.h

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: ui/gfx/frame_time.h
diff --git a/ui/gfx/frame_time.h b/ui/gfx/frame_time.h
deleted file mode 100644
index 58b27cb05773b9a4ff1c9943eef14920661b6b56..0000000000000000000000000000000000000000
--- a/ui/gfx/frame_time.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_GFX_FRAME_TIME_H
-#define UI_GFX_FRAME_TIME_H
-
-#include "base/time/time.h"
-#include "base/logging.h"
-
-namespace gfx {
-
-// FrameTime::Now() should be used to get timestamps with a timebase that
-// is consistent across the graphics stack.
-class FrameTime {
- public:
- static base::TimeTicks Now() {
- return base::TimeTicks::Now();
- }
-
-#if defined(OS_WIN)
- static base::TimeTicks FromQPCValue(LONGLONG qpc_value) {
- DCHECK(TimestampsAreHighRes());
- return base::TimeTicks::FromQPCValue(qpc_value);
- }
-#endif
-
- static bool TimestampsAreHighRes() {
-#if defined(OS_WIN)
- return base::TimeTicks::IsHighResolution();
-#else
- // TODO(miu): Mac/Linux always provide high-resolution timestamps. Consider
- // returning base::TimeTicks::IsHighResolution() for all platforms.
- return false;
-#endif
- }
-};
-
-}
-
-#endif // UI_GFX_FRAME_TIME_H

Powered by Google App Engine
This is Rietveld 408576698