| 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..13c228b3a0d0b867b3d181159b494dbe64f27ff3 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::countCanvasContextStat(CanvasMetrics::Accelerated2DCanvasGPUContextLost);
|
| }
|
| return m_surface;
|
| }
|
|
|