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

Unified Diff: public/web/WebBeginFrameArgs.h

Issue 321373003: Changing animate to beginFrame and use struct rather than naked double to allow extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding another FIXME comment. Created 6 years, 5 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 | « Source/web/WebViewImpl.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebBeginFrameArgs.h
diff --git a/public/web/WebBeginFrameArgs.h b/public/web/WebBeginFrameArgs.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0e46c486ba98d87b4f96bb0643a47840bfcb207
--- /dev/null
+++ b/public/web/WebBeginFrameArgs.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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 WebBeginFrameArgs_h
+#define WebBeginFrameArgs_h
+
+namespace blink {
+
+struct WebBeginFrameArgs {
+ WebBeginFrameArgs(double lastFrameTimeMonotonic)
+ : lastFrameTimeMonotonic(lastFrameTimeMonotonic)
+ { }
+
+ // FIXME: Upgrade the time in CLOCK_MONOTONIC values to use a TimeTick like
+ // class rather than a bare double.
+
+ // FIXME: Extend this class to include the fields from Chrome
+ // BeginFrameArgs structure.
+
+ // Time in CLOCK_MONOTONIC that is the most recent vsync time.
+ double lastFrameTimeMonotonic;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698