Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / common / gpu / image_transport_surface_linux.cc
index 238d74d..b648b19 100644 (file)
@@ -12,14 +12,13 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
     GpuCommandBufferStub* stub,
     const gfx::GLSurfaceHandle& handle) {
   DCHECK(handle.handle);
-  DCHECK(handle.transport_type == gfx::NATIVE_DIRECT ||
-         handle.transport_type == gfx::NATIVE_TRANSPORT);
+  DCHECK(handle.transport_type == gfx::NATIVE_DIRECT);
   scoped_refptr<gfx::GLSurface> surface =
       gfx::GLSurface::CreateViewGLSurface(handle.handle);
   if (!surface.get())
     return surface;
   return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface(
-      manager, stub, surface.get(), handle.is_transport()));
+      manager, stub, surface.get()));
 }
 
 }  // namespace content