Commit de7f196e authored by bsalomon@google.com's avatar bsalomon@google.com

When GL implementation is Mock or None return rather than setting the skia-gpu GL interface with an uninitialized binding. Fixes a -Werror issue.
Review URL: http://codereview.chromium.org/7316023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91763 0039d316-1c4b-4281-b951-d872f2087c98
parent dbf4b402
......@@ -443,7 +443,7 @@ void BindSkiaToInProcessGL() {
switch (gfx::GetGLImplementation()) {
case gfx::kGLImplementationNone:
NOTREACHED();
break;
return;
case gfx::kGLImplementationDesktopGL:
binding = kDesktop_GrGLBinding;
break;
......@@ -455,7 +455,7 @@ void BindSkiaToInProcessGL() {
break;
case gfx::kGLImplementationMockGL:
NOTREACHED();
break;
return;
}
static GrGLInterface host_gl_interface = {
......
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