diff options
author | 2017-02-02 10:43:58 -0500 | |
---|---|---|
committer | 2017-02-02 18:34:02 +0000 | |
commit | cae3a4c8ab7082df009a1e340f10292350e0c763 (patch) | |
tree | 93b73dca6a37d1241a0ecc8819fdc3cf23f64cb0 /include | |
parent | ebfbba9bbdacd754c8ad7429ee066f53f17bc66b (diff) |
Revert "Replaced all calls to fragmentPosition() with sk_FragCoord"
This reverts commit de4d301881e7fd084f1f0b359ec6f9b2bf8bd4c5.
Reason for revert: several Chrome rendering bugs on Mac
BUG=skia:
Change-Id: I492082b0b7e7c902ede4b598c5809f604d210ce1
Reviewed-on: https://skia-review.googlesource.com/7887
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrProcessor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h index 388bd54092..fa6574dc8d 100644 --- a/include/gpu/GrProcessor.h +++ b/include/gpu/GrProcessor.h @@ -105,7 +105,8 @@ public: */ enum RequiredFeatures { kNone_RequiredFeatures = 0, - kSampleLocations_RequiredFeature = 1 << 0 + kFragmentPosition_RequiredFeature = 1 << 0, + kSampleLocations_RequiredFeature = 1 << 1 }; GR_DECL_BITFIELD_OPS_FRIENDS(RequiredFeatures); @@ -147,6 +148,7 @@ protected: * must call these methods from its constructor. Otherwise, requests to use these features will * be denied. */ + void setWillReadFragmentPosition() { fRequiredFeatures |= kFragmentPosition_RequiredFeature; } void setWillUseSampleLocations() { fRequiredFeatures |= kSampleLocations_RequiredFeature; } void combineRequiredFeatures(const GrProcessor& other) { |