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

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

Issue 2023243002: Remove base::Tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint fix Created 4 years, 6 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
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 8
9 #include <set> 9 #include <set>
10 #include <tuple>
10 #include <utility> 11 #include <utility>
11 12
12 #include "base/auto_reset.h" 13 #include "base/auto_reset.h"
13 #include "base/bind.h" 14 #include "base/bind.h"
14 #include "base/command_line.h" 15 #include "base/command_line.h"
15 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
16 #include "base/i18n/rtl.h" 17 #include "base/i18n/rtl.h"
17 #include "base/lazy_instance.h" 18 #include "base/lazy_instance.h"
18 #include "base/location.h" 19 #include "base/location.h"
19 #include "base/macros.h" 20 #include "base/macros.h"
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 bool RenderWidgetHostImpl::OnSwapCompositorFrame( 1555 bool RenderWidgetHostImpl::OnSwapCompositorFrame(
1555 const IPC::Message& message) { 1556 const IPC::Message& message) {
1556 // This trace event is used in 1557 // This trace event is used in
1557 // chrome/browser/extensions/api/cast_streaming/performance_test.cc 1558 // chrome/browser/extensions/api/cast_streaming/performance_test.cc
1558 TRACE_EVENT0("test_fps,benchmark", "OnSwapCompositorFrame"); 1559 TRACE_EVENT0("test_fps,benchmark", "OnSwapCompositorFrame");
1559 1560
1560 ViewHostMsg_SwapCompositorFrame::Param param; 1561 ViewHostMsg_SwapCompositorFrame::Param param;
1561 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param)) 1562 if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param))
1562 return false; 1563 return false;
1563 std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame); 1564 std::unique_ptr<cc::CompositorFrame> frame(new cc::CompositorFrame);
1564 uint32_t output_surface_id = base::get<0>(param); 1565 uint32_t output_surface_id = std::get<0>(param);
1565 base::get<1>(param).AssignTo(frame.get()); 1566 std::get<1>(param).AssignTo(frame.get());
1566 std::vector<IPC::Message> messages_to_deliver_with_frame; 1567 std::vector<IPC::Message> messages_to_deliver_with_frame;
1567 messages_to_deliver_with_frame.swap(base::get<2>(param)); 1568 messages_to_deliver_with_frame.swap(std::get<2>(param));
1568 1569
1569 if (!ui::LatencyInfo::Verify(frame->metadata.latency_info, 1570 if (!ui::LatencyInfo::Verify(frame->metadata.latency_info,
1570 "RenderWidgetHostImpl::OnSwapCompositorFrame")) { 1571 "RenderWidgetHostImpl::OnSwapCompositorFrame")) {
1571 std::vector<ui::LatencyInfo>().swap(frame->metadata.latency_info); 1572 std::vector<ui::LatencyInfo>().swap(frame->metadata.latency_info);
1572 } 1573 }
1573 1574
1574 latency_tracker_.OnSwapCompositorFrame(&frame->metadata.latency_info); 1575 latency_tracker_.OnSwapCompositorFrame(&frame->metadata.latency_info);
1575 1576
1576 bool is_mobile_optimized = IsMobileOptimizedFrame(frame->metadata); 1577 bool is_mobile_optimized = IsMobileOptimizedFrame(frame->metadata);
1577 input_router_->NotifySiteIsMobileOptimized(is_mobile_optimized); 1578 input_router_->NotifySiteIsMobileOptimized(is_mobile_optimized);
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2165 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2165 } 2166 }
2166 2167
2167 BrowserAccessibilityManager* 2168 BrowserAccessibilityManager*
2168 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2169 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2169 return delegate_ ? 2170 return delegate_ ?
2170 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2171 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2171 } 2172 }
2172 2173
2173 } // namespace content 2174 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698