Index: Source/core/html/canvas/WebGLRenderingContext.cpp |
diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp |
index 52f7ae846eca77ec778acd8a596392ebbac0f4e1..38e3686940846e0fce0851b91716278e7f3fe534 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContext.cpp |
+++ b/Source/core/html/canvas/WebGLRenderingContext.cpp |
@@ -120,8 +120,10 @@ PassOwnPtrWillBeRawPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTML |
OwnPtr<Extensions3DUtil> extensionsUtil = Extensions3DUtil::create(context.get()); |
if (!extensionsUtil) |
return nullptr; |
- if (extensionsUtil->supportsExtension("GL_EXT_debug_marker")) |
- context->pushGroupMarkerEXT("WebGLRenderingContext"); |
+ if (extensionsUtil->supportsExtension("GL_EXT_debug_marker")) { |
+ String contextLabel(String::format("WebGLRenderingContext-%p", context.get())); |
+ context->pushGroupMarkerEXT(contextLabel.ascii().data()); |
+ } |
OwnPtrWillBeRawPtr<WebGLRenderingContext> renderingContext = adoptPtrWillBeNoop(new WebGLRenderingContext(canvas, context.release(), attributes)); |
renderingContext->registerContextExtensions(); |