| 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..b90a8cf51421d8b01c9d85ce23ad6f8fff351b20 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_->input_router()->NotifySiteIsMobileOptimized(
|
| + is_mobile_optimized);
|
| + }
|
| +
|
| // This is a subset of OnSwapCompositorFrame() used in the synchronous
|
| // compositor flow.
|
| OnFrameMetadataUpdated(frame_metadata.Clone(), false);
|
|
|