diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-05-22 13:09:48 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-22 19:34:46 +0000 |
commit | 1c5489412de12ab9afdbc0085e65418ca8753b43 (patch) | |
tree | c153d1e151f6ea23dec4f51fb58ed935e42e213e /src/gpu/GrFragmentProcessor.h | |
parent | 91dfa3b571f1048d70033385de2c0c8b4a07373f (diff) |
ccpr: Remove local matrix data from path instances
Uses the built-in local matrix code instead trying to bake it into the
path instance data. If we find a case that can benefit from this type
of optimization in the future, we can use something like a texel
buffer and send in all of the coord transform data -- not just the
local matrix.
Bug: skia:
Change-Id: I194bc9e4f83e588f8aa93a1a4d40097475d84977
Reviewed-on: https://skia-review.googlesource.com/129332
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrFragmentProcessor.h')
-rw-r--r-- | src/gpu/GrFragmentProcessor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrFragmentProcessor.h b/src/gpu/GrFragmentProcessor.h index fa674d5d80..b875c7919f 100644 --- a/src/gpu/GrFragmentProcessor.h +++ b/src/gpu/GrFragmentProcessor.h @@ -13,6 +13,7 @@ class GrCoordTransform; class GrGLSLFragmentProcessor; class GrInvariantOutput; +class GrPaint; class GrPipeline; class GrProcessorKeyBuilder; class GrShaderCaps; @@ -191,6 +192,7 @@ public: public: explicit Iter(const GrFragmentProcessor* fp) { fFPStack.push_back(fp); } explicit Iter(const GrPipeline& pipeline); + explicit Iter(const GrPaint&); const GrFragmentProcessor* next(); private: |