OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |