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

Unified Diff: content/browser/renderer_host/render_widget_helper_mac.mm

Issue 347653005: Make cross-process CALayers work on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@image_transport_1
Patch Set: Incorporate review feedback Created 6 years, 6 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: content/browser/renderer_host/render_widget_helper_mac.mm
diff --git a/content/browser/renderer_host/render_widget_helper_mac.mm b/content/browser/renderer_host/render_widget_helper_mac.mm
index 824b2265d708e6508151f695768e57e074a1ec09..945b182e47c3c81882af9af39c8e3bde56e371a6 100644
--- a/content/browser/renderer_host/render_widget_helper_mac.mm
+++ b/content/browser/renderer_host/render_widget_helper_mac.mm
@@ -12,6 +12,7 @@
#include "content/browser/gpu/gpu_process_host.h"
#include "content/browser/gpu/gpu_surface_tracker.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/gpu/surface_handle_types_mac.h"
namespace {
@@ -21,9 +22,9 @@ void OnNativeSurfaceBuffersSwappedOnUIThread(
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
gfx::AcceleratedWidget native_widget =
content::GpuSurfaceTracker::Get()->AcquireNativeWidget(params.surface_id);
- IOSurfaceID io_surface_handle = static_cast<IOSurfaceID>(
+ IOSurfaceID io_surface_id = content::IOSurfaceIDFromSurfaceHandle(
params.surface_handle);
- [native_widget gotAcceleratedIOSurfaceFrame:io_surface_handle
+ [native_widget gotAcceleratedIOSurfaceFrame:io_surface_id
withOutputSurfaceID:params.surface_id
withPixelSize:params.size
withScaleFactor:params.scale_factor];
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | ui/base/cocoa/remote_layer_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698