Improved to skip Luma Mask when conditions are the same
as AlphaMask for optimization in
e409bb29.
If the composition node is an image, it is not skipped because
it is not known for sure whether to skip it.
Change-Id: I82d1c5ab0ad4bf9624913a574556ea7ae7709a7e
scene->push(_sceneBuildHelper(*child, vBox, svgPath, false, isMaskWhite));
} else if ((*child)->type == SvgNodeType::Image) {
auto image = _imageBuildHelper(*child, vBox, svgPath);
- if (image) scene->push(move(image));
+ if (image) {
+ scene->push(move(image));
+ if (isMaskWhite) *isMaskWhite = false;
+ }
} else if ((*child)->type != SvgNodeType::Mask) {
auto shape = _shapeBuildHelper(*child, vBox, svgPath);
if (shape) {