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

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

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

Powered by Google App Engine
This is Rietveld 408576698