DescriptionImplement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource".
This also includes some changes to the xfermodeimagefilter and tileimagefilter GMs to properly handle the CTM. This worked before only because SkBitmapSource was ignoring the CTM. Now that it respects it, we need to give the correct transform. This also means the GMs now work while zoomed. It also implements CTM support for SkTileImageFilter.
NOTE: this will require rebaselining a number of imagefilter GMs on Nexus4, since they render in perspective (using the CTM). The changes to the results should all be improvements.
R=reed@google.com, robertphillips@google.com
Committed: https://code.google.com/p/skia/source/detail?r=12571
Patch Set 1 #
Total comments: 2
Patch Set 2 : Switch to 1-arg and 3-arg constructors #Patch Set 3 : Win32 fixes, and correctness fixes for non-integer dest rects #
Total comments: 2
Patch Set 4 : Fix xfermodeimagefilter and tileimagefilter GMs #Patch Set 5 : Fix SkTileImageFilter to respect CTM, and not to request an invalid subset #
Total comments: 33
Patch Set 6 : Fix nits #
Messages
Total messages: 18 (0 generated)
|