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

Unified Diff: gpu/ipc/service/image_transport_surface_mac.mm

Issue 2365583004: Mac: Clean up plumbing of accelerated widgets (Closed)
Patch Set: make_scoped_refptr Created 4 years, 3 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 | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/image_transport_surface_mac.mm
diff --git a/gpu/ipc/service/image_transport_surface_mac.mm b/gpu/ipc/service/image_transport_surface_mac.mm
index 8e12bff3d9137e6434425169407dac7d4b49fe02..0689e9827f84b1f5b8333cefa2f09e4f1430ad08 100644
--- a/gpu/ipc/service/image_transport_surface_mac.mm
+++ b/gpu/ipc/service/image_transport_surface_mac.mm
@@ -5,6 +5,7 @@
#include "gpu/ipc/service/image_transport_surface.h"
#include "base/macros.h"
+#include "gpu/ipc/service/image_transport_surface_overlay_mac.h"
#include "gpu/ipc/service/pass_through_image_transport_surface.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_surface_osmesa.h"
@@ -12,11 +13,6 @@
namespace gpu {
-scoped_refptr<gl::GLSurface> ImageTransportSurfaceCreateNativeSurface(
- GpuChannelManager* manager,
- GpuCommandBufferStub* stub,
- SurfaceHandle handle);
-
namespace {
// A subclass of GLSurfaceOSMesa that doesn't print an error message when
@@ -55,10 +51,10 @@
case gl::kGLImplementationDesktopGL:
case gl::kGLImplementationDesktopGLCoreProfile:
case gl::kGLImplementationAppleGL:
- return ImageTransportSurfaceCreateNativeSurface(manager, stub,
- surface_handle);
+ return make_scoped_refptr<gl::GLSurface>(
+ new ImageTransportSurfaceOverlayMac(stub));
case gl::kGLImplementationMockGL:
- return new gl::GLSurfaceStub;
+ return make_scoped_refptr<gl::GLSurface>(new gl::GLSurfaceStub);
default:
// Content shell in DRT mode spins up a gpu process which needs an
// image transport surface, but that surface isn't used to read pixel
@@ -70,7 +66,7 @@
scoped_refptr<gl::GLSurface> surface(new DRTSurfaceOSMesa());
if (!surface.get() || !surface->Initialize(format))
return surface;
- return scoped_refptr<gl::GLSurface>(
+ return make_scoped_refptr<gl::GLSurface>(
new PassThroughImageTransportSurface(manager, stub, surface.get()));
}
}
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698