| 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 e0d7ecd15cd8b5de150248e383c2d993bd1a458f..118fa20a4a5f53d0437e7304b9163c9d4517ce54 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -46,6 +46,7 @@
|
| #include "core/imagebitmap/ImageBitmapOptions.h"
|
| #include "core/layout/LayoutHTMLCanvas.h"
|
| #include "core/paint/PaintLayer.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/MIMETypeRegistry.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/graphics/Canvas2DImageBufferSurface.h"
|
| @@ -237,8 +238,10 @@ CanvasRenderingContext* HTMLCanvasElement::getCanvasRenderingContext(const Strin
|
| return nullptr;
|
|
|
| // Log the aliased context type used.
|
| - if (!m_context)
|
| - Platform::current()->histogramEnumeration("Canvas.ContextType", contextType, CanvasRenderingContext::ContextTypeCount);
|
| + if (!m_context) {
|
| + DEFINE_STATIC_LOCAL(EnumerationHistogram, contextTypeHistogram, ("Canvas.ContextType", CanvasRenderingContext::ContextTypeCount));
|
| + contextTypeHistogram.count(contextType);
|
| + }
|
|
|
| contextType = CanvasRenderingContext::resolveContextTypeAliases(contextType);
|
|
|
|
|