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

Side by Side Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2914023002: Remove LatencyInfo::sequence_number. (May break metrics).
Patch Set: Rebase Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/input/render_widget_input_handler.h" 5 #include "content/renderer/input/render_widget_input_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ui::LatencyInfo swap_latency_info(latency_info); 249 ui::LatencyInfo swap_latency_info(latency_info);
250 250
251 if (RenderThreadImpl::current()) { 251 if (RenderThreadImpl::current()) {
252 swap_latency_info.set_expected_queueing_time_on_dispatch( 252 swap_latency_info.set_expected_queueing_time_on_dispatch(
253 RenderThreadImpl::current() 253 RenderThreadImpl::current()
254 ->GetRendererScheduler() 254 ->GetRendererScheduler()
255 ->MostRecentExpectedQueueingTime()); 255 ->MostRecentExpectedQueueingTime());
256 } 256 }
257 257
258 swap_latency_info.AddLatencyNumber( 258 swap_latency_info.AddLatencyNumber(
259 ui::LatencyComponentType::INPUT_EVENT_LATENCY_RENDERER_MAIN_COMPONENT, 0, 259 ui::LatencyComponentType::INPUT_EVENT_LATENCY_RENDERER_MAIN_COMPONENT, 0);
260 0);
261 if (widget_->compositor()) { 260 if (widget_->compositor()) {
262 latency_info_swap_promise_monitor = 261 latency_info_swap_promise_monitor =
263 widget_->compositor()->CreateLatencyInfoSwapPromiseMonitor( 262 widget_->compositor()->CreateLatencyInfoSwapPromiseMonitor(
264 &swap_latency_info); 263 &swap_latency_info);
265 } 264 }
266 265
267 bool prevent_default = false; 266 bool prevent_default = false;
268 if (WebInputEvent::IsMouseEventType(input_event.GetType())) { 267 if (WebInputEvent::IsMouseEventType(input_event.GetType())) {
269 const WebMouseEvent& mouse_event = 268 const WebMouseEvent& mouse_event =
270 static_cast<const WebMouseEvent&>(input_event); 269 static_cast<const WebMouseEvent&>(input_event);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // it can be bundled in the event ack. 447 // it can be bundled in the event ack.
449 if (handling_event_overscroll_) { 448 if (handling_event_overscroll_) {
450 *handling_event_overscroll_ = std::move(params); 449 *handling_event_overscroll_ = std::move(params);
451 return; 450 return;
452 } 451 }
453 452
454 delegate_->OnDidOverscroll(*params); 453 delegate_->OnDidOverscroll(*params);
455 } 454 }
456 455
457 } // namespace content 456 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698