Index: tests/DrawTextTest.cpp |
diff --git a/tests/DrawTextTest.cpp b/tests/DrawTextTest.cpp |
index bafd2cb5e28fd66f2a6dbff1e557011d49725e68..3a96c4ff2d8cb3621c952ccac24ca0a2495e17c2 100644 |
--- a/tests/DrawTextTest.cpp |
+++ b/tests/DrawTextTest.cpp |
@@ -16,9 +16,8 @@ |
static const SkColor bgColor = SK_ColorWHITE; |
-static void create(SkBitmap* bm, SkIRect bound, SkBitmap::Config config) { |
- bm->setConfig(config, bound.width(), bound.height()); |
- bm->allocPixels(); |
+static void create(SkBitmap* bm, SkIRect bound) { |
+ bm->allocN32Pixels(bound.width(), bound.height()); |
} |
static void drawBG(SkCanvas* canvas) { |
@@ -67,12 +66,12 @@ DEF_TEST(DrawText, reporter) { |
SkIRect drawTextRect = SkIRect::MakeWH(64, 64); |
SkBitmap drawTextBitmap; |
- create(&drawTextBitmap, drawTextRect, SkBitmap::kARGB_8888_Config); |
+ create(&drawTextBitmap, drawTextRect); |
SkCanvas drawTextCanvas(drawTextBitmap); |
SkIRect drawPosTextRect = SkIRect::MakeWH(64, 64); |
SkBitmap drawPosTextBitmap; |
- create(&drawPosTextBitmap, drawPosTextRect, SkBitmap::kARGB_8888_Config); |
+ create(&drawPosTextBitmap, drawPosTextRect); |
SkCanvas drawPosTextCanvas(drawPosTextBitmap); |
for (float offsetY = 0.0f; offsetY < 1.0f; offsetY += (1.0f / 16.0f)) { |