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

Unified Diff: skia/ext/pixel_ref_utils_unittest.cc

Issue 363933002: setConfig is deprecated, use setInfo or allocPixels instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_win.cc ('k') | skia/ext/skia_utils_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/pixel_ref_utils_unittest.cc
diff --git a/skia/ext/pixel_ref_utils_unittest.cc b/skia/ext/pixel_ref_utils_unittest.cc
index 1a0ff96ee0644e88b1a91f1da48b67538d7e7496..bddbe657934d7f5e5a5f6c01193ef148594d72eb 100644
--- a/skia/ext/pixel_ref_utils_unittest.cc
+++ b/skia/ext/pixel_ref_utils_unittest.cc
@@ -63,11 +63,7 @@ class TestDiscardableShader : public SkShader {
};
void CreateBitmap(gfx::Size size, const char* uri, SkBitmap* bitmap) {
- const SkImageInfo info = {
- size.width(), size.height(), kPMColor_SkColorType, kPremul_SkAlphaType
- };
-
- bitmap->allocPixels(info);
+ bitmap->allocN32Pixels(size.width(), size.height());
bitmap->pixelRef()->setImmutable();
bitmap->pixelRef()->setURI(uri);
}
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/skia_utils_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698