| Index: content/common/gpu/image_transport_surface_mac.cc
|
| diff --git a/content/common/gpu/image_transport_surface_mac.cc b/content/common/gpu/image_transport_surface_mac.cc
|
| index 4aebcf2bbf2b4e97f08eca1005a5602555367149..974806fa540e6bec87a8fd84d7bffb002c94b210 100644
|
| --- a/content/common/gpu/image_transport_surface_mac.cc
|
| +++ b/content/common/gpu/image_transport_surface_mac.cc
|
| @@ -526,6 +526,21 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
|
| DLOG(WARNING) << "No IOSurface support";
|
| return scoped_refptr<gfx::GLSurface>();
|
| }
|
| +
|
| + if (surface_handle.transport_type == gfx::NATIVE_DIRECT) {
|
| + DLOG(INFO) << "Want a NATIVE_DIRECT transport: client_id=" << surface_handle.parent_client_id;
|
| +#if 0
|
| + DCHECK(surface_handle.handle);
|
| + scoped_refptr<gfx::GLSurface> surface =
|
| + gfx::GLSurface::CreateViewGLSurface(surface_handle.handle);
|
| + if (!surface.get())
|
| + return surface;
|
| +
|
| + return scoped_refptr<gfx::GLSurface>(
|
| + new PassThroughImageTransportSurface(manager, stub, surface.get()));
|
| +#endif
|
| + }
|
| +
|
| return scoped_refptr<gfx::GLSurface>(new IOSurfaceImageTransportSurface(
|
| manager, stub, surface_handle.handle));
|
|
|
|
|