DescriptionFixes for SkPictureShader.
Update comment in header to make it more clear that the picture
should be unaltered after creating the shader. We want our shaders
to be immutable, and this supports that.
Make the factory return NULL if the shader would have never drawn
anyway i.e. for a null picture or picture with no width/height.
Addresses comments I brought up in
https://codereview.chromium.org/221923007/#msg16.
BUG=skia:1976
Committed: http://code.google.com/p/skia/source/detail?r=14288
Patch Set 1 #
Total comments: 9
Patch Set 2 : Amend comment, remove unnecessary backwards compat., add test. #Patch Set 3 : Rebase #
Messages
Total messages: 8 (0 generated)
|