DescriptionReturn NULL when building empty LayerRasterizer.
In SkLayerRasterizer::snapshotRasterizer() and ::detachRasterizer(),
if no layers have been added, do not attempt to create an
SkLayerRasterizer. Instead, return NULL.
This fixes an error when running tests on Android.
Update dox to state that NULL may be returned.
Add tests.
Committed: https://skia.googlesource.com/skia/+/65044bfe021e9c0023d78080583e9acb3bdb5ce7
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|