Merge "Address missed comments from previous CL" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dab5588e84
@@ -229,7 +229,7 @@ public final class SurfaceControl implements Parcelable {
|
|||||||
int transformHint);
|
int transformHint);
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@GuardedBy("sLock")
|
@GuardedBy("mLock")
|
||||||
private ArrayList<OnReparentListener> mReparentListeners;
|
private ArrayList<OnReparentListener> mReparentListeners;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1231,7 +1231,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
float postScaleX, float postScaleY) {
|
float postScaleX, float postScaleY) {
|
||||||
transaction.setPosition(surface, positionLeft, positionTop);
|
transaction.setPosition(surface, positionLeft, positionTop);
|
||||||
transaction.setMatrix(surface, postScaleX /*dsdx*/, 0f /*dtdx*/,
|
transaction.setMatrix(surface, postScaleX /*dsdx*/, 0f /*dtdx*/,
|
||||||
0f /*dsdy*/, postScaleY /*dtdy*/);
|
0f /*dtdy*/, postScaleY /*dsdy*/);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -156,8 +156,7 @@ public class InlineContentView extends ViewGroup {
|
|||||||
@Override
|
@Override
|
||||||
public void onDraw() {
|
public void onDraw() {
|
||||||
computeParentPositionAndScale();
|
computeParentPositionAndScale();
|
||||||
final int visibility = InlineContentView.this.isShown() ? VISIBLE : GONE;
|
mSurfaceView.setVisibility(VISIBLE);
|
||||||
mSurfaceView.setVisibility(visibility);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user