Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: content/common/gpu/image_transport_surface_mac.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/app_list_controller_browsertest.cc ('k') | content/shell/browser/shell_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « chrome/browser/ui/app_list/app_list_controller_browsertest.cc ('k') | content/shell/browser/shell_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698