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

Unified Diff: ash/shell/app_list.cc

Issue 10701063: Cleanup gfx::Canvas now that 10562027 has landed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/chromeos/status/network_menu_icon.cc » ('j') | ui/compositor/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/app_list.cc
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc
index 6d636d9ae279e7d02f83cbfbcf883bbd2f713ada..92d4d73af58f66a104c65c231c235ae20d09ddc1 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 */);
sky 2012/07/16 14:26:51 How come we don't want this at the current scale?
pkotwicz 2012/07/17 17:19:52 This is part of the ash shell demo code, so I don'
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) {
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu_icon.cc » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698