diff options
author | 2016-02-01 12:09:07 -0800 | |
---|---|---|
committer | 2016-02-01 12:09:07 -0800 | |
commit | 8610002ff81fb5d81d1b7c312b5d0a8b05b41e13 (patch) | |
tree | 62e033879e0547c06741d3b67a9b67de5aa7f2f0 /include/core | |
parent | 3b7af78e813d182d61483fbfc317f26507adf778 (diff) |
Move SkColorMatrixFilter implementation to core.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1648933002
Review URL: https://codereview.chromium.org/1648933002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkColorFilter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h index aece22e05a..14192c55ea 100644 --- a/include/core/SkColorFilter.h +++ b/include/core/SkColorFilter.h @@ -122,6 +122,11 @@ public: */ static SkColorFilter* CreateComposeFilter(SkColorFilter* outer, SkColorFilter* inner); + /** Construct a color filter that transforms a color by a 4x5 matrix. The matrix is in row- + * major order and the translation column is specified in unnormalized, 0...255, space. + */ + static SkColorFilter* CreateMatrixFilterRowMajor255(const SkScalar array[20]); + /** * A subclass may implement this factory function to work with the GPU backend. It returns * a GrFragmentProcessor that implemets the color filter in GPU shader code. |