aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProcessorSet.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-17 09:43:55 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-17 14:18:20 +0000
commit292bf7a163729330ec6d337992ddd2403a0ed8a2 (patch)
treec444a8f06726f6c919918b08b4d4a5d57ceae44e /src/gpu/GrProcessorSet.cpp
parentf68d10e04f69301e48f6e2852da43a009102eeba (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.cpp')
-rw-r--r--src/gpu/GrProcessorSet.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrProcessorSet.cpp b/src/gpu/GrProcessorSet.cpp
index db732666b7..22fa63589f 100644
--- a/src/gpu/GrProcessorSet.cpp
+++ b/src/gpu/GrProcessorSet.cpp
@@ -11,7 +11,10 @@
#include "GrXferProcessor.h"
#include "effects/GrPorterDuffXferProcessor.h"
-const GrProcessorSet GrProcessorSet::gEmpty{GrProcessorSet::Empty::kEmpty};
+const GrProcessorSet& GrProcessorSet::EmptySet() {
+ static const GrProcessorSet gEmpty(GrProcessorSet::Empty::kEmpty);
+ return gEmpty;
+}
GrProcessorSet::GrProcessorSet(GrPaint&& paint) : fXP(paint.getXPFactory()) {
fFlags = 0;