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

Unified Diff: content/common/gpu/image_transport_surface_overlay_mac.mm

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 12 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 | « content/common/gpu/gpu_messages.h ('k') | content/common/mac/io_surface_manager_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface_overlay_mac.mm
diff --git a/content/common/gpu/image_transport_surface_overlay_mac.mm b/content/common/gpu/image_transport_surface_overlay_mac.mm
index 5a950680184166fbffaeee8688ef5984ea146a73..594a6d1c85610a754a5dd32287c854664869048f 100644
--- a/content/common/gpu/image_transport_surface_overlay_mac.mm
+++ b/content/common/gpu/image_transport_surface_overlay_mac.mm
@@ -24,7 +24,6 @@ typedef void* GLeglImageOES;
#include "base/mac/scoped_cftyperef.h"
#include "content/common/gpu/gpu_messages.h"
#include "ui/accelerated_widget_mac/io_surface_context.h"
-#include "ui/accelerated_widget_mac/surface_handle_types.h"
#include "ui/base/cocoa/animation_utils.h"
#include "ui/base/cocoa/remote_layer_api.h"
#include "ui/base/ui_base_switches.h"
@@ -465,11 +464,10 @@ void ImageTransportSurfaceOverlayMac::DisplayFirstPendingSwapImmediately() {
// Send acknowledgement to the browser.
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
if (use_remote_layer_api_) {
- params.surface_handle =
- ui::SurfaceHandleFromCAContextID([ca_context_ contextId]);
+ params.ca_context_id = [ca_context_ contextId];
} else {
- params.surface_handle =
- ui::SurfaceHandleFromIOSurfaceID(current_root_plane_->io_surface_id);
+ params.io_surface.reset(
+ IOSurfaceCreateMachPort(current_root_plane_->io_surface));
}
params.size = swap->pixel_size;
params.scale_factor = swap->scale_factor;
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/mac/io_surface_manager_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698