aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathProcessor.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-05-19 06:49:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-19 06:49:32 -0700
commitcbfe91d82500f4ae8c3ff7bd74b3021a4b89fd84 (patch)
tree54dece088066b7ddd287ed5bb395fcfba2088b7b /src/gpu/GrPathProcessor.h
parent9b4b91f5c222da584bb72d5880f654ae0081454d (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;