Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| index e41d489edeb56990f82806cd01077852fbf824eb..eba91ca79608f05aca6d5e730789e2b46d794800 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
| @@ -27,6 +27,9 @@ |
| #include "core/html/HTMLCanvasElement.h" |
| +#include <math.h> |
| +#include <v8.h> |
| +#include <memory> |
| #include "bindings/core/v8/ExceptionMessages.h" |
| #include "bindings/core/v8/ExceptionState.h" |
| #include "bindings/core/v8/ScriptController.h" |
| @@ -53,6 +56,7 @@ |
| #include "core/html/canvas/CanvasRenderingContext.h" |
| #include "core/html/canvas/CanvasRenderingContextFactory.h" |
| #include "core/imagebitmap/ImageBitmapOptions.h" |
| +#include "core/inspector/InspectorInstrumentation.h" |
| #include "core/layout/HitTestCanvasResult.h" |
| #include "core/layout/LayoutHTMLCanvas.h" |
| #include "core/layout/api/LayoutViewItem.h" |
| @@ -77,9 +81,6 @@ |
| #include "public/platform/WebTraceLocation.h" |
| #include "wtf/CheckedNumeric.h" |
| #include "wtf/PtrUtil.h" |
| -#include <math.h> |
| -#include <memory> |
| -#include <v8.h> |
| namespace blink { |
| @@ -271,6 +272,8 @@ CanvasRenderingContext* HTMLCanvasElement::getCanvasRenderingContext( |
| if (!m_context) |
| return nullptr; |
| + InspectorInstrumentation::didCreateCanvasContext(&document()); |
|
Justin Novosad
2017/02/09 20:23:03
You need to do the same thing in OffscreenCanvas::
|
| + |
| if (m_context->is3d()) { |
| updateExternallyAllocatedMemory(); |
| } |