Index: tests/PathOpsExtendedTest.cpp |
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp |
index 1083a897e15657c35bb6b7b3a36c728377712477..cee27e458899ed296c9fb375ccfc53d5bbd8146b 100644 |
--- a/tests/PathOpsExtendedTest.cpp |
+++ b/tests/PathOpsExtendedTest.cpp |
@@ -289,8 +289,7 @@ static void scaleMatrix(const SkPath& one, const SkPath& two, SkMatrix& scale) { |
static int pathsDrawTheSame(SkBitmap& bits, const SkPath& scaledOne, const SkPath& scaledTwo, |
int& error2x2) { |
if (bits.width() == 0) { |
- bits.setConfig(SkBitmap::kARGB_8888_Config, bitWidth * 2, bitHeight); |
- bits.allocPixels(); |
+ bits.allocN32Pixels(bitWidth * 2, bitHeight); |
} |
SkCanvas canvas(bits); |
canvas.drawColor(SK_ColorWHITE); |
@@ -355,8 +354,7 @@ bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths) { |
if (bitHeight >= (int) sizeof(out)) { |
return false; |
} |
- bits.setConfig(SkBitmap::kARGB_8888_Config, bitWidth * 2, bitHeight); |
- bits.allocPixels(); |
+ bits.allocN32Pixels(bitWidth * 2, bitHeight); |
SkCanvas canvas(bits); |
canvas.drawColor(SK_ColorWHITE); |
SkPaint paint; |