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:Liangliang Sui <coolsui.coding@gmail.com> Change-Id: I5e4c84b6b2dda72755927a7d51078a446fb0ecbd
Loading
Please register or sign in to comment