Chromium Code Reviews| 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..7b1cd9c5ce5c4eda460b521bafb8079231c1205f 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::GPUContextLost); |
|
Justin Novosad
2015/11/19 20:36:08
Accelerated2DCanvasGPUContextLost
zmin
2015/11/19 22:23:36
Done.
|
| } |
| return m_surface; |
| } |