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`.

Signed-off-by: Liangliang Sui <coolsui.coding@gmail.com>
Change-Id: I5e4c84b6b2dda72755927a7d51078a446fb0ecbd
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2 files changed