Index: gm/glyph_pos_align.cpp |
diff --git a/gm/glyph_pos_align.cpp b/gm/glyph_pos_align.cpp |
index e80955e1acc91d121b1ed663a1e2bc904db71cec..0ac877d0d0a2d3855e98b847bd2ea6185f448cc3 100644 |
--- a/gm/glyph_pos_align.cpp |
+++ b/gm/glyph_pos_align.cpp |
@@ -25,12 +25,8 @@ DEF_SIMPLE_GM_BG(glyph_pos_align, canvas, kWidth, kHeight, SK_ColorBLACK) { |
paint.setFakeBoldText(true); |
const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; |
const SkPoint pts[] = {{0, 0}, {kWidth, kHeight}}; |
- SkAutoTUnref<SkShader> grad(SkGradientShader::CreateLinear(pts, colors, nullptr, |
- SK_ARRAY_COUNT(colors), |
- SkShader::kMirror_TileMode)); |
- paint.setShader(grad); |
- |
- |
+ paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), |
+ SkShader::kMirror_TileMode)); |
paint.setTextAlign(SkPaint::kRight_Align); |
drawTestCase(canvas, "Right Align", kTextHeight, paint); |