aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProcessor.h
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-20 09:51:59 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-20 17:19:13 +0000
commit535ba8d2b862a364f7f8009d6e79cd41519f5643 (patch)
tree9a02a366b03b6172d94e01fea18138d755b01b87 /src/gpu/GrProcessor.h
parentcfac205c5e1d31588ba5da2c7cb551f0d067de09 (diff)
Drop unused support for MSAA sample locations
Bug: skia: Change-Id: I96f0c25732d79c5881e400b121e81c5696a747a6 Reviewed-on: https://skia-review.googlesource.com/107441 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrProcessor.h')
-rw-r--r--src/gpu/GrProcessor.h32
1 files changed, 2 insertions, 30 deletions
diff --git a/src/gpu/GrProcessor.h b/src/gpu/GrProcessor.h
index c87d4ff262..28cb995918 100644
--- a/src/gpu/GrProcessor.h
+++ b/src/gpu/GrProcessor.h
@@ -167,18 +167,6 @@ public:
return str;
}
- /**
- * Platform specific built-in features that a processor can request for the fragment shader.
- */
- enum RequiredFeatures {
- kNone_RequiredFeatures = 0,
- kSampleLocations_RequiredFeature = 1 << 0
- };
-
- GR_DECL_BITFIELD_OPS_FRIENDS(RequiredFeatures);
-
- RequiredFeatures requiredFeatures() const { return fRequiredFeatures; }
-
void* operator new(size_t size);
void operator delete(void* target);
@@ -195,31 +183,15 @@ public:
ClassID classID() const { return fClassID; }
protected:
- GrProcessor(ClassID classID)
- : fClassID(classID)
- , fRequiredFeatures(kNone_RequiredFeatures) {}
-
- /**
- * If the prcoessor will generate code that uses platform specific built-in features, then it
- * must call these methods from its constructor. Otherwise, requests to use these features will
- * be denied.
- */
- void setWillUseSampleLocations() { fRequiredFeatures |= kSampleLocations_RequiredFeature; }
-
- void combineRequiredFeatures(const GrProcessor& other) {
- fRequiredFeatures |= other.fRequiredFeatures;
- }
+ GrProcessor(ClassID classID) : fClassID(classID) {}
private:
GrProcessor(const GrProcessor&) = delete;
GrProcessor& operator=(const GrProcessor&) = delete;
- ClassID fClassID;
- RequiredFeatures fRequiredFeatures;
+ ClassID fClassID;
};
-GR_MAKE_BITFIELD_OPS(GrProcessor::RequiredFeatures);
-
/** A GrProcessor with the ability to access textures, buffers, and image storages. */
class GrResourceIOProcessor : public GrProcessor {
public: