aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathProcessor.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-05-19 08:23:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-19 08:23:30 -0700
commitb8c241ad099f3f0c2cbf3e7c10f5f6207175d490 (patch)
tree5d5595ba1d6472261af05b0e698cda2160834033 /src/gpu/GrPathProcessor.h
parentd3a560fa80bfb3e2d2e989f951bb3b1c52316654 (diff)
Preliminary attempt to remove batch tracker
Diffstat (limited to 'src/gpu/GrPathProcessor.h')
-rw-r--r--src/gpu/GrPathProcessor.h32
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;