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

Unified Diff: ui/views/controls/table/test_table_model.cc

Issue 361643002: setConfig is deprecated, use setInfo or allocPixels instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't call allocPixels+rowbytes yet (skia bug) 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 | « ui/views/controls/button/label_button_unittest.cc ('k') | ui/views/examples/table_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/table/test_table_model.cc
diff --git a/ui/views/controls/table/test_table_model.cc b/ui/views/controls/table/test_table_model.cc
index 6cac56cff3d0ac95ce6be1bea88b9ee1ed37dbbd..fde158ea7076d078074166b8f8083b7280d1de3f 100644
--- a/ui/views/controls/table/test_table_model.cc
+++ b/ui/views/controls/table/test_table_model.cc
@@ -29,7 +29,7 @@ base::string16 TestTableModel::GetText(int row, int column_id) {
gfx::ImageSkia TestTableModel::GetIcon(int row) {
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
+ bitmap.setInfo(SkImageInfo::MakeN32Premul(16, 16));
return gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
}
« no previous file with comments | « ui/views/controls/button/label_button_unittest.cc ('k') | ui/views/examples/table_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698