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

Unified Diff: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java

Issue 2361633002: android: Introduce DisplayAndroid (Closed)
Patch Set: test comments Created 4 years, 2 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/display/DisplayAndroidManager.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
diff --git a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
index 44c599042ef3956501203b767b69873a743b6b4d..0a6f316ffab7473219c5567c460d41bc5f7847b9 100644
--- a/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
+++ b/ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java
@@ -23,6 +23,8 @@ import org.chromium.base.annotations.JNINamespace;
*
* Currently the information consists of very raw display information (height, width, DPI scale)
* regarding the main display.
+ *
+ * This class is being Deprecated. Use DisplayAndroid instead where possible.
*/
@JNINamespace("gfx")
public class DeviceDisplayInfo {
@@ -94,7 +96,7 @@ public class DeviceDisplayInfo {
* @return Bits per pixel.
*/
@CalledByNative
- public int getBitsPerPixel() {
+ private int getBitsPerPixel() {
int format = getPixelFormat();
PixelFormat info = new PixelFormat();
PixelFormat.getPixelFormatInfo(format, info);
@@ -106,7 +108,7 @@ public class DeviceDisplayInfo {
*/
@SuppressWarnings("deprecation")
@CalledByNative
- public int getBitsPerComponent() {
+ private int getBitsPerComponent() {
int format = getPixelFormat();
switch (format) {
case PixelFormat.RGBA_4444:
« no previous file with comments | « ui/android/java/src/org/chromium/ui/display/DisplayAndroidManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698