aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkLayerDrawLooper.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-03-22 07:23:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-22 07:23:24 -0700
commitf809d7687a4fb7b88b651b046da2bc0035d6aa09 (patch)
tree38fa4182df2c735459e43b0eaaa073c1ef8c612d /src/effects/SkLayerDrawLooper.cpp
parentcfcd1819d1431bbe5812c174fc337d3678d63f06 (diff)
switch colorfilters to sk_sp
Diffstat (limited to 'src/effects/SkLayerDrawLooper.cpp')
-rw-r--r--src/effects/SkLayerDrawLooper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp
index ae31482ae7..8510767801 100644
--- a/src/effects/SkLayerDrawLooper.cpp
+++ b/src/effects/SkLayerDrawLooper.cpp
@@ -102,7 +102,7 @@ void SkLayerDrawLooper::LayerDrawLooperContext::ApplyInfo(
dst->setShader(src.getShader());
}
if (bits & kColorFilter_Bit) {
- dst->setColorFilter(src.getColorFilter());
+ dst->setColorFilter(sk_ref_sp(src.getColorFilter()));
}
if (bits & kXfermode_Bit) {
dst->setXfermode(src.getXfermode());