skia2/src
senorblanco@chromium.org af35920e6d Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource".
Note: I initially implemented this as a fully-generic SkResizeImageFilter, but then I realized that the dstRect should always be transformed by the filter matrix, but that the srcRect should not (since it's specified relative to the dimensions of the original bitmap). Since this would be confusing for someone attempting to use this as a generic resizing filter, I decided to build the functionality into SkBitmapSource instead.

BUG=
R=reed@google.com

Review URL: https://codereview.chromium.org/106933002

git-svn-id: http://skia.googlecode.com/svn/trunk@12522 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-05 22:41:53 +00:00
..
animator Changed maxInputCount for exact inputCount 2013-12-04 20:07:47 +00:00
core SkOnce: let f be any functor, update comments 2013-12-05 19:20:49 +00:00
device/xps Fix Windows build after the SkAutoFoo guard CL. 2013-11-18 16:33:08 +00:00
doc Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
effects Implement srcRect and dstRect functionality in SkBitmapSource. This is required for the "preserveAspectRatio" options of SVG's feImage. Covered by new GM "bitmapsource". 2013-12-05 22:41:53 +00:00
fonts Reverting r12427 2013-12-02 13:50:38 +00:00
gpu Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
image Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
images Big Cleanup: SkBitmapFactory, SkLazyPixelRef, SkImageCache 2013-12-05 18:31:42 +00:00
lazy Big Cleanup: SkBitmapFactory, SkLazyPixelRef, SkImageCache 2013-12-05 18:31:42 +00:00
opts Nit to self: NULL is not false. 2013-12-04 20:55:24 +00:00
pathops remove unused reduce order code 2013-11-25 14:18:21 +00:00
pdf Fix refcounting bug for Type1 font usage with more than 255 characters. 2013-12-05 21:14:02 +00:00
pipe Fix a memory leak in SkGPipeCanvas. 2013-11-12 14:32:38 +00:00
ports Fix change src/ports/SkImageDecoder_empty.cpp missed in 103033002 2013-12-05 20:40:04 +00:00
sfnt Remove SK_FONTHOST_USES_FONTMGR. 2013-11-11 15:53:29 +00:00
svg Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
text Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
utils Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
views Fix compilation with SK_ENABLE_INST_COUNT=1 2013-12-05 12:08:12 +00:00
xml Remove deprecated/obsolete Makefiles. 2013-04-17 13:36:15 +00:00