skia2/include
senorblanco 6db0a7bdce Image filters: optimize crop rect application.
If a filter does not affect transparent black, there's no
reason to allow the crop rect to expand beyond the optimal
size determined by onFilterNodeBounds(). So don't enlarge
the bounds unless the filter affects transparent black.

In order to determine which filters affect transparent
black, I've pulled the inverse of the canComputeFastBounds()
logic into a non-recursive, affectsTransparentBlack()
virtual, and left canComputeFastBounds() as a non-virtual,
recursive function that calls it.

BUG=599933
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1848953002
TBR=reed@google.com

Review URL: https://codereview.chromium.org/1848953002
2016-04-01 16:41:10 -07:00
..
android Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00
animator Change SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow. 2016-03-25 12:59:53 -07:00
c add drawCircle to c api 2016-02-09 13:25:51 -08:00
client/android switch xfermodes over to sk_sp 2016-03-29 11:32:50 -07:00
codec Parse icc profiles and exif orientation from jpeg markers 2016-03-21 08:04:40 -07:00
config SkPDF: Use Pathops clipping 2016-03-31 07:33:57 -07:00
core Image filters: optimize crop rect application. 2016-04-01 16:41:10 -07:00
effects Image filters: optimize crop rect application. 2016-04-01 16:41:10 -07:00
gpu Add GrContext::releaseAndAbandonContext() 2016-04-01 11:54:31 -07:00
images Delete SkPageFlipper 2016-03-25 10:31:22 -07:00
pathops Move SkTDArray to private. 2016-02-18 08:53:33 -08:00
ports Make FreeType usable on Windows. 2016-03-21 06:55:52 -07:00
private Make SkFixed private. 2016-03-28 10:32:06 -07:00
svg move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
utils Make SkRandom::next[US]Fixed1 private; update documentation for SkRandom::nextSScalar1. 2016-03-31 06:13:22 -07:00
views Move SkGLContext and some GrGLInterface implementations to skgputest module 2016-03-30 18:56:20 -07:00
xml Move SkTDArray to private. 2016-02-18 08:53:33 -08:00