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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 1463573002: publish canvas context API stat metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cr 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/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index cd4dd7e280236c52b58056391037dd19bf3fe0f7..600fe764bae694cdfe762b9334ed342530665663 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -24,6 +24,7 @@
#include "modules/webgl/WebGLUniformLocation.h"
#include "modules/webgl/WebGLVertexArrayObject.h"
#include "platform/NotImplemented.h"
+#include "platform/graphics/CanvasMetrics.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
@@ -110,6 +111,7 @@ WebGL2RenderingContextBase::WebGL2RenderingContextBase(HTMLCanvasElement* passed
: WebGLRenderingContextBase(passedCanvas, context, requestedAttributes)
{
m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, kSupportedInternalFormatsStorage + arraysize(kSupportedInternalFormatsStorage));
+ CanvasMetrics::countCanvasContextStat(CanvasMetrics::CanvasContextCreated);
Justin Novosad 2015/11/20 03:30:44 Can we make this one more specific: WebGLContextCr
zmin 2015/11/20 17:08:33 Removed.
}
WebGL2RenderingContextBase::~WebGL2RenderingContextBase()

Powered by Google App Engine
This is Rietveld 408576698