Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 1463573002: publish canvas context API stat metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698