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

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

Issue 2365583004: Mac: Clean up plumbing of accelerated widgets (Closed)
Patch Set: Add explicit 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
Index: gpu/ipc/service/image_transport_surface_overlay_mac.mm
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.mm b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
index e8abb3298340d08716617bf0b2f71c7deb9d37ce..3f18b501e50f11f46f3760fc8f63d4b2d85dcb69 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.mm
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
@@ -59,18 +59,9 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
namespace gpu {
-scoped_refptr<gl::GLSurface> ImageTransportSurfaceCreateNativeSurface(
- GpuChannelManager* manager,
- GpuCommandBufferStub* stub,
- SurfaceHandle handle) {
- return new ImageTransportSurfaceOverlayMac(stub, handle);
-}
-
ImageTransportSurfaceOverlayMac::ImageTransportSurfaceOverlayMac(
- GpuCommandBufferStub* stub,
- SurfaceHandle handle)
+ GpuCommandBufferStub* stub)
: stub_(stub->AsWeakPtr()),
- handle_(handle),
use_remote_layer_api_(ui::RemoteLayerAPISupported()),
scale_factor_(1),
gl_renderer_id_(0) {
@@ -135,7 +126,6 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
}
void ImageTransportSurfaceOverlayMac::SendAcceleratedSurfaceBuffersSwapped(
- gpu::SurfaceHandle surface_handle,
CAContextID ca_context_id,
bool fullscreen_low_power_ca_context_valid,
CAContextID fullscreen_low_power_ca_context_id,
@@ -149,7 +139,6 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
"width", size.width());
GpuCommandBufferMsg_SwapBuffersCompleted_Params params;
- params.surface_handle = surface_handle;
params.ca_context_id = ca_context_id;
params.fullscreen_low_power_ca_context_valid =
fullscreen_low_power_ca_context_valid;
@@ -277,7 +266,7 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
io_surface_mach_port.reset(IOSurfaceCreateMachPort(io_surface));
}
SendAcceleratedSurfaceBuffersSwapped(
- handle_, ca_context_id, fullscreen_low_power_layer_valid,
+ ca_context_id, fullscreen_low_power_layer_valid,
fullscreen_low_power_ca_context_id, io_surface_mach_port, pixel_size_,
scale_factor_, std::move(latency_info_));

Powered by Google App Engine
This is Rietveld 408576698