Index: tests/GrGetCoeffBlendKnownComponentsTest.cpp |
diff --git a/tests/GrGetCoeffBlendKnownComponentsTest.cpp b/tests/GrGetCoeffBlendKnownComponentsTest.cpp |
index c55b02b960c6c6215c5f4094f22395609f8f1467..38dfb30c56e0cbc9d8f01cd3f89953b695637fe7 100644 |
--- a/tests/GrGetCoeffBlendKnownComponentsTest.cpp |
+++ b/tests/GrGetCoeffBlendKnownComponentsTest.cpp |
@@ -31,7 +31,7 @@ DEF_TEST(GrGetCoeffBlendKnownComponents, reporter) { |
SkRandom random; |
for (int i = 0; i < SkXfermode::kLastCoeffMode; ++i) { |
SkXfermode::Mode mode = (SkXfermode::Mode)i; |
- SkAutoTUnref<SkXfermode> xm(SkXfermode::Create(mode)); |
+ auto xm(SkXfermode::Make(mode)); |
SkXfermode::Coeff srcCoeff, dstCoeff; |
SkAssertResult(SkXfermode::ModeAsCoeff(mode, &srcCoeff, &dstCoeff)); |
for (int j = 0; j < 1000; ++j) { |
@@ -44,7 +44,7 @@ DEF_TEST(GrGetCoeffBlendKnownComponents, reporter) { |
src, kRGBA_GrColorComponentFlags, |
dst, kRGBA_GrColorComponentFlags, |
&outColor, &outFlags); |
- GrColor baselineColor = make_baseline_color(src, dst, xm); |
+ GrColor baselineColor = make_baseline_color(src, dst, xm.get()); |
if (SkAbs32(GrColorUnpackA(baselineColor) - GrColorUnpackA(outColor)) > 1 || |
SkAbs32(GrColorUnpackR(baselineColor) - GrColorUnpackR(outColor)) > 1 || |
SkAbs32(GrColorUnpackG(baselineColor) - GrColorUnpackG(outColor)) > 1 || |