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)); |
} |