Descriptioncheck texture is not NULL to aovid segmentation fault. If the texture created by GrLockAndRefCachedBitmapTexture() is NULL, ColorTableEffect::Create will cause segmentation fault by GrAssert in src/gpu/GrTextureAccess.cpp. The simple patch checked texture to avoid segment fault, and returned a NULL effect to the caller. The caller will handle NULL effect, for example, it will set default effect.
Committed: http://code.google.com/p/skia/source/detail?r=9287
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|