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

Unified Diff: content/common/gpu/image_transport_surface_android.cc

Issue 13140006: gpu: Fix Vivante's "hisilicon" GPUs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add recreate work-around Created 7 years, 8 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 | « no previous file | content/gpu/gpu_info_collector_android.cc » ('j') | ui/gl/gl_context_egl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_android.cc
diff --git a/content/common/gpu/image_transport_surface_android.cc b/content/common/gpu/image_transport_surface_android.cc
index 2d8ee4373d8f30b7b74343acd212879610a1a6e4..e1b50188c6d14ff25dc9938a703d9228b8b486c3 100644
--- a/content/common/gpu/image_transport_surface_android.cc
+++ b/content/common/gpu/image_transport_surface_android.cc
@@ -29,6 +29,15 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
if (!initialize_success)
return scoped_refptr<gfx::GLSurface>();
+ if (stub->decoder()
+ ->GetContextGroup()
+ ->feature_info()
+ ->workarounds()
+ .makecurrent_recreates_surfaces) {
no sievers 2013/04/16 01:23:52 Hmm, this is flaky as it depends on some other con
epennerAtGoogle 2013/04/16 02:03:18 I thought about that and it didn't appear to be a
epennerAtGoogle 2013/04/16 02:30:10 You are right, the context-group might not be init
+ static_cast<gfx::NativeViewGLSurfaceEGL*>
+ (surface.get())->SetRecreateOnMakeCurrent(true);
+ }
+
return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface(
manager, stub, surface.get(), false));
}
« no previous file with comments | « no previous file | content/gpu/gpu_info_collector_android.cc » ('j') | ui/gl/gl_context_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698