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

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

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index de94788ec50bda36daefa41b0b3b48edabc03bb6..4904dd85d81ef106db48e498cc934226d302604e 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -884,7 +884,7 @@ void RenderWidgetHostViewMac::AcceleratedSurfaceBuffersSwapped(
last_frame_was_accelerated_ = (params.window ==
plugin_container_manager_.root_container_handle());
plugin_container_manager_.SetSurfaceWasPaintedTo(params.window,
- params.surface_id);
+ params.surface_handle);
// The surface is hidden until its first paint, to not show garbage.
if (plugin_container_manager_.SurfaceShouldBeVisible(params.window))
@@ -910,7 +910,7 @@ void RenderWidgetHostViewMac::AcceleratedSurfacePostSubBuffer(
plugin_container_manager_.root_container_handle());
plugin_container_manager_.SetSurfaceWasPaintedTo(
params.window,
- params.surface_id,
+ params.surface_handle,
gfx::Rect(params.x, params.y, params.width, params.height));
// The surface is hidden until its first paint, to not show garbage.

Powered by Google App Engine
This is Rietveld 408576698