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: |