From 9e34b95a1db9f28b31560405687dd651492048e1 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 20 Jan 2012 07:27:09 -0800 Subject: Remove fastInvalidate and setFast* methods - were only being used by Launcher, and they've been removed from there too Change-Id: I230e79c89a6450756220ad5cc07180bb5b725bd6 --- core/java/android/view/View.java | 109 --------------------------------------- 1 file changed, 109 deletions(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 9d5a773c0e64..1505ecdfcd1e 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -7995,84 +7995,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal } } - /** - * @hide - */ - public void setFastTranslationX(float x) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mTranslationX = x; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastTranslationY(float y) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mTranslationY = y; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastX(float x) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mTranslationX = x - mLeft; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastY(float y) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mTranslationY = y - mTop; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastScaleX(float x) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mScaleX = x; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastScaleY(float y) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mScaleY = y; - info.mMatrixDirty = true; - } - - /** - * @hide - */ - public void setFastAlpha(float alpha) { - ensureTransformationInfo(); - mTransformationInfo.mAlpha = alpha; - } - - /** - * @hide - */ - public void setFastRotationY(float y) { - ensureTransformationInfo(); - final TransformationInfo info = mTransformationInfo; - info.mRotationY = y; - info.mMatrixDirty = true; - } - /** * Hit rectangle in parent's coordinates * @@ -8649,37 +8571,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal } } - /** - * @hide - */ - public void fastInvalidate() { - if (skipInvalidate()) { - return; - } - if ((mPrivateFlags & (DRAWN | HAS_BOUNDS)) == (DRAWN | HAS_BOUNDS) || - (mPrivateFlags & DRAWING_CACHE_VALID) == DRAWING_CACHE_VALID || - (mPrivateFlags & INVALIDATED) != INVALIDATED) { - if (mParent instanceof View) { - ((View) mParent).mPrivateFlags |= INVALIDATED; - } - mPrivateFlags &= ~DRAWN; - mPrivateFlags |= DIRTY; - mPrivateFlags |= INVALIDATED; - mPrivateFlags &= ~DRAWING_CACHE_VALID; - if (mParent != null && mAttachInfo != null) { - if (mAttachInfo.mHardwareAccelerated) { - mParent.invalidateChild(this, null); - } else { - final Rect r = mAttachInfo.mTmpInvalRect; - r.set(0, 0, mRight - mLeft, mBottom - mTop); - // Don't call invalidate -- we don't want to internally scroll - // our own bounds - mParent.invalidateChild(this, r); - } - } - } - } - /** * Used to indicate that the parent of this view should clear its caches. This functionality * is used to force the parent to rebuild its display list (when hardware-accelerated), -- cgit v1.2.3-59-g8ed1b