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

Unified Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 882233003: Label info for webglcontext should have pointer data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch updated as per review comments. Created 5 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698