Index: content/browser/renderer_host/render_widget_host_view_android.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
index 739dd3f676ede9b8b9199822e9280e22c3a15050..5ebecc01a7cb62c1add4beb9c1e1c6192aecf7bc 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -18,6 +18,7 @@ |
#include "cc/output/compositor_frame.h" |
#include "cc/output/compositor_frame_ack.h" |
#include "content/browser/android/content_view_core_impl.h" |
+#include "content/browser/android/in_process/synchronous_compositor_impl.h" |
#include "content/browser/android/overscroll_glow.h" |
#include "content/browser/gpu/gpu_surface_tracker.h" |
#include "content/browser/renderer_host/compositor_impl_android.h" |
@@ -819,10 +820,10 @@ void RenderWidgetHostViewAndroid::UnhandledWheelEvent( |
InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( |
const WebKit::WebInputEvent& input_event) { |
- if (!content_view_core_) |
- return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
- |
- return content_view_core_->FilterInputEvent(input_event); |
+ SynchronousCompositorImpl* compositor = |
+ SynchronousCompositorImpl::FromRoutingID(host_->GetRoutingID()); |
+ return compositor ? compositor->HandleInputEvent(input_event) |
+ : INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
} |
void RenderWidgetHostViewAndroid::OnAccessibilityNotifications( |