aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/QuickRejectTest.cpp
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 14:41:43 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 14:41:43 +0000
commitdeee496cd30070e52556dcb538c2e5eb39b66b81 (patch)
tree80f0326a191c966bc34057e4011bdb3233bc2a50 /tests/QuickRejectTest.cpp
parentb720ffd20829953c9595980422969520f5e33c76 (diff)
replace setConfig+allocPixels with single call
BUG=skia: Review URL: https://codereview.chromium.org/162643002 git-svn-id: http://skia.googlecode.com/svn/trunk@13426 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/QuickRejectTest.cpp')
-rw-r--r--tests/QuickRejectTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp
index 5c1b8776c2..2d367389bb 100644
--- a/tests/QuickRejectTest.cpp
+++ b/tests/QuickRejectTest.cpp
@@ -40,13 +40,11 @@ public:
static void test_drawBitmap(skiatest::Reporter* reporter) {
SkBitmap src;
- src.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
- src.allocPixels();
+ src.allocN32Pixels(10, 10);
src.eraseColor(SK_ColorWHITE);
SkBitmap dst;
- dst.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
- dst.allocPixels();
+ dst.allocN32Pixels(10, 10);
dst.eraseColor(SK_ColorTRANSPARENT);
SkCanvas canvas(dst);