summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-07-12 18:02:37 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-12 18:02:37 -0700
commit401b1f85746ab7005907747a59534def967d825b (patch)
tree50998a8004375af416e259cc221d1d5c59140160 /core/java/android/view
parentb8405c78fc609d8fb63d9bc7544b23918489ed47 (diff)
parentf877308f77f7c6f3edd91618a092207dd3be9077 (diff)
downloadframeworks_base-401b1f85746ab7005907747a59534def967d825b.zip
frameworks_base-401b1f85746ab7005907747a59534def967d825b.tar.gz
frameworks_base-401b1f85746ab7005907747a59534def967d825b.tar.bz2
Merge "Remove obsolete optimization"
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/View.java3
-rw-r--r--core/java/android/view/ViewConfiguration.java18
2 files changed, 1 insertions, 20 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 78b34e6..6819f8b 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -10130,8 +10130,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
@ViewDebug.ExportedProperty(category = "drawing")
public boolean isOpaque() {
return (mPrivateFlags & OPAQUE_MASK) == OPAQUE_MASK &&
- ((mTransformationInfo != null ? mTransformationInfo.mAlpha : 1)
- >= 1.0f - ViewConfiguration.ALPHA_THRESHOLD);
+ ((mTransformationInfo != null ? mTransformationInfo.mAlpha : 1.0f) >= 1.0f);
}
/**
diff --git a/core/java/android/view/ViewConfiguration.java b/core/java/android/view/ViewConfiguration.java
index 823befb..107f1cc 100644
--- a/core/java/android/view/ViewConfiguration.java
+++ b/core/java/android/view/ViewConfiguration.java
@@ -30,24 +30,6 @@ import android.util.SparseArray;
*/
public class ViewConfiguration {
/**
- * Expected bit depth of the display panel.
- *
- * @hide
- */
- public static final float PANEL_BIT_DEPTH = 24;
-
- /**
- * Minimum alpha required for a view to draw.
- *
- * @hide
- */
- public static final float ALPHA_THRESHOLD = 0.5f / PANEL_BIT_DEPTH;
- /**
- * @hide
- */
- public static final float ALPHA_THRESHOLD_INT = 0x7f / PANEL_BIT_DEPTH;
-
- /**
* Defines the width of the horizontal scrollbar and the height of the vertical scrollbar in
* dips
*/