Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29431017 authored by Liangliang Sui's avatar Liangliang Sui Committed by John Reck
Browse files

Fix potential crash issues.

The `SkiaPipeline#renderLayerImpl` function may return `false` in the
middle due to the condition `(properties.getClipToBounds() &&
layerCanvas->quickReject(bounds))`. However, in such a case, neither the
`layerCanvas` state nor the `LightingInfo` is restored. This could
potentially lead to a failure in the `SkASSERT(saveCount == 1)` check
when the function is entered again for the same `RenderNode` and
`SkSurface`.

Cherry-picked from https://r.android.com/3559406



Test: build
Flag: EXEMPT bugfix

Signed-off-by: default avatarLiangliang Sui <coolsui.coding@gmail.com>
Change-Id: I5e4c84b6b2dda72755927a7d51078a446fb0ecbd
parent 067d0d32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment