aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontHostStreamTest.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-05 13:43:15 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-05 13:43:15 +0000
commit8ef51b975c2bdb8fa332f091863e5410c18576c7 (patch)
tree16d7c9bc2613cb2daa63c44ca71161c88e8df1ea /tests/FontHostStreamTest.cpp
parentf1f66c0c8623805fdb88f09c0d87cbdd1745e12b (diff)
remove deprecated use of bitmap config from tests
BUG=skia: R=halcanary@google.com, reed@google.com Author: reed@chromium.org Review URL: https://codereview.chromium.org/184233003 git-svn-id: http://skia.googlecode.com/svn/trunk@13666 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/FontHostStreamTest.cpp')
-rw-r--r--tests/FontHostStreamTest.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp
index a5f9ade4d1..5f959f3b87 100644
--- a/tests/FontHostStreamTest.cpp
+++ b/tests/FontHostStreamTest.cpp
@@ -20,9 +20,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) {
@@ -76,12 +75,12 @@ DEF_TEST(FontHostStream, reporter) {
SkIRect origRect = SkIRect::MakeWH(64, 64);
SkBitmap origBitmap;
- create(&origBitmap, origRect, SkBitmap::kARGB_8888_Config);
+ create(&origBitmap, origRect);
SkCanvas origCanvas(origBitmap);
SkIRect streamRect = SkIRect::MakeWH(64, 64);
SkBitmap streamBitmap;
- create(&streamBitmap, streamRect, SkBitmap::kARGB_8888_Config);
+ create(&streamBitmap, streamRect);
SkCanvas streamCanvas(streamBitmap);
SkPoint point = SkPoint::Make(24, 32);