Chromium Code Reviews| 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..f8364891126e63b9df698b88c7f6f1cf1d125b74 100644 |
| --- a/Source/core/html/canvas/WebGLRenderingContext.cpp |
| +++ b/Source/core/html/canvas/WebGLRenderingContext.cpp |
| @@ -120,8 +120,11 @@ 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("WebGLRenderingContext-"); |
| + contextLabel.append(String::format("%p", context.get())); |
| + context->pushGroupMarkerEXT(contextLabel.utf8().data()); |
|
vmiura
2015/01/30 22:08:48
The API expects ASCII encoding, so could you pleas
sivag
2015/02/02 06:34:36
Done.
|
| + } |
| OwnPtrWillBeRawPtr<WebGLRenderingContext> renderingContext = adoptPtrWillBeNoop(new WebGLRenderingContext(canvas, context.release(), attributes)); |
| renderingContext->registerContextExtensions(); |