diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 16:51:16 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 16:51:16 +0000 |
commit | de13f35d1ffedf90f791fa5bb127697094771c2c (patch) | |
tree | fac7173e5bcc6d5f8988043d657f012d45c68e81 /ash | |
parent | e3301c30d83b7b9c895fba14d1f78491906c86b7 (diff) | |
download | chromium_src-de13f35d1ffedf90f791fa5bb127697094771c2c.zip chromium_src-de13f35d1ffedf90f791fa5bb127697094771c2c.tar.gz chromium_src-de13f35d1ffedf90f791fa5bb127697094771c2c.tar.bz2 |
Cleanup gfx::Canvas now that 10562027 has landed
Bug=None
Test=Compiles on Mac and CrOS
R=oshima,sky
TBR=sadrul,sail
Review URL: https://chromiumcodereview.appspot.com/10701063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/shell/app_list.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 6d636d9..bf2e8b4 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -203,7 +203,8 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { const string16 icon_text = ASCIIToUTF16("ash"); const gfx::Size icon_size(32, 32); - gfx::Canvas canvas(icon_size, false /* is_opaque */); + gfx::Canvas canvas(icon_size, ui::SCALE_FACTOR_100P, + false /* is_opaque */); canvas.DrawStringInt(icon_text, gfx::Font(), SK_ColorBLACK, @@ -212,7 +213,7 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { gfx::Canvas::TEXT_VALIGN_MIDDLE | gfx::Canvas::NO_SUBPIXEL_RENDERING); - return gfx::ImageSkia(canvas.ExtractImageSkiaRep()); + return gfx::ImageSkia(canvas.ExtractImageRep()); } void DecorateSearchBox(app_list::SearchBoxModel* search_box_model) { |