Always disable the clip for layers

Bug #8149344

Change-Id: Ifd413cadb171232eb846b3d91b05b2d2457b9f35
This commit is contained in:
Romain Guy
2013-09-12 16:09:19 -07:00
parent 25f17f295b
commit 1de466fc91

View File

@@ -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 {