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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no cvc/eventf Created 3 years, 8 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: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 3de174ce2fd47ad3183732a90dce51b2ffc4a9ab..6b019dd9863da84688001acebac23f6fce526bf8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -240,8 +240,6 @@ public class ContentViewCore
// Size of the viewport in physical pixels as set from onSizeChanged.
private int mViewportWidthPix;
private int mViewportHeightPix;
- private int mPhysicalBackingWidthPix;
- private int mPhysicalBackingHeightPix;
private int mTopControlsHeightPix;
private int mBottomControlsHeightPix;
private boolean mTopControlsShrinkBlinkSize;
@@ -726,22 +724,6 @@ public class ContentViewCore
}
/**
- * @return Width of underlying physical surface.
- */
- @CalledByNative
- private int getPhysicalBackingWidthPix() {
- return mPhysicalBackingWidthPix;
- }
-
- /**
- * @return Height of underlying physical surface.
- */
- @CalledByNative
- private int getPhysicalBackingHeightPix() {
- return mPhysicalBackingHeightPix;
- }
-
- /**
* @return The amount that the viewport size given to Blink is shrunk by the URL-bar..
*/
@CalledByNative
@@ -1152,21 +1134,6 @@ public class ContentViewCore
updateAfterSizeChanged();
}
- /**
- * Called when the underlying surface the compositor draws to changes size.
- * This may be larger than the viewport size.
- */
- public void onPhysicalBackingSizeChanged(int wPix, int hPix) {
- if (mPhysicalBackingWidthPix == wPix && mPhysicalBackingHeightPix == hPix) return;
-
- mPhysicalBackingWidthPix = wPix;
- mPhysicalBackingHeightPix = hPix;
-
- if (mNativeContentViewCore != 0) {
- nativeWasResized(mNativeContentViewCore);
- }
- }
-
@CalledByNative
private void onTouchDown(MotionEvent event) {
if (mShouldRequestUnbufferedDispatch) requestUnbufferedDispatch(event);

Powered by Google App Engine
This is Rietveld 408576698