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

Unified Diff: ui/gl/gl_context_android.cc

Issue 124063003: [NOT FOR COMMIT] Hacks to get hardware canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mass corruption on detach Created 6 years, 12 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 | « content/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_android.cc
diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
index a9e888b203d41a2912d0e87217ae1a415660013a..4753ce9ef1a98c1fc4c29b47cdb0bc47c02ecfe1 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -79,10 +79,15 @@ scoped_refptr<GLContext> GLContext::CreateGLContext(
return scoped_refptr<GLContext>(new GLContextStub());
scoped_refptr<GLContext> context;
- if (compatible_surface->GetHandle())
+/*
+ if (compatible_surface->GetHandle()) {
+LOG(ERROR) << "------------------------- GLContextEGL";
context = new GLContextEGL(share_group);
- else
+ } else {
+LOG(ERROR) << "------------------------- GLNonOwnedContext";
+*/
context = new GLNonOwnedContext(share_group);
+// }
if (!context->Initialize(compatible_surface, gpu_preference))
return NULL;
return context;
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698