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

Unified Diff: content/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 7067034: kWebGraphicsContext3DPerferredGLExtensions -> kWebGLPreferredGLExtensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no change Created 9 years, 7 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: content/renderer/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
index ac1b62de47a8449d41f7dde998b73bf8573db2a7..0fad22b3b28e1559e56c53a198b4a0aa10e31655 100644
--- a/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -47,7 +47,10 @@ WebGraphicsContext3DCommandBufferImpl::
delete context_;
}
-static const char* kWebGraphicsContext3DPerferredGLExtensions =
+// This string should only be passed for WebGL contexts. Nothing ELSE!!!
+// Compositor contexts, Canvas2D contexts, Pepper Contexts, nor any other use of
+// a context should not pass this string.
+static const char* kWebGLPreferredGLExtensions =
"GL_OES_packed_depth_stencil "
"GL_OES_depth24 "
"GL_CHROMIUM_webglsl";
@@ -108,7 +111,7 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize(
host,
renderview->compositing_surface(),
renderview->routing_id(),
- kWebGraphicsContext3DPerferredGLExtensions,
+ kWebGLPreferredGLExtensions,
attribs,
active_url);
if (context_) {
@@ -138,7 +141,7 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize(
host,
parent_context,
gfx::Size(1, 1),
- kWebGraphicsContext3DPerferredGLExtensions,
+ kWebGLPreferredGLExtensions,
attribs,
active_url);
web_view_ = NULL;
« 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