| 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 93f225da363caac81325f908426491f1afbf46b0..ebbcafa10938d67bd5f69cacfe84a20970921964 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp
|
| @@ -32,6 +32,7 @@
|
| #include "SkSurface.h"
|
|
|
| #include "platform/TraceEvent.h"
|
| +#include "platform/graphics/CanvasMetrics.h"
|
| #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h"
|
| #include "platform/graphics/GraphicsLayer.h"
|
| #include "platform/graphics/ImageBuffer.h"
|
| @@ -378,6 +379,7 @@ bool Canvas2DLayerBridge::checkSurfaceValid()
|
| }
|
| if (m_imageBuffer)
|
| m_imageBuffer->notifySurfaceInvalid();
|
| + CanvasMetrics::countCanvasContextUsage(CanvasMetrics::Accelerated2DCanvasGPUContextLost);
|
| }
|
| return m_surface;
|
| }
|
|
|