9e6fc64988
The non-virtual filterColor4f handles premul and unpremul at the API boundary. onFilterColor4f always works on premul colors. To get the performance benefits, all color filters in a chain need to override the virtual. For now, WorkingFormatColorFilter is the other target, as builtin filters that use runtime effects are always wrapped with that. Net effect on matrix_filterColor4f timing: before: 10000 ns after : 380 ns Bug: skia:11730 Change-Id: I43d06f22c082636c4eca9e58dc3bc8225d09c910 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/383705 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Brian Osman <brianosman@google.com> |
||
---|---|---|
.. | ||
android | ||
c | ||
codec | ||
config | ||
core | ||
docs | ||
effects | ||
encode | ||
gpu | ||
pathops | ||
ports | ||
private | ||
sksl | ||
svg | ||
third_party | ||
utils |