Chromium Code Reviews| Index: ui/gl/gl_context_egl.cc |
| diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc |
| index f77c9f9d5eceae26aa917cf340a79621cba7e2cc..3cd894827005b19af99f50879c32b8b5f9f97ce6 100644 |
| --- a/ui/gl/gl_context_egl.cc |
| +++ b/ui/gl/gl_context_egl.cc |
| @@ -75,7 +75,14 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) { |
| if (IsCurrent(surface)) |
| return true; |
| - TRACE_EVENT0("gpu", "GLContextEGL::MakeCurrent"); |
| + TRACE_EVENT2("gpu", "GLContextEGL::MakeCurrent", |
| + "context", context_, |
| + "surface", surface); |
| + |
| +#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
|
piman
2012/06/22 00:26:58
Could we add a comment why it's there?
|
| + if (eglGetCurrentContext() != NULL) |
| + glFinish(); |
| +#endif // defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
| if (!eglMakeCurrent(display_, |
| surface->GetHandle(), |