| Index: ui/gl/gl_context_android.cc
|
| diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
|
| index 2b918929ddd0f2bf87ca0428f1ab1650adc6e6a5..a2b63fd796e7f7778bb793ed504de97fb06176a3 100644
|
| --- a/ui/gl/gl_context_android.cc
|
| +++ b/ui/gl/gl_context_android.cc
|
| @@ -84,10 +84,10 @@ scoped_refptr<GLContext> GLContext::CreateGLContext(
|
| context = new GLContextOSMesa(share_group);
|
| break;
|
| default:
|
| - if (compatible_surface->GetHandle())
|
| - context = new GLContextEGL(share_group);
|
| - else
|
| + if (compatible_surface->RepresentsNonOwnedSurface())
|
| context = new GLNonOwnedContext(share_group);
|
| + else
|
| + context = new GLContextEGL(share_group);
|
| break;
|
| }
|
|
|
|
|