skia2/include
senorblanco@chromium.org 4e16bb2a32 Implement crop rect for lighting image filters. Changes for the CPU path were fairly straightforward: use the bounds rectangle when traversing the pixels, not the source rectangle.
For the GPU path, this required modifying the signature of SkImageFilter::asNewEffect() to receive the bounds offset, so that the lighting filters could offset the light position by the offset. It also required modifying the base-class implementation of SkImageFilter::filterImageGPU() (which implements single-pass filters) to intersect against the bounds rect, to pass its offset to asNewEffect(), and to modify the caller's offset (so it's drawn in the correct place).

Note: this will require rebaselining the lighting GM. Six new test cases were added, to accommodate a cropped version of each lighting filter.

R=bsalomon@google.com, reed@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10379 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-26 00:10:07 +00:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
config remove dead defines from SkUserConfig.h 2013-07-23 22:03:26 +00:00
core Implement crop rect for lighting image filters. Changes for the CPU path were fairly straightforward: use the bounds rectangle when traversing the pixels, not the source rectangle. 2013-07-26 00:10:07 +00:00
device/xps drawBitmap* cleanup 2013-07-25 12:10:42 +00:00
effects Implement crop rect for lighting image filters. Changes for the CPU path were fairly straightforward: use the bounds rectangle when traversing the pixels, not the source rectangle. 2013-07-26 00:10:07 +00:00
gpu make the filter mode for GrTextureAccess an enum so we can plumb down 2013-07-25 18:49:07 +00:00
images Separate core and images project. 2013-05-31 14:00:10 +00:00
lazy The two leaks are: 2013-07-11 22:29:29 +00:00
pathops Export SkPathOps.h functions for external use. 2013-07-09 19:43:35 +00:00
pdf drawBitmap* cleanup 2013-07-25 12:10:42 +00:00
pipe Fixes for piping bitmaps with encoded data. 2013-04-30 02:32:41 +00:00
ports Remove unimplemented Mutex() method from SkFontMgr.h. 2013-07-18 19:04:45 +00:00
svg Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
text Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
utils Add SkNWayCanvas comment API overrides. 2013-07-20 15:03:26 +00:00
views use select() so we can wait for XEvents or our timer 2013-06-17 13:42:43 +00:00
xml Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00