 Chromium Code Reviews
 Chromium Code Reviews Issue 162643002:
  replace setConfig+allocPixels with single call  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk
    
  
    Issue 162643002:
  replace setConfig+allocPixels with single call  (Closed) 
  Base URL: https://skia.googlecode.com/svn/trunk| Index: tests/FlatDataTest.cpp | 
| diff --git a/tests/FlatDataTest.cpp b/tests/FlatDataTest.cpp | 
| index 36fecf962504ed9ba64f512dc0d2e38a882142d1..4b56fc06a041d3c06eb9fc4125132972df6ee2e1 100644 | 
| --- a/tests/FlatDataTest.cpp | 
| +++ b/tests/FlatDataTest.cpp | 
| @@ -68,8 +68,7 @@ DEF_TEST(FlatData, reporter) { | 
| // Test SkBitmap | 
| { | 
| SkBitmap bm; | 
| - bm.setConfig(SkBitmap::kARGB_8888_Config, 50, 50); | 
| - bm.allocPixels(); | 
| + bm.allocN32Pixels(50, 50); | 
| SkCanvas canvas(bm); | 
| SkPaint paint; | 
| paint.setShader(shader); |