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

Unified Diff: skia/ext/pixel_ref_utils.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/image_operations_unittest.cc ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/pixel_ref_utils.cc
diff --git a/skia/ext/pixel_ref_utils.cc b/skia/ext/pixel_ref_utils.cc
index 4ff75393646205984d5e169a9aa6b44297c285c7..85a4e4896abc6ad499a8448b2664653f3c7dbca8 100644
--- a/skia/ext/pixel_ref_utils.cc
+++ b/skia/ext/pixel_ref_utils.cc
@@ -361,8 +361,7 @@ void PixelRefUtils::GatherDiscardablePixelRefs(
DiscardablePixelRefSet pixel_ref_set(pixel_refs);
SkBitmap empty_bitmap;
- empty_bitmap.setConfig(
- SkBitmap::kNo_Config, picture->width(), picture->height());
+ empty_bitmap.setInfo(SkImageInfo::MakeUnknown(picture->width(), picture->height()));
GatherPixelRefDevice device(empty_bitmap, &pixel_ref_set);
SkNoSaveLayerCanvas canvas(&device);
« no previous file with comments | « skia/ext/image_operations_unittest.cc ('k') | skia/ext/skia_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698