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

Unified Diff: public/platform/WebFrameTimingEvent.h

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update LayoutTests for new properties 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
« no previous file with comments | « Source/web/tests/data/frame_timing_inner.html ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebFrameTimingEvent.h
diff --git a/public/platform/WebFrameTimingEvent.h b/public/platform/WebFrameTimingEvent.h
new file mode 100644
index 0000000000000000000000000000000000000000..341ab03c82c9f5e9a998288e3c00158c21e8e4a3
--- /dev/null
+++ b/public/platform/WebFrameTimingEvent.h
@@ -0,0 +1,42 @@
+// Copyright 2015 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 WebFrameTimingEvent_h
+#define WebFrameTimingEvent_h
+
+namespace blink {
+
+// A struct to pass PerformanceRenderEvent or PerformanceCompositeEvent info
+// to Blink.
+struct WebFrameTimingEvent {
+ WebFrameTimingEvent(unsigned sourceFrame, double startTime, double finishTime)
+ : sourceFrame(sourceFrame)
+ , startTime(startTime)
+ , finishTime(finishTime)
+ {
+ }
+
+ WebFrameTimingEvent(unsigned sourceFrame, double startTime)
+ : sourceFrame(sourceFrame)
+ , startTime(startTime)
+ {
+ }
+
+ WebFrameTimingEvent() { }
+
+ WebFrameTimingEvent& operator=(const WebFrameTimingEvent& rhs)
+ {
+ sourceFrame = rhs.sourceFrame;
+ startTime = rhs.startTime;
+ finishTime = rhs.finishTime;
+ return *this;
+ }
+ unsigned sourceFrame;
+ double startTime;
+ double finishTime;
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « Source/web/tests/data/frame_timing_inner.html ('k') | public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698