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 c0daedb3742ad67bd53a166e75877f14c7c4db38..b966b47705aaf4195c784d7d3cd393ea9ff5dad6 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_android.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
@@ -445,6 +445,7 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid( |
content_view_core_(nullptr), |
ime_adapter_android_(this), |
cached_background_color_(SK_ColorWHITE), |
+ view_(this), |
last_compositor_frame_sink_id_(kUndefinedCompositorFrameSinkId), |
gesture_provider_(ui::GetGestureProviderConfig( |
ui::GestureProviderConfigType::CURRENT_PLATFORM), |
@@ -721,7 +722,7 @@ gfx::Size RenderWidgetHostViewAndroid::GetPhysicalBackingSize() const { |
* ui::GetScaleFactorForNativeView(GetNativeView())); |
} |
- return content_view_core_->GetPhysicalBackingSize(); |
+ return view_.GetPhysicalBackingSize(); |
} |
bool RenderWidgetHostViewAndroid::DoBrowserControlsShrinkBlinkSize() const { |
@@ -811,6 +812,11 @@ void RenderWidgetHostViewAndroid::SetNeedsBeginFrames(bool needs_begin_frames) { |
outstanding_vsync_requests_ &= ~PERSISTENT_BEGIN_FRAME; |
} |
+void RenderWidgetHostViewAndroid::OnPhysicalBackingSizeChanged(int width, |
+ int height) { |
+ WasResized(); |
+} |
+ |
void RenderWidgetHostViewAndroid::OnStartContentIntent( |
const GURL& content_url, bool is_main_frame) { |
if (content_view_core_) |