Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: include/gpu/GrPaint.h

Issue 683133006: Remove coverage from grpaint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrPaint.h
diff --git a/include/gpu/GrPaint.h b/include/gpu/GrPaint.h
index c5563f00fa28ee1fcfb1cd3150eaa5f5b5cdc9da..d44dd89e60a1d3c5d0059d24caec5f88cc04d32f 100644
--- a/include/gpu/GrPaint.h
+++ b/include/gpu/GrPaint.h
@@ -67,12 +67,6 @@ public:
GrColor getColor() const { return fColor; }
/**
- * Applies fractional coverage to the entire drawn primitive. Defaults to 0xff.
- */
- void setCoverage(uint8_t coverage) { fCoverage = coverage; }
- uint8_t getCoverage() const { return fCoverage; }
-
- /**
* Should primitives be anti-aliased or not. Defaults to false.
*/
void setAntiAlias(bool aa) { fAntiAlias = aa; }
@@ -125,7 +119,6 @@ public:
fDither = paint.fDither;
fColor = paint.fColor;
- fCoverage = paint.fCoverage;
fColorStages = paint.fColorStages;
fCoverageStages = paint.fCoverageStages;
@@ -140,7 +133,6 @@ public:
this->resetBlend();
this->resetOptions();
this->resetColor();
- this->resetCoverage();
this->resetStages();
}
@@ -214,7 +206,6 @@ private:
bool fDither;
GrColor fColor;
- uint8_t fCoverage;
void resetBlend() {
fSrcBlendCoeff = kOne_GrBlendCoeff;
@@ -230,10 +221,6 @@ private:
fColor = GrColorPackRGBA(0xff, 0xff, 0xff, 0xff);
}
- void resetCoverage() {
- fCoverage = 0xff;
- }
-
void resetStages() {
fColorStages.reset();
fCoverageStages.reset();
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698