Chromium Code Reviews| 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 f1cd1c8040cb894a027fb3e6e3fe2dc916f7ea68..1725e285a6ab409b255a3201a8ef87c827d4f58b 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
| @@ -49,6 +49,7 @@ |
| #include "content/browser/renderer_host/compositor_impl_android.h" |
| #include "content/browser/renderer_host/dip_util.h" |
| #include "content/browser/renderer_host/frame_metadata_util.h" |
| +#include "content/browser/renderer_host/input/input_router_impl.h" |
| #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h" |
| #include "content/browser/renderer_host/input/web_input_event_builders_android.h" |
| #include "content/browser/renderer_host/render_process_host_impl.h" |
| @@ -1027,6 +1028,13 @@ void RenderWidgetHostViewAndroid::SynchronousFrameMetadata( |
| if (!content_view_core_) |
| return; |
| + bool is_mobile_optimized = IsMobileOptimizedFrame(frame_metadata); |
| + |
| + if (host_ && host_->input_router()) { |
| + host_->host_->input_router()->NotifySiteIsMobileOptimized( |
|
aelias_OOO_until_Jul13
2016/09/09 03:06:07
Why double-host_ here but not in the if() statemen
|
| + is_mobile_optimized); |
| + } |
| + |
| // This is a subset of OnSwapCompositorFrame() used in the synchronous |
| // compositor flow. |
| OnFrameMetadataUpdated(frame_metadata.Clone(), false); |
| @@ -1878,4 +1886,4 @@ void RenderWidgetHostViewAndroid::ComputeEventLatencyOSTouchHistograms( |
| } |
| } |
| -} // namespace content |
| +} // namespace content |