Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: skia/ext/convolver_unittest.cc

Issue 331283002: stop calling deprecated setConfig (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + android typo Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/bitmap_platform_device_skia.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/convolver_unittest.cc
diff --git a/skia/ext/convolver_unittest.cc b/skia/ext/convolver_unittest.cc
index a4405068d09f735f7846a5d722169ed561e701e6..e833b45a7139fd84c817a4789a84d17229082477 100644
--- a/skia/ext/convolver_unittest.cc
+++ b/skia/ext/convolver_unittest.cc
@@ -237,15 +237,9 @@ void VerifySIMD(unsigned int source_width,
// Allocate input and output skia bitmap.
SkBitmap source, result_c, result_sse;
- source.setConfig(SkBitmap::kARGB_8888_Config,
- source_width, source_height);
- source.allocPixels();
- result_c.setConfig(SkBitmap::kARGB_8888_Config,
- dest_width, dest_height);
- result_c.allocPixels();
- result_sse.setConfig(SkBitmap::kARGB_8888_Config,
- dest_width, dest_height);
- result_sse.allocPixels();
+ source.allocN32Pixels(source_width, source_height);
+ result_c.allocN32Pixels(dest_width, dest_height);
+ result_sse.allocN32Pixels(dest_width, dest_height);
// Randomize source bitmap for testing.
unsigned char* src_ptr = static_cast<unsigned char*>(source.getPixels());
« no previous file with comments | « skia/ext/bitmap_platform_device_skia.cc ('k') | skia/ext/image_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698