diff options
| author | Chavi Weingarten <chaviw@google.com> | 2020-12-10 21:31:46 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-12-10 21:31:46 +0000 |
| commit | 98434ff9119cde822d10626998de5894bb97046c (patch) | |
| tree | 1f732484b05985ec66644e49d39200d2233b37ab /core/java | |
| parent | 7efaf6e39bb6e5cdf1c3e827cc0005dd8689cb37 (diff) | |
| parent | 8bbdc770f5c77840283aaf21e3dc08a42a9d65df (diff) | |
Merge changes I91762453,Ic1abc3c0
* changes:
Clean up code in WSA and WS
Send transaction when possible for WSA
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/SurfaceControl.java | 172 |
1 files changed, 0 insertions, 172 deletions
diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index 81e0852fdfa2..23de215eeefc 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -1601,97 +1601,6 @@ public final class SurfaceControl implements Parcelable { /** * @hide */ - public void deferTransactionUntil(SurfaceControl barrier, long frame) { - synchronized(SurfaceControl.class) { - sGlobalTransaction.deferTransactionUntil(this, barrier, frame); - } - } - - /** - * @hide - */ - public void reparentChildren(SurfaceControl newParent) { - synchronized(SurfaceControl.class) { - sGlobalTransaction.reparentChildren(this, newParent); - } - } - - /** - * @hide - */ - public void detachChildren() { - synchronized(SurfaceControl.class) { - sGlobalTransaction.detachChildren(this); - } - } - - /** - * @hide - */ - @UnsupportedAppUsage - public void setLayer(int zorder) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setLayer(this, zorder); - } - } - - /** - * @hide - */ - @UnsupportedAppUsage - public void setPosition(float x, float y) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setPosition(this, x, y); - } - } - - /** - * @hide - */ - public void setBufferSize(int w, int h) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setBufferSize(this, w, h); - } - } - - /** - * @hide - */ - @UnsupportedAppUsage - public void hide() { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.hide(this); - } - } - - /** - * @hide - */ - @UnsupportedAppUsage - public void show() { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.show(this); - } - } - - /** - * @hide - */ - public void setTransparentRegionHint(Region region) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setTransparentRegionHint(this, region); - } - } - - /** - * @hide - */ public boolean clearContentFrameStats() { checkNotReleased(); return nativeClearContentFrameStats(mNativeObject); @@ -1722,87 +1631,6 @@ public final class SurfaceControl implements Parcelable { /** * @hide */ - public void setAlpha(float alpha) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setAlpha(this, alpha); - } - } - - /** - * @hide - */ - public void setBackgroundBlurRadius(int blur) { - checkNotReleased(); - synchronized (SurfaceControl.class) { - sGlobalTransaction.setBackgroundBlurRadius(this, blur); - } - } - - /** - * @hide - */ - public void setMatrix(float dsdx, float dtdx, float dtdy, float dsdy) { - checkNotReleased(); - synchronized(SurfaceControl.class) { - sGlobalTransaction.setMatrix(this, dsdx, dtdx, dtdy, dsdy); - } - } - - /** - * 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); - } - } - - /** - * Bounds the surface and its children to the bounds specified. Size of the surface will be - * ignored and only the crop and buffer size will be used to determine the bounds of the - * surface. If no crop is specified and the surface has no buffer, the surface bounds is only - * constrained by the size of its parent bounds. - * - * @param crop Bounds of the crop to apply. - * @hide - */ - public void setWindowCrop(Rect crop) { - checkNotReleased(); - synchronized (SurfaceControl.class) { - sGlobalTransaction.setWindowCrop(this, crop); - } - } - - /** - * @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() { synchronized (mLock) { return mWidth; |
