diff options
author | Florin Malita <fmalita@chromium.org> | 2017-05-08 13:03:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-08 18:04:57 +0000 |
commit | 26368c33007191205669bb227d6e7b915ba06f9e (patch) | |
tree | d20aba98d72739676cb159470aac65496b89472a /include | |
parent | 8e45b4f3a3d34d20ec9a13692f3e4de94997145c (diff) |
Minimize computeTotalInverse()'s inputs
The helper doesn't need a full context rec - it only looks at the CTM
and external local matrix. Pass these explicitly instead.
Change-Id: I6a5884f65cd383c2df0e8d83c9086789bd96f345
Reviewed-on: https://skia-review.googlesource.com/15870
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkShader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h index ba61314f77..4749dc77af 100644 --- a/include/core/SkShader.h +++ b/include/core/SkShader.h @@ -470,7 +470,9 @@ public: protected: void flatten(SkWriteBuffer&) const override; - bool computeTotalInverse(const ContextRec&, SkMatrix* totalInverse) const; + bool computeTotalInverse(const SkMatrix& ctm, + const SkMatrix* outerLocalMatrix, + SkMatrix* totalInverse) const; /** * Specialize creating a SkShader context using the supplied allocator. |