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

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: Code refactoring in RenderView 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/rendering/RenderView.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 6e1d54e0b6855037de2eb3800b47b7e12ccaf73e..668167ba2b5ea1cdb681d3c3dbed62f479873df9 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/rendering/RenderView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698