diff options
| author | chaviw <chaviw@google.com> | 2020-10-15 15:08:02 -0700 |
|---|---|---|
| committer | chaviw <chaviw@google.com> | 2020-12-09 13:47:26 -0800 |
| commit | 8bbdc770f5c77840283aaf21e3dc08a42a9d65df (patch) | |
| tree | 17d5d28227d236f1de357b34c9dd1623f7e9d337 /core/java/android/view/SurfaceControl.java | |
| parent | 3c57702ea1b060d668d32bf3f75ab1a4c7318c3a (diff) | |
Clean up code in WSA and WS
1. Use Transaction API instead of SurfaceControl
2. Removed recoverMemory flag from Tranaction request APIs
3. Deleted a lot of unused code
Test: Split Screen + PIP
Change-Id: I91762453afadd79626f6fb2d8ba162054a011584
Diffstat (limited to 'core/java/android/view/SurfaceControl.java')
| -rw-r--r-- | core/java/android/view/SurfaceControl.java | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index 35dd781146a8..eef5ce6be2ca 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -1526,25 +1526,6 @@ public final class SurfaceControl implements Parcelable { /** * @hide */ - public void detachChildren() { - synchronized(SurfaceControl.class) { - sGlobalTransaction.detachChildren(this); - } - } - - /** - * @hide - */ - public void setTransparentRegionHint(Region region) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setTransparentRegionHint(this, region); - } - } - - /** - * @hide - */ public boolean clearContentFrameStats() { checkNotReleased(); return nativeClearContentFrameStats(mNativeObject); @@ -1573,51 +1554,6 @@ public final class SurfaceControl implements Parcelable { } /** - * Sets the Surface to be color space agnostic. If a surface is color space agnostic, - * the color can be interpreted in any color space. - * @param agnostic A boolean to indicate whether the surface is color space agnostic - * @hide - */ - public void setColorSpaceAgnostic(boolean agnostic) { - checkNotReleased(); - synchronized (SurfaceControl.class) { - sGlobalTransaction.setColorSpaceAgnostic(this, agnostic); - } - } - - /** - * @hide - */ - public void setBackgroundBlurRadius(int blur) { - checkNotReleased(); - synchronized (SurfaceControl.class) { - sGlobalTransaction.setBackgroundBlurRadius(this, blur); - } - } - - /** - * @hide - */ - public void setOpaque(boolean isOpaque) { - checkNotReleased(); - - synchronized (SurfaceControl.class) { - sGlobalTransaction.setOpaque(this, isOpaque); - } - } - - /** - * @hide - */ - public void setSecure(boolean isSecure) { - checkNotReleased(); - - synchronized (SurfaceControl.class) { - sGlobalTransaction.setSecure(this, isSecure); - } - } - - /** * @hide */ public int getWidth() { |
