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

Unified Diff: include/gpu/GrInvariantOutput.h

Issue 1348583002: Make skpaint->grpaint flow work for composing draws (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused inheriteds to satisfy clang Created 5 years, 3 months 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 | « include/gpu/GrFragmentProcessor.h ('k') | include/gpu/SkGr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrInvariantOutput.h
diff --git a/include/gpu/GrInvariantOutput.h b/include/gpu/GrInvariantOutput.h
index 83deac39f7ab102f51e9202f931412a6e012ed82..8cf4bf59c3244d2552e45b926ade4535061ee1b4 100644
--- a/include/gpu/GrInvariantOutput.h
+++ b/include/gpu/GrInvariantOutput.h
@@ -222,11 +222,6 @@ public:
if (GetAlphaAndCheckSingleChannel(color, &a)) {
fIsSingleComponent = true;
}
- } else if (kA_GrColorComponentFlag & fValidFlags) {
- // Assuming fColor is premul means if a is 0 the color must be all 0s.
- if (!GrColorUnpackA(fColor)) {
- this->internalSetToTransparentBlack();
- }
}
SkDEBUGCODE(this->validate());
}
@@ -249,6 +244,7 @@ public:
GrColor color() const { return fColor; }
GrColorComponentFlags validFlags() const { return fValidFlags; }
+ bool willUseInputColor() const { return fWillUseInputColor; }
/**
* If isSingleComponent is true, then the flag values for r, g, b, and a must all be the
@@ -308,7 +304,6 @@ private:
bool isSingleComponent() const { return fIsSingleComponent; }
- bool willUseInputColor() const { return fWillUseInputColor; }
void resetWillUseInputColor() { fWillUseInputColor = true; }
bool allStagesMulInput() const { return !fNonMulStageFound; }
« no previous file with comments | « include/gpu/GrFragmentProcessor.h ('k') | include/gpu/SkGr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698