зеркало из https://github.com/mozilla/gecko-dev.git
Bug 802385 - Never flatten component alpha layers when compositing with an accelerated layer manager. r=roc
This commit is contained in:
Родитель
773bc1d51b
Коммит
e035462997
|
@ -2864,9 +2864,11 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
|||
nsRect bounds;
|
||||
nsIntRect pixBounds;
|
||||
int32_t appUnitsPerDevPixel;
|
||||
uint32_t stateFlags =
|
||||
(aContainerFrame->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) ?
|
||||
ContainerState::NO_COMPONENT_ALPHA : 0;
|
||||
uint32_t stateFlags = 0;
|
||||
if ((aContainerFrame->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) &&
|
||||
mRetainingManager && !mRetainingManager->AreComponentAlphaLayersEnabled()) {
|
||||
stateFlags = ContainerState::NO_COMPONENT_ALPHA;
|
||||
}
|
||||
uint32_t flags;
|
||||
while (true) {
|
||||
ContainerState state(aBuilder, aManager, aManager->GetLayerBuilder(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче