aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPendingFragmentStage.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-13 13:11:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-13 13:11:40 -0700
commit52e7657cd850f95e66eb23c6d138ee45149a1039 (patch)
treef417fa9f052a326c8f2e9be1e8fc453cde307518 /src/gpu/GrPendingFragmentStage.h
parentc734e69e8cf94bacaf68d3d8ee3310d1ad1fe8b8 (diff)
Another trivial cleanup
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1229303003
Diffstat (limited to 'src/gpu/GrPendingFragmentStage.h')
-rw-r--r--src/gpu/GrPendingFragmentStage.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/gpu/GrPendingFragmentStage.h b/src/gpu/GrPendingFragmentStage.h
deleted file mode 100644
index 0bf984ab7d..0000000000
--- a/src/gpu/GrPendingFragmentStage.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrPendingProcessorStage_DEFINED
-#define GrPendingProcessorStage_DEFINED
-
-#include "GrFragmentStage.h"
-#include "GrCoordTransform.h"
-#include "GrFragmentProcessor.h"
-#include "GrPendingProgramElement.h"
-
-/**
- * This a baked variant of GrFragmentStage, as recorded in GrOptDrawState.
- */
-class GrPendingFragmentStage {
-public:
- GrPendingFragmentStage(const GrFragmentStage& stage) : fProc(stage.processor()) {}
-
- GrPendingFragmentStage(const GrPendingFragmentStage& that) { *this = that; }
-
- GrPendingFragmentStage& operator=(const GrPendingFragmentStage& that) {
- fProc.reset(that.fProc.get());
- return *this;
- }
-
- bool operator==(const GrPendingFragmentStage& that) const {
- return this->processor()->isEqual(*that.processor());
- }
-
- bool operator!=(const GrPendingFragmentStage& that) const { return !(*this == that); }
-
- /**
- * For a coord transform on the fragment processor, does it or the coord change matrix (if
- * relevant) contain perspective?
- */
- bool isPerspectiveCoordTransform(int matrixIndex) const {
- const GrCoordTransform& coordTransform = this->processor()->coordTransform(matrixIndex);
- uint32_t type = coordTransform.getMatrix().getType();
- return SkToBool(SkMatrix::kPerspective_Mask & type);
- }
-
- const char* name() const { return fProc->name(); }
-
- const GrFragmentProcessor* processor() const { return fProc.get(); }
-
-protected:
- GrPendingProgramElement<const GrFragmentProcessor> fProc;
-};
-#endif