зеркало из https://github.com/mozilla/gecko-dev.git
Bug 953215 - Optimize per pixel alpha blending in H/W Composition. r=dwilson
This commit is contained in:
Родитель
90461dda1b
Коммит
75ebc4aad3
|
@ -275,6 +275,9 @@ HwcComposer2D::PrepareLayerList(Layer* aLayer,
|
||||||
hwcLayer.flags = 0;
|
hwcLayer.flags = 0;
|
||||||
hwcLayer.hints = 0;
|
hwcLayer.hints = 0;
|
||||||
hwcLayer.blending = HWC_BLENDING_PREMULT;
|
hwcLayer.blending = HWC_BLENDING_PREMULT;
|
||||||
|
if ((opacity == 0xFF) && (aLayer->GetContentFlags() & Layer::CONTENT_OPAQUE)) {
|
||||||
|
hwcLayer.blending = HWC_BLENDING_NONE;
|
||||||
|
}
|
||||||
#if ANDROID_VERSION >= 18
|
#if ANDROID_VERSION >= 18
|
||||||
hwcLayer.compositionType = HWC_FRAMEBUFFER;
|
hwcLayer.compositionType = HWC_FRAMEBUFFER;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче