Merge "Address missed comments from previous CL" into rvc-dev am: dab5588e84 am: d00340e1a5

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11978216

Change-Id: I408b6beed79bee76df8f9c84edd2bdf1401cfe32
This commit is contained in:
Svetoslav Ganov
2020-06-24 17:13:36 +00:00
committed by Automerger Merge Worker
3 changed files with 3 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ public final class SurfaceControl implements Parcelable {
int transformHint);
@Nullable
@GuardedBy("sLock")
@GuardedBy("mLock")
private ArrayList<OnReparentListener> mReparentListeners;
/**

View File

@@ -1231,7 +1231,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
float postScaleX, float postScaleY) {
transaction.setPosition(surface, positionLeft, positionTop);
transaction.setMatrix(surface, postScaleX /*dsdx*/, 0f /*dtdx*/,
0f /*dsdy*/, postScaleY /*dtdy*/);
0f /*dtdy*/, postScaleY /*dsdy*/);
}
/** @hide */

View File

@@ -156,8 +156,7 @@ public class InlineContentView extends ViewGroup {
@Override
public void onDraw() {
computeParentPositionAndScale();
final int visibility = InlineContentView.this.isShown() ? VISIBLE : GONE;
mSurfaceView.setVisibility(visibility);
mSurfaceView.setVisibility(VISIBLE);
}
};