diff options
author | 2014-02-13 14:41:43 +0000 | |
---|---|---|
committer | 2014-02-13 14:41:43 +0000 | |
commit | deee496cd30070e52556dcb538c2e5eb39b66b81 (patch) | |
tree | 80f0326a191c966bc34057e4011bdb3233bc2a50 /tests/SurfaceTest.cpp | |
parent | b720ffd20829953c9595980422969520f5e33c76 (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/SurfaceTest.cpp')
-rw-r--r-- | tests/SurfaceTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 8075913dd7..aa457c7dcc 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -178,8 +178,7 @@ static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType sur const size_t testPointCount = 3; SkBitmap testBitmap; - testBitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); - testBitmap.allocPixels(); + testBitmap.allocN32Pixels(10, 10); testBitmap.eraseColor(0); SkRRect testRRect; |