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

Unified Diff: Source/bindings/core/v8/WrapCanvasContext.cpp

Issue 1073863003: DevTools: remove Canvas profiler from DevTools source base. See details in the bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tests gone 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
« no previous file with comments | « LayoutTests/inspector/profiler/webgl/webgl-profiler-get-error-expected.txt ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WrapCanvasContext.cpp
diff --git a/Source/bindings/core/v8/WrapCanvasContext.cpp b/Source/bindings/core/v8/WrapCanvasContext.cpp
index 559dfd021b1bdbc1fedc997c976db5eed8090f7b..4ad82730759a7cfb908a3acebcfaa314c8f22e5f 100644
--- a/Source/bindings/core/v8/WrapCanvasContext.cpp
+++ b/Source/bindings/core/v8/WrapCanvasContext.cpp
@@ -8,7 +8,6 @@
#include "bindings/core/v8/V8CanvasRenderingContext2D.h"
#include "bindings/core/v8/V8WebGLRenderingContext.h"
#include "core/html/HTMLCanvasElement.h"
-#include "core/inspector/InspectorCanvasInstrumentation.h"
namespace blink {
@@ -16,12 +15,6 @@ ScriptValue wrapCanvasContext(ScriptState* scriptState, HTMLCanvasElement* canva
{
v8::Handle<v8::Value> v8Result = toV8(value, scriptState->context()->Global(), scriptState->isolate());
ScriptValue context(scriptState, v8Result);
- if (InspectorInstrumentation::canvasAgentEnabled(&canvas->document())) {
- ScriptValue wrapped = InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation(&canvas->document(), context);
- if (!wrapped.isEmpty()) {
- return wrapped;
- }
- }
return context;
}
@@ -29,12 +22,6 @@ ScriptValue wrapCanvasContext(ScriptState* scriptState, HTMLCanvasElement* canva
{
v8::Handle<v8::Value> v8Result = toV8(value, scriptState->context()->Global(), scriptState->isolate());
ScriptValue context(scriptState, v8Result);
- if (InspectorInstrumentation::canvasAgentEnabled(&canvas->document())) {
- ScriptValue wrapped = InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation(&canvas->document(), context);
- if (!wrapped.isEmpty()) {
- return wrapped;
- }
- }
return context;
}
« no previous file with comments | « LayoutTests/inspector/profiler/webgl/webgl-profiler-get-error-expected.txt ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698