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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |