aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ClipCubicTest.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 22:00:04 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-13 22:00:04 +0000
commitfa9e5fa42a555712fb7a29d08d2ae2bdef0ed68e (patch)
tree3b697b22d1fa371f6e1a0420cc19f5c093aa9fa0 /tests/ClipCubicTest.cpp
parenta7692a9ac6cb8a0bbe6bbdfc83f86014a7dc265e (diff)
replace setConfig+allocPixels with alloc-or-install-pixels
BUG=skia: R=scroggo@google.com, halcanary@google.com, reed@google.com Author: reed@chromium.org Review URL: https://codereview.chromium.org/164203003 git-svn-id: http://skia.googlecode.com/svn/trunk@13442 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/ClipCubicTest.cpp')
-rw-r--r--tests/ClipCubicTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ClipCubicTest.cpp b/tests/ClipCubicTest.cpp
index db6ae80293..31b38f2726 100644
--- a/tests/ClipCubicTest.cpp
+++ b/tests/ClipCubicTest.cpp
@@ -16,8 +16,7 @@
// with a device/clip that is larger.
static void test_giantClip() {
SkBitmap bm;
- bm.setConfig(SkBitmap::kARGB_8888_Config, 64919, 1);
- bm.allocPixels();
+ bm.allocN32Pixels(64919, 1);
SkCanvas canvas(bm);
canvas.clear(SK_ColorTRANSPARENT);