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

Unified Diff: ui/android/display_android_manager.cc

Issue 2859313002: android: Fix display size under multiwindow (Closed)
Patch Set: 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: ui/android/display_android_manager.cc
diff --git a/ui/android/display_android_manager.cc b/ui/android/display_android_manager.cc
index af0bae94a854886b42e981cab32cfe70f70e5c69..6feec773212be85ca49438a6366c0d2851ba0eac 100644
--- a/ui/android/display_android_manager.cc
+++ b/ui/android/display_android_manager.cc
@@ -78,20 +78,13 @@ void DisplayAndroidManager::UpdateDisplay(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& jobject,
jint sdkDisplayId,
- jint physicalWidth,
- jint physicalHeight,
jint width,
jint height,
jfloat dipScale,
jint rotationDegrees,
jint bitsPerPixel,
jint bitsPerComponent) {
- gfx::Rect bounds_in_pixels = gfx::Rect(physicalWidth, physicalHeight);
-
- // Physical width and height might be not supported.
- if (bounds_in_pixels.IsEmpty())
- bounds_in_pixels = gfx::Rect(width, height);
-
+ gfx::Rect bounds_in_pixels = gfx::Rect(width, height);
const gfx::Rect bounds_in_dip = gfx::Rect(
gfx::ScaleToCeiledSize(bounds_in_pixels.size(), 1.0f / dipScale));
« no previous file with comments | « ui/android/display_android_manager.h ('k') | ui/android/java/src/org/chromium/ui/display/DisplayAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698