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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl_perftest.cc

Issue 1911963005: Fix reporting of TouchToFirstScroll latency metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few nits Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const blink::WebInputEvent& input_event, 81 const blink::WebInputEvent& input_event,
82 const ui::LatencyInfo& latency_info) override { 82 const ui::LatencyInfo& latency_info) override {
83 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 83 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
84 } 84 }
85 void IncrementInFlightEventCount() override {} 85 void IncrementInFlightEventCount() override {}
86 void DecrementInFlightEventCount() override {} 86 void DecrementInFlightEventCount() override {}
87 void OnHasTouchEventHandlers(bool has_handlers) override {} 87 void OnHasTouchEventHandlers(bool has_handlers) override {}
88 void DidFlush() override {} 88 void DidFlush() override {}
89 void DidOverscroll(const DidOverscrollParams& params) override {} 89 void DidOverscroll(const DidOverscrollParams& params) override {}
90 void DidStopFlinging() override {} 90 void DidStopFlinging() override {}
91 void ForwardGestureEvent(const blink::WebGestureEvent& event) override {} 91 void ForwardGestureEventWithLatencyInfo(
92 const blink::WebGestureEvent& event,
93 const ui::LatencyInfo& latency_info) override {}
92 }; 94 };
93 95
94 class NullIPCSender : public IPC::Sender { 96 class NullIPCSender : public IPC::Sender {
95 public: 97 public:
96 NullIPCSender() : sent_count_(0) {} 98 NullIPCSender() : sent_count_(0) {}
97 ~NullIPCSender() override {} 99 ~NullIPCSender() override {}
98 100
99 bool Send(IPC::Message* message) override { 101 bool Send(IPC::Message* message) override {
100 delete message; 102 delete message;
101 ++sent_count_; 103 ++sent_count_;
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 383
382 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) { 384 TEST_F(InputRouterImplPerfTest, TouchSwipeToGestureScroll) {
383 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ", 385 SimulateTouchAndScrollEventSequence("TouchSwipeToGestureScroll ",
384 kDefaultSteps, 386 kDefaultSteps,
385 kDefaultOrigin, 387 kDefaultOrigin,
386 kDefaultDistance, 388 kDefaultDistance,
387 kDefaultIterations); 389 kDefaultIterations);
388 } 390 }
389 391
390 } // namespace content 392 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698