| Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
| index d5ba53c31bb0f652f54049ffbd53fe1d3d23bd2d..657113a623475ea6dda85c4a4491f3a642511d90 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java
|
| @@ -375,7 +375,8 @@ public class VrShellImpl
|
| mContentVirtualDisplay.update(size, size, dpr, null, null, null);
|
| if (mTab != null && mTab.getContentViewCore() != null) {
|
| mTab.getContentViewCore().onSizeChanged(surfaceWidth, surfaceHeight, 0, 0);
|
| - mTab.getContentViewCore().onPhysicalBackingSizeChanged(surfaceWidth, surfaceHeight);
|
| + nativeOnPhysicalBackingSizeChanged(mNativeVrShell,
|
| + mTab.getContentViewCore().getWebContents(), surfaceWidth, surfaceHeight);
|
| }
|
| mRenderToSurfaceLayout.setLayoutParams(
|
| new FrameLayout.LayoutParams(surfaceWidth, surfaceHeight));
|
| @@ -596,6 +597,8 @@ public class VrShellImpl
|
| private native void nativeOnPause(long nativeVrShell);
|
| private native void nativeOnResume(long nativeVrShell);
|
| private native void nativeOnLoadProgressChanged(long nativeVrShell, double progress);
|
| + private native void nativeOnPhysicalBackingSizeChanged(
|
| + long nativeVrShell, WebContents webContents, int width, int height);
|
| private native void nativeContentPhysicalBoundsChanged(long nativeVrShell, int width,
|
| int height, float dpr);
|
| private native void nativeSetWebVrMode(long nativeVrShell, boolean enabled);
|
|
|