From 8ef51b975c2bdb8fa332f091863e5410c18576c7 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 5 Mar 2014 13:43:15 +0000 Subject: 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 --- tests/FontHostStreamTest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/FontHostStreamTest.cpp') 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); -- cgit v1.2.3