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

Unified Diff: webkit/renderer/compositor_bindings/webkit_time.h

Issue 192433002: Creating utility for converting TimeTicks to WebKit double and use it in the Chrome compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: webkit/renderer/compositor_bindings/webkit_time.h
diff --git a/webkit/renderer/compositor_bindings/webkit_time.h b/webkit/renderer/compositor_bindings/webkit_time.h
new file mode 100644
index 0000000000000000000000000000000000000000..19623b050e44a04e5fc8e36e46e02cc70fd36d40
--- /dev/null
+++ b/webkit/renderer/compositor_bindings/webkit_time.h
@@ -0,0 +1,18 @@
+// Copyright 2012 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEBKIT_TIME_H_
+#define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEBKIT_TIME_H_
+
+#include "base/time/time.h"
+#include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.h"
+
+namespace webkit {
+
+base::TimeTicks FromWebKitTime(double monotonic_time);
+double ToWebKitTime(base::TimeTicks monotonic_time);
+
+} // namespace webkit
+
+#endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEBKIT_TIME_H_

Powered by Google App Engine
This is Rietveld 408576698