-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Should be way to set alpha state to layer same as width/height or transform.
Reasons:
-
Native support for alpha fading for some effects without overheads. Because layers already has alpha blending by content alpha this is not a problem for implementation.
-
Optimisation. Due to that when we set alpha to 0 not needed draw a layer we can use this case for reduce calling updateRenderState for temporary layer disabling.
Alpha fading can be implemented in current version only for non-media layers, because without fading layers can't be used in production code due to bad UX.
For regular layers need to use a middleware for each animation frame - draw content to canvas or framebuffer, apply alpha and upload it to layer, what is catastrophically slow for media layer emulatation when video is too large.