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

Unified Diff: Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp

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 Created 6 years, 5 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 | « no previous file | Source/core/core.gypi » ('j') | Source/core/frame/Frame.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp
diff --git a/Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp b/Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp
index 15a49b43b0c4426a58d86b3f5a6bf5f499f761b1..5a5ddd3c13380346a367be5b776aa365987b2c42 100644
--- a/Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp
+++ b/Source/bindings/core/v8/custom/V8PerformanceEntryCustom.cpp
@@ -31,10 +31,12 @@
#include "config.h"
#include "bindings/core/v8/V8PerformanceEntry.h"
+#include "bindings/core/v8/V8PerformanceDrawTiming.h"
#include "bindings/core/v8/V8PerformanceMark.h"
#include "bindings/core/v8/V8PerformanceMeasure.h"
#include "bindings/core/v8/V8PerformanceResourceTiming.h"
#include "core/timing/Performance.h"
+#include "core/timing/PerformanceDrawTiming.h"
#include "core/timing/PerformanceMark.h"
#include "core/timing/PerformanceMeasure.h"
#include "core/timing/PerformanceResourceTiming.h"
@@ -54,6 +56,9 @@ v8::Handle<v8::Object> wrap(PerformanceEntry* impl, v8::Handle<v8::Object> creat
if (impl->isMeasure())
return wrap(static_cast<PerformanceMeasure*>(impl), creationContext, isolate);
+ if (impl->isDraw())
+ return wrap(static_cast<PerformanceDrawTiming*>(impl), creationContext, isolate);
+
return V8PerformanceEntry::createWrapper(impl, creationContext, isolate);
}
« no previous file with comments | « no previous file | Source/core/core.gypi » ('j') | Source/core/frame/Frame.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698