Always disable the clip for layers
Bug #8149344 Change-Id: Ifd413cadb171232eb846b3d91b05b2d2457b9f35
This commit is contained in:
@@ -369,11 +369,10 @@ void DisplayList::outputViewProperties(const int level) {
|
||||
}
|
||||
}
|
||||
|
||||
bool clipToBoundsNeeded = mClipToBounds;
|
||||
bool clipToBoundsNeeded = mCaching ? false : mClipToBounds;
|
||||
if (mAlpha < 1) {
|
||||
if (mCaching) {
|
||||
ALOGD("%*sSetOverrideLayerAlpha %.2f", level * 2, "", mAlpha);
|
||||
clipToBoundsNeeded = false; // clipping done by layer
|
||||
} else if (!mHasOverlappingRendering) {
|
||||
ALOGD("%*sScaleAlpha %.2f", level * 2, "", mAlpha);
|
||||
} else {
|
||||
@@ -422,11 +421,10 @@ void DisplayList::setViewProperties(OpenGLRenderer& renderer, T& handler,
|
||||
renderer.concatMatrix(mTransformMatrix);
|
||||
}
|
||||
}
|
||||
bool clipToBoundsNeeded = mClipToBounds;
|
||||
bool clipToBoundsNeeded = mCaching ? false : mClipToBounds;
|
||||
if (mAlpha < 1) {
|
||||
if (mCaching) {
|
||||
renderer.setOverrideLayerAlpha(mAlpha);
|
||||
clipToBoundsNeeded = false; // clipping done by layer
|
||||
} else if (!mHasOverlappingRendering) {
|
||||
renderer.scaleAlpha(mAlpha);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user