Descriptionadd applyFilter() to SkImage
Result:
- clients can get a filtered version of an image without having to setup a temp drawing environment
- for some cases, the process is more efficient even than (deprecated) drawSprite, since there is no need to draw/copy the result
Impl:
- made Proxy virtual so we don't need to have an existing device to use it
This, in conjunction with LocalMatrixImageFilter, should allow us to simplify and optimize ApplyImageFilter() in cc/output/gl_renderer.cc
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/88d064d0e481949184305c7b1d6b282dddffac39
Patch Set 1 #Patch Set 2 : fix tests #Patch Set 3 : more robust gm, fix bounds for non-snug case #Patch Set 4 : can't use +[] trick on windows :( #
Total comments: 20
Patch Set 5 : appy comments #Patch Set 6 : #
Total comments: 6
Patch Set 7 : rebase to new effect factories, use stroke to show image bounds #
Total comments: 1
Messages
Total messages: 40 (15 generated)
|