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

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

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/common/gpu/gpu_messages.h ('k') | 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 964
965 base::TimeTicks start_time; 965 base::TimeTicks start_time;
966 if (base::TimeTicks::IsHighResNowFastAndReliable()) 966 if (base::TimeTicks::IsHighResNowFastAndReliable())
967 start_time = base::TimeTicks::HighResNow(); 967 start_time = base::TimeTicks::HighResNow();
968 968
969 const char* const event_name = 969 const char* const event_name =
970 WebInputEventTraits::GetName(input_event->type); 970 WebInputEventTraits::GetName(input_event->type);
971 TRACE_EVENT1("renderer", "RenderWidget::OnHandleInputEvent", 971 TRACE_EVENT1("renderer", "RenderWidget::OnHandleInputEvent",
972 "event", event_name); 972 "event", event_name);
973 TRACE_EVENT_SYNTHETIC_DELAY_BEGIN("blink.HandleInputEvent"); 973 TRACE_EVENT_SYNTHETIC_DELAY_BEGIN("blink.HandleInputEvent");
974 TRACE_EVENT_FLOW_STEP0( 974 TRACE_EVENT_FLOW_STEP0("input",
975 "input", 975 "LatencyInfo.Flow",
976 "LatencyInfo.Flow", 976 TRACE_ID_DONT_MANGLE(latency_info.trace_id),
977 TRACE_ID_DONT_MANGLE(latency_info.trace_id), 977 "HandleInputEventMain");
orglofch 2014/10/11 03:20:57 Just fixed a typo.
978 "HanldeInputEventMain");
979 978
980 scoped_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor; 979 scoped_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor;
981 ui::LatencyInfo swap_latency_info(latency_info); 980 ui::LatencyInfo swap_latency_info(latency_info);
982 if (compositor_) { 981 if (compositor_) {
983 latency_info_swap_promise_monitor = 982 latency_info_swap_promise_monitor =
984 compositor_->CreateLatencyInfoSwapPromiseMonitor(&swap_latency_info) 983 compositor_->CreateLatencyInfoSwapPromiseMonitor(&swap_latency_info)
985 .Pass(); 984 .Pass();
986 } 985 }
987 986
988 if (base::TimeTicks::IsHighResNowFastAndReliable()) { 987 if (base::TimeTicks::IsHighResNowFastAndReliable()) {
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2195 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2197 video_hole_frames_.AddObserver(frame); 2196 video_hole_frames_.AddObserver(frame);
2198 } 2197 }
2199 2198
2200 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2199 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2201 video_hole_frames_.RemoveObserver(frame); 2200 video_hole_frames_.RemoveObserver(frame);
2202 } 2201 }
2203 #endif // defined(VIDEO_HOLE) 2202 #endif // defined(VIDEO_HOLE)
2204 2203
2205 } // namespace content 2204 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698