| 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);
|
|
|
|
|