diff options
author | Craig Mautner <cmautner@google.com> | 2013-08-19 23:11:50 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-19 23:13:47 +0000 |
commit | 007751276c210c39bd405ae9fa69854e67e80951 (patch) | |
tree | e3dc7267ee3cb3679626d764e485d2368165881d /core/java/android/view/WindowManagerGlobal.java | |
parent | b6c38e9de1a2824ce599d7074fa4a226926177c1 (diff) | |
parent | bc57cd1b248bf23e443581f9fe44167c94699ce8 (diff) | |
download | frameworks_base-007751276c210c39bd405ae9fa69854e67e80951.zip frameworks_base-007751276c210c39bd405ae9fa69854e67e80951.tar.gz frameworks_base-007751276c210c39bd405ae9fa69854e67e80951.tar.bz2 |
Merge "Notify ViewRootImpl when it's safe to modify Canvas." into klp-dev
Diffstat (limited to 'core/java/android/view/WindowManagerGlobal.java')
-rw-r--r-- | core/java/android/view/WindowManagerGlobal.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerGlobal.java b/core/java/android/view/WindowManagerGlobal.java index 3dd96f5..96c0ed2 100644 --- a/core/java/android/view/WindowManagerGlobal.java +++ b/core/java/android/view/WindowManagerGlobal.java @@ -494,6 +494,21 @@ public final class WindowManagerGlobal { } } } + + /** @hide */ + public void changeCanvasOpacity(IBinder token, boolean opaque) { + if (token == null) { + return; + } + synchronized (mLock) { + for (int i = mParams.size() - 1; i >= 0; --i) { + if (mParams.get(i).token == token) { + mRoots.get(i).changeCanvasOpacity(opaque); + return; + } + } + } + } } final class WindowLeaked extends AndroidRuntimeException { |