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

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: Add Experimental Blink Feature flag for this change Created 5 years, 8 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 422d238889a42162c4d803480fcc503127f899bd..6032c59413224b8a6030a7b2863e2f4f4dc42af0 100644
--- a/Source/core/timing/Performance.h
+++ b/Source/core/timing/Performance.h
@@ -82,8 +82,17 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
+ void webkitClearFrameTimings();
chrishtr 2015/04/30 01:07:33 Remove webkit prefixes.
MikeB 2015/05/07 23:09:47 Done.
+ 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);
@@ -98,9 +107,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