Commit 58a05e1d authored by gman@chromium.org's avatar gman@chromium.org

kWebGraphicsContext3DPerferredGLExtensions -> kWebGLPreferredGLExtensions

Also added a comment. This string should only be passed in for
WebGL. If it is being passed in for any other reason it is a bug
and needs to be fixed.

TEST=none
BUG=none

R=jamesr@chromium.org

Review URL: http://codereview.chromium.org/7067034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86671 0039d316-1c4b-4281-b951-d872f2087c98
parent fbf2ce7f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment