| 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 14cbdafff8e07ea94059f2d7f38a966e203cc3a3..a8901126bf7d6b824c5aaff16df441bce95efe40 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"
|
| @@ -824,7 +825,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
|
|
|