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..db36efea1354052ee54e603626f6e31484aea11b 100644 |
--- a/content/common/gpu/image_transport_surface_linux.cc |
+++ b/content/common/gpu/image_transport_surface_linux.cc |
@@ -13,9 +13,13 @@ 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); |
- if (!surface.get()) |
+ scoped_refptr<gfx::GLSurface> surface; |
+#if defined(USE_OZONE) |
+ surface = gfx::GLSurface::CreateSurfacelessViewGLSurface(handle.handle); |
+#endif |
+ if (!surface) |
+ surface = gfx::GLSurface::CreateViewGLSurface(handle.handle); |
+ if (!surface) |
return surface; |
return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface( |
manager, stub, surface.get())); |