Index: chrome/browser/android/vr_shell/vr_shell.cc |
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc |
index a726bc4f4120060b0324ee8f1cc000e5acef0ea8..3fc90091852b272afe729678f89ba98ce6c06252 100644 |
--- a/chrome/browser/android/vr_shell/vr_shell.cc |
+++ b/chrome/browser/android/vr_shell/vr_shell.cc |
@@ -400,6 +400,18 @@ void VrShell::GvrDelegateReady() { |
delegate_provider_->SetPresentingDelegate(this, gvr_api_); |
} |
+void VrShell::OnPhysicalBackingSizeChanged( |
+ JNIEnv* env, |
+ const JavaParamRef<jobject>& obj, |
+ const JavaParamRef<jobject>& jweb_contents, |
+ jint width, |
+ jint height) { |
+ content::WebContents* web_contents = |
+ content::WebContents::FromJavaWebContents(jweb_contents); |
+ gfx::Size size(width, height); |
+ web_contents->GetNativeView()->OnPhysicalBackingSizeChanged(size); |
+} |
+ |
void VrShell::ContentPhysicalBoundsChanged(JNIEnv* env, |
const JavaParamRef<jobject>& object, |
jint width, |