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

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: Reworking webkit_time, adding other users. 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..ca74fca9257e4772d83c9cdc255efab01878e9be
--- /dev/null
+++ b/webkit/renderer/compositor_bindings/webkit_time.h
@@ -0,0 +1,20 @@
+// 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 WEBKIT_COMPOSITOR_BINDINGS_EXPORT
+ FromWebKitMonotonicTime(double monotonic_time);
+double WEBKIT_COMPOSITOR_BINDINGS_EXPORT
+ ToWebKitMonotonicTime(base::TimeTicks monotonic_time);
+
+} // namespace webkit
+
+#endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEBKIT_TIME_H_

Powered by Google App Engine
This is Rietveld 408576698