OLD | NEW |
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 "ui/events/blink/input_handler_proxy.h" | 5 #include "ui/events/blink/input_handler_proxy.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 if (uma_latency_reporting_enabled_) | 266 if (uma_latency_reporting_enabled_) |
267 ReportInputEventLatencyUma(event, *latency_info); | 267 ReportInputEventLatencyUma(event, *latency_info); |
268 | 268 |
269 TRACE_EVENT_WITH_FLOW1("input,benchmark", | 269 TRACE_EVENT_WITH_FLOW1("input,benchmark", |
270 "LatencyInfo.Flow", | 270 "LatencyInfo.Flow", |
271 TRACE_ID_DONT_MANGLE(latency_info->trace_id()), | 271 TRACE_ID_DONT_MANGLE(latency_info->trace_id()), |
272 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, | 272 TRACE_EVENT_FLAG_FLOW_IN | TRACE_EVENT_FLAG_FLOW_OUT, |
273 "step", "HandleInputEventImpl"); | 273 "step", "HandleInputEventImpl"); |
274 | 274 |
275 scoped_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor = | 275 std::unique_ptr<cc::SwapPromiseMonitor> latency_info_swap_promise_monitor = |
276 input_handler_->CreateLatencyInfoSwapPromiseMonitor(latency_info); | 276 input_handler_->CreateLatencyInfoSwapPromiseMonitor(latency_info); |
277 InputHandlerProxy::EventDisposition disposition = HandleInputEvent(event); | 277 InputHandlerProxy::EventDisposition disposition = HandleInputEvent(event); |
278 return disposition; | 278 return disposition; |
279 } | 279 } |
280 | 280 |
281 InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent( | 281 InputHandlerProxy::EventDisposition InputHandlerProxy::HandleInputEvent( |
282 const WebInputEvent& event) { | 282 const WebInputEvent& event) { |
283 DCHECK(input_handler_); | 283 DCHECK(input_handler_); |
284 | 284 |
285 if (FilterInputEventForFlingBoosting(event)) | 285 if (FilterInputEventForFlingBoosting(event)) |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 // is made asynchronously, to minimize divergence between main thread and | 1345 // is made asynchronously, to minimize divergence between main thread and |
1346 // impl thread event handling paths. | 1346 // impl thread event handling paths. |
1347 base::ThreadTaskRunnerHandle::Get()->PostTask( | 1347 base::ThreadTaskRunnerHandle::Get()->PostTask( |
1348 FROM_HERE, | 1348 FROM_HERE, |
1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, | 1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, |
1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, | 1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, |
1351 scroll_result)); | 1351 scroll_result)); |
1352 } | 1352 } |
1353 | 1353 |
1354 } // namespace ui | 1354 } // namespace ui |
OLD | NEW |