diff options
author | bungeman <bungeman@google.com> | 2016-06-09 08:01:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-09 08:01:03 -0700 |
commit | 06ca8ec87cf6fab57cadd043a5ac18c4154a4129 (patch) | |
tree | 95e7eaaaf3f42ce550332277c431e3ec119446f4 /include/gpu/effects/GrConstColorProcessor.h | |
parent | 897a8e38879643d81a64d2bb6bed4e22af982aa4 (diff) |
sk_sp for Ganesh.
Convert use of GrFragmentProcessor, GrGeometryProcessor, and
GrXPFactory to sk_sp. This clarifies ownership and should
reduce reference count churn by moving ownership.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2041113004
Review-Url: https://codereview.chromium.org/2041113004
Diffstat (limited to 'include/gpu/effects/GrConstColorProcessor.h')
-rw-r--r-- | include/gpu/effects/GrConstColorProcessor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gpu/effects/GrConstColorProcessor.h b/include/gpu/effects/GrConstColorProcessor.h index 679533eac5..e9781bb22a 100644 --- a/include/gpu/effects/GrConstColorProcessor.h +++ b/include/gpu/effects/GrConstColorProcessor.h @@ -26,8 +26,8 @@ public: }; static const int kInputModeCnt = kLastInputMode + 1; - static GrFragmentProcessor* Create(GrColor color, InputMode mode) { - return new GrConstColorProcessor(color, mode); + static sk_sp<GrFragmentProcessor> Make(GrColor color, InputMode mode) { + return sk_sp<GrFragmentProcessor>(new GrConstColorProcessor(color, mode)); } const char* name() const override { return "Color"; } |