skia2/include
senorblanco 915881fe74 Implement canComputeFastBounds() for image filters.
Image filters have never implemented this check, which means that
filters which affect transparent black falsely claim they can compute
their bounds.

Implemented an affectsTransparentBlack() virtual for image
filters, and a similar helper function for color filters.

This will affect the following GMs: imagefiltersscaled
(lighting, perlin noise now filter to clip),
colorfilterimagefilter (new test case), imagefiltersclipped
(perlin noise now filters to clip).

Note: I de-inlined SkPaint::canComputeFastBounds() to avoid adding
a dependency from SkPaint.h to SkImageFilter.h.h. Skia benches show
no impact from this change, but will watch the perf bots carefully.

BUG=4212

Review URL: https://codereview.chromium.org/1296943002
2015-08-20 07:42:11 -07:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c C API: add radial, sweep, and two-point conical gradient shaders 2015-08-12 07:37:34 -07:00
codec Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
config remove SkInstCnt 2015-06-26 11:45:03 -07:00
core Implement canComputeFastBounds() for image filters. 2015-08-20 07:42:11 -07:00
device/xps C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00
effects Implement canComputeFastBounds() for image filters. 2015-08-20 07:42:11 -07:00
gpu Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
pipe Fixing leaky handling of SkImage in SkDeferredCanvas. 2015-06-02 11:47:45 -07:00
ports Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
private Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
svg Revert[8] "move some public headers into private" 2015-08-17 18:29:48 -07:00
utils Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00
views Remove SK_BUILD_FOR SDL, BREW, and PALM. 2015-07-29 13:37:27 -07:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00