diff options
author | 2014-10-07 08:05:21 -0700 | |
---|---|---|
committer | 2014-10-07 08:05:21 -0700 | |
commit | 07a255310aca9f3e83bf741dc663a58818ad681c (patch) | |
tree | 63b6c874f3021950c48f468f79818dedf194a35e /include | |
parent | f19657f1d48fc69867809b7a602b9d0660069e99 (diff) |
gl programs rewrite
BUG=skia:
Review URL: https://codereview.chromium.org/628633003
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrProcessor.h | 2 | ||||
-rw-r--r-- | include/gpu/GrTypes.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/gpu/GrProcessor.h b/include/gpu/GrProcessor.h index 2dbead1c22..c1755a8954 100644 --- a/include/gpu/GrProcessor.h +++ b/include/gpu/GrProcessor.h @@ -42,6 +42,8 @@ public: uint32_t fValidFlags; bool fIsSingleComponent; + InvariantOutput() : fColor(0), fValidFlags(0), fIsSingleComponent(false) {} + bool isOpaque() const { return ((fValidFlags & kA_GrColorComponentFlag) && 0xFF == GrColorUnpackA(fColor)); } diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 22b2e224f6..1f5f9179b9 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -222,8 +222,10 @@ enum GrBlendCoeff { kConstA_GrBlendCoeff, //<! constant color alpha kIConstA_GrBlendCoeff, //<! one minus constant color alpha - kPublicGrBlendCoeffCount + kFirstPublicGrBlendCoeff = kZero_GrBlendCoeff, + kLastPublicGrBlendCoeff = kIConstA_GrBlendCoeff, }; +static const int kPublicGrBlendCoeffCount = kLastPublicGrBlendCoeff + 1; /** * Formats for masks, used by the font cache. |