| Index: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| index f1a359903b1a699c0e1f2a7eec4ac6221188018c..a438b5b17571af6eedff159b16656d4ac7dddee1 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| @@ -25,6 +25,7 @@
|
|
|
| #include "platform/graphics/Canvas2DLayerBridge.h"
|
|
|
| +#include "platform/Histogram.h"
|
| #include "platform/TraceEvent.h"
|
| #include "platform/graphics/CanvasMetrics.h"
|
| #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
|
| @@ -823,7 +824,8 @@ Canvas2DLayerBridge::MailboxInfo::MailboxInfo(const MailboxInfo& other)
|
|
|
| void Canvas2DLayerBridge::Logger::reportHibernationEvent(HibernationEvent event)
|
| {
|
| - blink::Platform::current()->histogramEnumeration("Canvas.HibernationEvents", event, HibernationEventCount);
|
| + DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, ("Canvas.HibernationEvents", HibernationEventCount));
|
| + hibernationHistogram.count(event);
|
| }
|
|
|
| } // namespace blink
|
|
|