diff options
author | joshualitt <joshualitt@chromium.org> | 2014-10-07 08:05:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 08:05:21 -0700 |
commit | 07a255310aca9f3e83bf741dc663a58818ad681c (patch) | |
tree | 63b6c874f3021950c48f468f79818dedf194a35e /include/gpu/GrProcessor.h | |
parent | f19657f1d48fc69867809b7a602b9d0660069e99 (diff) |
gl programs rewrite
BUG=skia:
Review URL: https://codereview.chromium.org/628633003
Diffstat (limited to 'include/gpu/GrProcessor.h')
-rw-r--r-- | include/gpu/GrProcessor.h | 2 |
1 files changed, 2 insertions, 0 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)); } |