Index: content/common/gpu/image_transport_surface_linux.cc |
diff --git a/content/common/gpu/image_transport_surface_linux.cc b/content/common/gpu/image_transport_surface_linux.cc |
index b648b197c5c525225c50bf2193605b134b3a22ed..3e1686ee543fe62903e6ee3f4c4c5e913c2e58ee 100644 |
--- a/content/common/gpu/image_transport_surface_linux.cc |
+++ b/content/common/gpu/image_transport_surface_linux.cc |
@@ -13,8 +13,12 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface( |
const gfx::GLSurfaceHandle& handle) { |
DCHECK(handle.handle); |
DCHECK(handle.transport_type == gfx::NATIVE_DIRECT); |
- scoped_refptr<gfx::GLSurface> surface = |
- gfx::GLSurface::CreateViewGLSurface(handle.handle); |
+ scoped_refptr<gfx::GLSurface> surface; |
+#if USE_OZONE |
spang
2015/02/19 00:42:04
Don't you need to take the flag into account? Not
achaulk
2015/02/19 00:43:07
That's done inside ozone, if we don't support due
spang
2015/02/19 00:49:26
Ok, so this is "maybe create surfaceless, but I ca
|
+ surface = gfx::GLSurface::CreateSurfacelessViewGLSurface(handle.handle); |
+#endif |
+ if (!surface.get()) |
+ surface = gfx::GLSurface::CreateViewGLSurface(handle.handle); |
if (!surface.get()) |
return surface; |
return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface( |