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

Unified Diff: Source/core/timing/Performance.h

Issue 390193003: [not for review] Add Draw entries to window Performance Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Git pull syncup Created 6 years, 3 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/core/rendering/RenderView.cpp ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/timing/Performance.h
diff --git a/Source/core/timing/Performance.h b/Source/core/timing/Performance.h
index e4941e1bad83b242854d10dace007f8bbe6c351c..04ba8326f1356233ad844bb775e06271d8826e8e 100644
--- a/Source/core/timing/Performance.h
+++ b/Source/core/timing/Performance.h
@@ -81,10 +81,17 @@ public:
void webkitClearResourceTimings();
void webkitSetResourceTimingBufferSize(unsigned);
+ void webkitClearSmoothnessTimings();
+ void webkitSetSmoothnessTimingBufferSize(unsigned);
+
DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitsmoothnesstimingbufferfull);
+
void addResourceTiming(const ResourceTimingInfo&, Document*);
+ void addSmoothnessTiming(const String&, Document*, unsigned, double);
+
void mark(const String& markName, ExceptionState&);
void clearMarks(const String& markName);
@@ -99,11 +106,16 @@ private:
bool isResourceTimingBufferFull();
void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>);
+ bool isSmoothnessTimingBufferFull();
+ void addSmoothnessTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>);
+
mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation;
mutable RefPtrWillBeMember<PerformanceTiming> m_timing;
PerformanceEntryVector m_resourceTimingBuffer;
unsigned m_resourceTimingBufferSize;
+ PerformanceEntryVector m_smoothnessTimingBuffer;
+ unsigned m_smoothnessTimingBufferSize;
double m_referenceTime;
RefPtrWillBeMember<UserTiming> m_userTiming;
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698