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

Side by Side Diff: content/renderer/android/synchronous_compositor_filter.cc

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change comments in histogram 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 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/android/synchronous_compositor_filter.h" 5 #include "content/renderer/android/synchronous_compositor_filter.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 const DidOverscrollParams& params) { 234 const DidOverscrollParams& params) {
235 DCHECK(compositor_task_runner_->BelongsToCurrentThread()); 235 DCHECK(compositor_task_runner_->BelongsToCurrentThread());
236 SynchronousCompositorProxy* proxy = FindProxy(routing_id); 236 SynchronousCompositorProxy* proxy = FindProxy(routing_id);
237 if (!proxy) { 237 if (!proxy) {
238 DLOG(WARNING) << "No matching proxy in DidOverScroll " << routing_id; 238 DLOG(WARNING) << "No matching proxy in DidOverScroll " << routing_id;
239 return; 239 return;
240 } 240 }
241 proxy->DidOverscroll(params); 241 proxy->DidOverscroll(params);
242 } 242 }
243 243
244 void SynchronousCompositorFilter::DidStartFlinging(int routing_id) {}
245
244 void SynchronousCompositorFilter::DidStopFlinging(int routing_id) { 246 void SynchronousCompositorFilter::DidStopFlinging(int routing_id) {
245 DCHECK(compositor_task_runner_->BelongsToCurrentThread()); 247 DCHECK(compositor_task_runner_->BelongsToCurrentThread());
246 Send(new InputHostMsg_DidStopFlinging(routing_id)); 248 Send(new InputHostMsg_DidStopFlinging(routing_id));
247 } 249 }
248 250
249 void SynchronousCompositorFilter::NotifyInputEventHandled( 251 void SynchronousCompositorFilter::NotifyInputEventHandled(
250 int routing_id, 252 int routing_id,
251 blink::WebInputEvent::Type type) {} 253 blink::WebInputEvent::Type type) {}
252 254
253 void SynchronousCompositorFilter::DidAddSynchronousHandlerProxy( 255 void SynchronousCompositorFilter::DidAddSynchronousHandlerProxy(
(...skipping 22 matching lines...) Expand all
276 SynchronousCompositorFilter::Entry::Entry() 278 SynchronousCompositorFilter::Entry::Entry()
277 : begin_frame_source(nullptr), 279 : begin_frame_source(nullptr),
278 output_surface(nullptr), 280 output_surface(nullptr),
279 synchronous_input_handler_proxy(nullptr) {} 281 synchronous_input_handler_proxy(nullptr) {}
280 282
281 bool SynchronousCompositorFilter::Entry::IsReady() { 283 bool SynchronousCompositorFilter::Entry::IsReady() {
282 return begin_frame_source && synchronous_input_handler_proxy; 284 return begin_frame_source && synchronous_input_handler_proxy;
283 } 285 }
284 286
285 } // namespace content 287 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_filter.h ('k') | content/renderer/input/input_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698