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

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 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
Index: Source/core/timing/Performance.h
diff --git a/Source/core/timing/Performance.h b/Source/core/timing/Performance.h
index de4f1db8f21ed5d514d253e906107ba02a1b50db..8be421d2d4134e0523a4a3a5fb4efd03c876af38 100644
--- a/Source/core/timing/Performance.h
+++ b/Source/core/timing/Performance.h
@@ -81,8 +81,17 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
+ void clearFrameTimings();
+ void setFrameTimingBufferSize(unsigned);
+
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull);
+
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);
@@ -100,6 +109,11 @@ private:
mutable Member<PerformanceNavigation> m_navigation;
mutable Member<PerformanceTiming> m_timing;
+ bool isFrameTimingBufferFull();
+ void addFrameTimingBuffer(PerformanceEntry*);
+
+ PerformanceEntryVector m_frameTimingBuffer;
+ unsigned m_frameTimingBufferSize;
PerformanceEntryVector m_resourceTimingBuffer;
unsigned m_resourceTimingBufferSize;
double m_referenceTime;

Powered by Google App Engine
This is Rietveld 408576698