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

Unified Diff: Source/core/timing/Performance.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: Code review comments (and re-sync) Created 5 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: Source/core/timing/Performance.h
diff --git a/Source/core/timing/Performance.h b/Source/core/timing/Performance.h
index e83d0e9aee155b047b2b75f9f361a19f3b49bfaa..fefb8e43e42d1fcde85532219fcb6d14789e43a1 100644
--- a/Source/core/timing/Performance.h
+++ b/Source/core/timing/Performance.h
@@ -81,8 +81,17 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
+ void webkitClearFrameTimings();
+ void webkitSetFrameTimingBufferSize(unsigned);
+
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitframetimingbufferfull);
+
void addResourceTiming(const ResourceTimingInfo&, Document*);
+ void addRenderTiming(Document*, unsigned, double);
+
+ void addCompositeTiming(Document*, unsigned, double);
+
void mark(const String& markName, ExceptionState&);
void clearMarks(const String& markName);
@@ -97,9 +106,14 @@ private:
bool isResourceTimingBufferFull();
void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>);
+ bool isFrameTimingBufferFull();
+ void addFrameTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>);
+
mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation;
mutable RefPtrWillBeMember<PerformanceTiming> m_timing;
+ PerformanceEntryVector m_frameTimingBuffer;
+ unsigned m_frameTimingBufferSize;
PerformanceEntryVector m_resourceTimingBuffer;
unsigned m_resourceTimingBufferSize;
double m_referenceTime;

Powered by Google App Engine
This is Rietveld 408576698