Index: content/common/gpu/image_transport_surface_fbo_mac.mm |
diff --git a/content/common/gpu/image_transport_surface_fbo_mac.mm b/content/common/gpu/image_transport_surface_fbo_mac.mm |
index e6fcc408f357557d0661a6e4d94c302e57fb5220..33f6428d35afe2f91614896f5c9603db2f0e5be1 100644 |
--- a/content/common/gpu/image_transport_surface_fbo_mac.mm |
+++ b/content/common/gpu/image_transport_surface_fbo_mac.mm |
@@ -8,6 +8,7 @@ |
#include "content/common/gpu/gpu_messages.h" |
#include "content/common/gpu/image_transport_surface_calayer_mac.h" |
#include "content/common/gpu/image_transport_surface_iosurface_mac.h" |
+#include "content/common/gpu/image_transport_surface_overlay_mac.h" |
#include "ui/base/cocoa/remote_layer_api.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gl/gl_context.h" |
@@ -20,7 +21,10 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurfaceCreateNativeSurface( |
GpuChannelManager* manager, |
GpuCommandBufferStub* stub, |
gfx::PluginWindowHandle handle) { |
- return new ImageTransportSurfaceFBO(manager, stub, handle); |
+ if (ui::RemoteLayerAPISupported()) |
+ return new ImageTransportSurfaceOverlayMac(manager, stub, handle); |
+ else |
+ return new ImageTransportSurfaceFBO(manager, stub, handle); |
} |
ImageTransportSurfaceFBO::ImageTransportSurfaceFBO( |