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

Unified Diff: ui/views/examples/table_example.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/table/test_table_model.cc ('k') | ui/wm/core/image_grid_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/table_example.cc
diff --git a/ui/views/examples/table_example.cc b/ui/views/examples/table_example.cc
index 5c9eebfd2ed2a05ae7feaa656bda1b6051fbb444..abdfebbeebd1f869365dba0f7aaa84081ff8756d 100644
--- a/ui/views/examples/table_example.cc
+++ b/ui/views/examples/table_example.cc
@@ -71,13 +71,11 @@ void TableExample::CreateExampleView(View* container) {
table_ = new TableView(this, columns, ICON_AND_TEXT, true);
table_->SetGrouper(this);
table_->SetObserver(this);
- icon1_.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
- icon1_.allocPixels();
+ icon1_.allocN32Pixels(16, 16);
SkCanvas canvas1(icon1_);
canvas1.drawColor(SK_ColorRED);
- icon2_.setConfig(SkBitmap::kARGB_8888_Config, 16, 16);
- icon2_.allocPixels();
+ icon2_.allocN32Pixels(16, 16);
SkCanvas canvas2(icon2_);
canvas2.drawColor(SK_ColorBLUE);
« no previous file with comments | « ui/views/controls/table/test_table_model.cc ('k') | ui/wm/core/image_grid_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698