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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 542463002: Cast: Make castv2 test work on perf bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 if (view_) { 1420 if (view_) {
1421 view_->SetBounds(pos); 1421 view_->SetBounds(pos);
1422 Send(new ViewMsg_Move_ACK(routing_id_)); 1422 Send(new ViewMsg_Move_ACK(routing_id_));
1423 } 1423 }
1424 } 1424 }
1425 1425
1426 bool RenderWidgetHostImpl::OnSwapCompositorFrame( 1426 bool RenderWidgetHostImpl::OnSwapCompositorFrame(
1427 const IPC::Message& message) { 1427 const IPC::Message& message) {
1428 // This trace event is used in 1428 // This trace event is used in
1429 // chrome/browser/extensions/api/cast_streaming/performance_test.cc 1429 // chrome/browser/extensions/api/cast_streaming/performance_test.cc
1430 UNSHIPPED_TRACE_EVENT0("test_fps", 1430 TRACE_EVENT0("test_fps",
1431 TRACE_DISABLED_BY_DEFAULT("OnSwapCompositorFrame")); 1431 TRACE_DISABLED_BY_DEFAULT("OnSwapCompositorFrame"));
1432 ViewHostMsg_SwapCompositorFrame::Param param; 1432 ViewHostMsg_SwapCompositorFrame::Param param;
1433 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param)) 1433 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param))
1434 return false; 1434 return false;
1435 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); 1435 scoped_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
1436 uint32 output_surface_id = param.a; 1436 uint32 output_surface_id = param.a;
1437 param.b.AssignTo(frame.get()); 1437 param.b.AssignTo(frame.get());
1438 std::vector<IPC::Message> messages_to_deliver_with_frame; 1438 std::vector<IPC::Message> messages_to_deliver_with_frame;
1439 messages_to_deliver_with_frame.swap(param.c); 1439 messages_to_deliver_with_frame.swap(param.c);
1440 1440
1441 for (size_t i = 0; i < frame->metadata.latency_info.size(); i++) 1441 for (size_t i = 0; i < frame->metadata.latency_info.size(); i++)
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 } 2315 }
2316 #endif 2316 #endif
2317 2317
2318 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2318 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2319 if (view_) 2319 if (view_)
2320 return view_->PreferredReadbackFormat(); 2320 return view_->PreferredReadbackFormat();
2321 return kN32_SkColorType; 2321 return kN32_SkColorType;
2322 } 2322 }
2323 2323
2324 } // namespace content 2324 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698