Index: samplecode/SampleAll.cpp |
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp |
index 2bbe29f3835c2a5ac20590ac9f0c187bbd0ff9ef..b8b0ee677d168dfc8d84b4b5a697879a5dc947a0 100644 |
--- a/samplecode/SampleAll.cpp |
+++ b/samplecode/SampleAll.cpp |
@@ -152,7 +152,7 @@ static void r6(SkLayerRasterizer::Builder* rastBuilder, SkPaint& p) { |
p.setAntiAlias(false); |
SkLayerRasterizer::Builder rastBuilder2; |
r5(&rastBuilder2, p); |
- p.setRasterizer(rastBuilder2.detachRasterizer())->unref(); |
+ p.setRasterizer(rastBuilder2.detach()); |
p.setXfermodeMode(SkXfermode::kClear_Mode); |
rastBuilder->addLayer(p); |
} |
@@ -246,7 +246,7 @@ static void apply_shader(SkPaint* paint, int index) { |
p.setAntiAlias(true); |
proc(&rastBuilder, p); |
- paint->setRasterizer(rastBuilder.detachRasterizer())->unref(); |
+ paint->setRasterizer(rastBuilder.detach()); |
} |
#if 1 |