diff options
author | joshualitt <joshualitt@chromium.org> | 2015-05-19 08:23:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-19 08:23:30 -0700 |
commit | b8c241ad099f3f0c2cbf3e7c10f5f6207175d490 (patch) | |
tree | 5d5595ba1d6472261af05b0e698cda2160834033 /src/gpu/GrPathProcessor.h | |
parent | d3a560fa80bfb3e2d2e989f951bb3b1c52316654 (diff) |
Preliminary attempt to remove batch tracker
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/cbfe91d82500f4ae8c3ff7bd74b3021a4b89fd84
Review URL: https://codereview.chromium.org/1139723004
Diffstat (limited to 'src/gpu/GrPathProcessor.h')
-rw-r--r-- | src/gpu/GrPathProcessor.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/gpu/GrPathProcessor.h b/src/gpu/GrPathProcessor.h index e34d0cefbe..7c1ab2b5df 100644 --- a/src/gpu/GrPathProcessor.h +++ b/src/gpu/GrPathProcessor.h @@ -57,38 +57,6 @@ public: private: GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix); - /* - * CanCombineOutput will return true if two draws are 'batchable' from a color perspective. - * TODO is this really necessary? - */ - static bool CanCombineOutput(GrGPInput left, GrColor lColor, GrGPInput right, GrColor rColor) { - if (left != right) { - return false; - } - - if (kUniform_GrGPInput == left && lColor != rColor) { - return false; - } - - return true; - } - - static bool CanCombineLocalMatrices(const GrPrimitiveProcessor& l, - bool leftUsesLocalCoords, - const GrPrimitiveProcessor& r, - bool rightUsesLocalCoords) { - if (leftUsesLocalCoords != rightUsesLocalCoords) { - return false; - } - - const GrPathProcessor& left = l.cast<GrPathProcessor>(); - const GrPathProcessor& right = r.cast<GrPathProcessor>(); - if (leftUsesLocalCoords && !left.localMatrix().cheapEqualTo(right.localMatrix())) { - return false; - } - return true; - } - bool hasExplicitLocalCoords() const override { return false; } GrColor fColor; |