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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 148003006: Use gpu::Mailbox instead of std:string in IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo Created 6 years, 10 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/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 4d46484991a5294a3f12bad95dcbec3050d808cc..ec62dff46bc8869821cf3ea9355d209fe2a5f0e7 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -288,17 +288,13 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
"GpuHostMsg_AcceleratedSurfaceBuffersSwapped"))
return;
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
- ack_params.mailbox_name = params.mailbox_name;
+ ack_params.mailbox = params.mailbox;
ack_params.sync_point = 0;
ScopedSendOnIOThread delayed_send(
host_id_,
new AcceleratedSurfaceMsg_BufferPresented(params.route_id,
ack_params));
- if (!params.mailbox_name.empty() &&
- params.mailbox_name.length() != GL_MAILBOX_SIZE_CHROMIUM)
- return;
-
RenderWidgetHostViewPort* view = GetRenderWidgetHostViewFromSurfaceID(
params.surface_id);
if (!view)
@@ -338,17 +334,13 @@ void GpuProcessHostUIShim::OnAcceleratedSurfacePostSubBuffer(
"GpuHostMsg_AcceleratedSurfacePostSubBuffer"))
return;
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
- ack_params.mailbox_name = params.mailbox_name;
+ ack_params.mailbox = params.mailbox;
ack_params.sync_point = 0;
ScopedSendOnIOThread delayed_send(
host_id_,
new AcceleratedSurfaceMsg_BufferPresented(params.route_id,
ack_params));
- if (!params.mailbox_name.empty() &&
- params.mailbox_name.length() != GL_MAILBOX_SIZE_CHROMIUM)
- return;
-
RenderWidgetHostViewPort* view =
GetRenderWidgetHostViewFromSurfaceID(params.surface_id);
if (!view)

Powered by Google App Engine
This is Rietveld 408576698