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

Side by Side Diff: content/renderer/render_frame_impl.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | gpu/command_buffer/common/mailbox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 void RenderFrameImpl::OnBuffersSwapped( 480 void RenderFrameImpl::OnBuffersSwapped(
481 const FrameMsg_BuffersSwapped_Params& params) { 481 const FrameMsg_BuffersSwapped_Params& params) {
482 if (!compositing_helper_.get()) { 482 if (!compositing_helper_.get()) {
483 compositing_helper_ = 483 compositing_helper_ =
484 ChildFrameCompositingHelper::CreateCompositingHelperForRenderFrame( 484 ChildFrameCompositingHelper::CreateCompositingHelperForRenderFrame(
485 frame_, this, routing_id_); 485 frame_, this, routing_id_);
486 compositing_helper_->EnableCompositing(true); 486 compositing_helper_->EnableCompositing(true);
487 } 487 }
488 compositing_helper_->OnBuffersSwapped( 488 compositing_helper_->OnBuffersSwapped(
489 params.size, 489 params.size,
490 params.mailbox_name, 490 params.mailbox,
491 params.gpu_route_id, 491 params.gpu_route_id,
492 params.gpu_host_id, 492 params.gpu_host_id,
493 render_view_->GetWebView()->deviceScaleFactor()); 493 render_view_->GetWebView()->deviceScaleFactor());
494 } 494 }
495 495
496 void RenderFrameImpl::OnCompositorFrameSwapped(const IPC::Message& message) { 496 void RenderFrameImpl::OnCompositorFrameSwapped(const IPC::Message& message) {
497 FrameMsg_CompositorFrameSwapped::Param param; 497 FrameMsg_CompositorFrameSwapped::Param param;
498 if (!FrameMsg_CompositorFrameSwapped::Read(&message, &param)) 498 if (!FrameMsg_CompositorFrameSwapped::Read(&message, &param))
499 return; 499 return;
500 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); 500 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 1954
1955 void RenderFrameImpl::didStartLoading() { 1955 void RenderFrameImpl::didStartLoading() {
1956 Send(new FrameHostMsg_DidStartLoading(routing_id_)); 1956 Send(new FrameHostMsg_DidStartLoading(routing_id_));
1957 } 1957 }
1958 1958
1959 void RenderFrameImpl::didStopLoading() { 1959 void RenderFrameImpl::didStopLoading() {
1960 Send(new FrameHostMsg_DidStopLoading(routing_id_)); 1960 Send(new FrameHostMsg_DidStopLoading(routing_id_));
1961 } 1961 }
1962 1962
1963 } // namespace content 1963 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | gpu/command_buffer/common/mailbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698