diff options
author | Brian Salomon <bsalomon@google.com> | 2017-05-17 09:43:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-17 14:18:20 +0000 |
commit | 292bf7a163729330ec6d337992ddd2403a0ed8a2 (patch) | |
tree | c444a8f06726f6c919918b08b4d4a5d57ceae44e /src/gpu/GrProcessorSet.h | |
parent | f68d10e04f69301e48f6e2852da43a009102eeba (diff) |
Remove static initializer of GrProcessorSet::gEmpty
Change-Id: I9d4cb34c54458ad42a413f251d1018217de26b90
Reviewed-on: https://skia-review.googlesource.com/17206
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProcessorSet.h')
-rw-r--r-- | src/gpu/GrProcessorSet.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrProcessorSet.h b/src/gpu/GrProcessorSet.h index b15da1e3f7..b13175ab10 100644 --- a/src/gpu/GrProcessorSet.h +++ b/src/gpu/GrProcessorSet.h @@ -134,12 +134,11 @@ public: bool isFinalized() const { return SkToBool(kFinalized_Flag & fFlags); } - static const GrProcessorSet& EmptySet() { return gEmpty; } + static const GrProcessorSet& EmptySet(); static constexpr const Analysis EmptySetAnalysis() { return Analysis(Empty::kEmpty); } private: GrProcessorSet(Empty) : fXP((const GrXferProcessor*)nullptr), fFlags(kFinalized_Flag) {} - static const GrProcessorSet gEmpty; // This absurdly large limit allows Analysis and this to pack fields together. static constexpr int kMaxColorProcessors = UINT8_MAX; |