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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 12440005: Use gpu::Mailbox in IPCs instead of std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_string_value_serializer.h" 8 #include "base/json/json_string_value_serializer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 create_guest_params)); 402 create_guest_params));
403 } 403 }
404 404
405 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) { 405 void BrowserPlugin::OnAdvanceFocus(int instance_id, bool reverse) {
406 DCHECK(render_view_); 406 DCHECK(render_view_);
407 render_view_->GetWebView()->advanceFocus(reverse); 407 render_view_->GetWebView()->advanceFocus(reverse);
408 } 408 }
409 409
410 void BrowserPlugin::OnBuffersSwapped(int instance_id, 410 void BrowserPlugin::OnBuffersSwapped(int instance_id,
411 const gfx::Size& size, 411 const gfx::Size& size,
412 std::string mailbox_name, 412 gpu::Mailbox mailbox_name,
413 int gpu_route_id, 413 int gpu_route_id,
414 int gpu_host_id) { 414 int gpu_host_id) {
415 DCHECK(instance_id == instance_id_); 415 DCHECK(instance_id == instance_id_);
416 EnableCompositing(true); 416 EnableCompositing(true);
417 417
418 compositing_helper_->OnBuffersSwapped(size, 418 compositing_helper_->OnBuffersSwapped(size,
419 mailbox_name, 419 mailbox_name,
420 gpu_route_id, 420 gpu_route_id,
421 gpu_host_id, 421 gpu_host_id,
422 GetDeviceScaleFactor()); 422 GetDeviceScaleFactor());
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 const WebKit::WebMouseEvent& event) { 1402 const WebKit::WebMouseEvent& event) {
1403 browser_plugin_manager()->Send( 1403 browser_plugin_manager()->Send(
1404 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, 1404 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_,
1405 instance_id_, 1405 instance_id_,
1406 plugin_rect_, 1406 plugin_rect_,
1407 &event)); 1407 &event));
1408 return true; 1408 return true;
1409 } 1409 }
1410 1410
1411 } // namespace content 1411 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin_compositing_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698