Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no UpdateLayerBounds Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 86382f1871bce979de2cc6b45ce8ebcb6b1f98dd..aff70783ec833767b94a72b89916cdf694855b6e 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
@@ -373,7 +373,8 @@ public class VrShellImpl
mContentVirtualDisplay.update(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));
@@ -608,6 +609,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);

Powered by Google App Engine
This is Rietveld 408576698