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

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: Sync the fling states 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 DCHECK(compositor_task_runner_->BelongsToCurrentThread()); 266 DCHECK(compositor_task_runner_->BelongsToCurrentThread());
267 DCHECK(ContainsKey(entry_map_, routing_id)); 267 DCHECK(ContainsKey(entry_map_, routing_id));
268 Entry& entry = entry_map_[routing_id]; 268 Entry& entry = entry_map_[routing_id];
269 269
270 if (entry.IsReady()) 270 if (entry.IsReady())
271 UnregisterObjects(routing_id); 271 UnregisterObjects(routing_id);
272 entry.synchronous_input_handler_proxy = nullptr; 272 entry.synchronous_input_handler_proxy = nullptr;
273 RemoveEntryIfNeeded(routing_id); 273 RemoveEntryIfNeeded(routing_id);
274 } 274 }
275 275
276 void SynchronousCompositorFilter::DidStartFlinging(bool is_on_impl) {}
277
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

Powered by Google App Engine
This is Rietveld 408576698