| Index: content/browser/renderer_host/render_widget_host_view_android.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| index 1514c5ac77e3378b2c97fbcc7bdd9fe016855769..aeb9ce8c13ab7eee45cdac85a76bc5e47200bc42 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc
|
| @@ -40,7 +40,7 @@ namespace content {
|
| namespace {
|
|
|
| void InsertSyncPointAndAckForGpu(
|
| - int gpu_host_id, int route_id, const std::string& return_mailbox) {
|
| + int gpu_host_id, int route_id, const gpu::Mailbox& return_mailbox) {
|
| uint32 sync_point =
|
| ImageTransportFactoryAndroid::GetInstance()->InsertSyncPoint();
|
| AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
|
| @@ -496,26 +496,13 @@ void RenderWidgetHostViewAndroid::OnSwapCompositorFrame(
|
| void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped(
|
| const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
|
| int gpu_host_id) {
|
| - if (params.mailbox_name.empty())
|
| + if (params.mailbox_name.IsZero())
|
| return;
|
|
|
| - std::string return_mailbox;
|
| - if (!current_mailbox_.IsZero()) {
|
| - return_mailbox.assign(
|
| - reinterpret_cast<const char*>(current_mailbox_.name),
|
| - sizeof(current_mailbox_.name));
|
| - }
|
| -
|
| base::Closure callback = base::Bind(&InsertSyncPointAndAckForGpu,
|
| gpu_host_id, params.route_id,
|
| - return_mailbox);
|
| -
|
| - gpu::Mailbox mailbox;
|
| - std::copy(params.mailbox_name.data(),
|
| - params.mailbox_name.data() + params.mailbox_name.length(),
|
| - reinterpret_cast<char*>(mailbox.name));
|
| -
|
| - BuffersSwapped(mailbox, params.size, callback);
|
| + current_mailbox_);
|
| + BuffersSwapped(params.mailbox_name, params.size, callback);
|
| }
|
|
|
| void RenderWidgetHostViewAndroid::BuffersSwapped(
|
|
|