| Index: src/gpu/GrDrawState.h
|
| diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
|
| index 3de0b12e8593164cda09d74e851487c8c0d5e878..2e4d7f86c44397598192d3f2567965dac21e3b25 100644
|
| --- a/src/gpu/GrDrawState.h
|
| +++ b/src/gpu/GrDrawState.h
|
| @@ -311,11 +311,15 @@ public:
|
| fCommon.fCoverage = GrColorPackRGBA(coverage, coverage, coverage, coverage);
|
| }
|
|
|
| - uint8_t getCoverage() const {
|
| - return GrColorUnpackR(fCommon.fCoverage);
|
| + /**
|
| + * Version of above that specifies 4 channel per-vertex color. The value
|
| + * should be premultiplied.
|
| + */
|
| + void setCoverage4(GrColor coverage) {
|
| + fCommon.fCoverage = coverage;
|
| }
|
|
|
| - GrColor getCoverageColor() const {
|
| + GrColor getCoverage() const {
|
| return fCommon.fCoverage;
|
| }
|
|
|
|
|