Overlay could not set position or rotation immediately after created, it should be triggered by signalEvent().
Originally from: https://partner.source.android.com/g/#change,1074
This commit is contained in:
@@ -595,6 +595,7 @@ LayerBuffer::OverlaySource::OverlaySource(LayerBuffer& layer,
|
|||||||
|
|
||||||
*overlayRef = new OverlayRef(mOverlayHandle, channel,
|
*overlayRef = new OverlayRef(mOverlayHandle, channel,
|
||||||
mWidth, mHeight, mFormat, mWidthStride, mHeightStride);
|
mWidth, mHeight, mFormat, mWidthStride, mHeightStride);
|
||||||
|
mLayer.mFlinger->signalEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
LayerBuffer::OverlaySource::~OverlaySource()
|
LayerBuffer::OverlaySource::~OverlaySource()
|
||||||
|
|||||||
Reference in New Issue
Block a user