OLD | NEW |
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 Loading... |
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 |
OLD | NEW |