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

Side by Side Diff: trunk/src/content/browser/frame_host/render_widget_host_view_guest.cc

Issue 163433008: Revert 251207 "Use gpu::Mailbox instead of std:string in IPCs" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" 10 #include "content/browser/frame_host/render_widget_host_view_guest.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 163 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
164 int gpu_host_id) { 164 int gpu_host_id) {
165 if (!guest_) 165 if (!guest_)
166 return; 166 return;
167 167
168 // If accelerated surface buffers are getting swapped then we're not using 168 // If accelerated surface buffers are getting swapped then we're not using
169 // the software path. 169 // the software path.
170 guest_->clear_damage_buffer(); 170 guest_->clear_damage_buffer();
171 FrameMsg_BuffersSwapped_Params guest_params; 171 FrameMsg_BuffersSwapped_Params guest_params;
172 guest_params.size = params.size; 172 guest_params.size = params.size;
173 guest_params.mailbox = params.mailbox; 173 guest_params.mailbox_name = params.mailbox_name;
174 guest_params.gpu_route_id = params.route_id; 174 guest_params.gpu_route_id = params.route_id;
175 guest_params.gpu_host_id = gpu_host_id; 175 guest_params.gpu_host_id = gpu_host_id;
176 guest_->SendMessageToEmbedder( 176 guest_->SendMessageToEmbedder(
177 new BrowserPluginMsg_BuffersSwapped(guest_->instance_id(), 177 new BrowserPluginMsg_BuffersSwapped(guest_->instance_id(),
178 guest_params)); 178 guest_params));
179 } 179 }
180 180
181 void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer( 181 void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer(
182 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 182 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
183 int gpu_host_id) { 183 int gpu_host_id) {
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 return; 569 return;
570 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin(); 570 for (ui::GestureRecognizer::Gestures::iterator g_it = gestures->begin();
571 g_it != gestures->end(); 571 g_it != gestures->end();
572 ++g_it) { 572 ++g_it) {
573 ForwardGestureEventToRenderer(*g_it); 573 ForwardGestureEventToRenderer(*g_it);
574 } 574 }
575 } 575 }
576 576
577 577
578 } // namespace content 578 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698