summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-05-11 17:17:31 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-11 17:17:31 -0700
commitc9e27d4ba1f46eb29aa8a794685ecb7c492d5d83 (patch)
tree970d4036948f86285a65ae9b579f45c96ae1de73 /core/java/android/view
parent775da5fa03d7b905ccf8545520c759401c84440d (diff)
parent78b8ef3f3ad8ab935f677d8d672db0d97bff8119 (diff)
downloadframeworks_base-c9e27d4ba1f46eb29aa8a794685ecb7c492d5d83.zip
frameworks_base-c9e27d4ba1f46eb29aa8a794685ecb7c492d5d83.tar.gz
frameworks_base-c9e27d4ba1f46eb29aa8a794685ecb7c492d5d83.tar.bz2
Merge "Surface: replace active rect with window crop" into jb-dev
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/Surface.java2
-rw-r--r--core/java/android/view/ViewRootImpl.java9
2 files changed, 1 insertions, 10 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java
index 1011d7a..a968768 100644
--- a/core/java/android/view/Surface.java
+++ b/core/java/android/view/Surface.java
@@ -511,7 +511,7 @@ public class Surface implements Parcelable {
/** @hide */
public native void setFlags(int flags, int mask);
/** @hide */
- public native void setActiveRect(Rect activeRect);
+ public native void setWindowCrop(Rect crop);
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java
index 1fcb2c3..1310719 100644
--- a/core/java/android/view/ViewRootImpl.java
+++ b/core/java/android/view/ViewRootImpl.java
@@ -263,7 +263,6 @@ public final class ViewRootImpl implements ViewParent,
final Rect mPendingVisibleInsets = new Rect();
final Rect mPendingContentInsets = new Rect();
final Rect mPendingSystemInsets = new Rect();
- final Rect mActiveRect = new Rect();
final ViewTreeObserver.InternalInsetsInfo mLastGivenInsets
= new ViewTreeObserver.InternalInsetsInfo();
@@ -1698,14 +1697,6 @@ public final class ViewRootImpl implements ViewParent,
}
}
- if (activeRectChanged && mSurface.isValid()) {
- mActiveRect.set(attachInfo.mSystemInsets.left, attachInfo.mSystemInsets.top,
- mWidth - attachInfo.mSystemInsets.right,
- mHeight - attachInfo.mSystemInsets.bottom);
- //Log.i(TAG, "Active rect " + mWindowAttributes.getTitle() + ": " + mActiveRect);
- mSurface.setActiveRect(mActiveRect);
- }
-
final boolean didLayout = layoutRequested && !mStopped;
boolean triggerGlobalLayoutListener = didLayout
|| attachInfo.mRecomputeGlobalAttributes;