summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
authornoms@chromium.org <noms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 21:57:22 +0000
committernoms@chromium.org <noms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 21:57:22 +0000
commit2d69facd3e1d7f72b9c1e6731a88550fdcec372c (patch)
treea7026f5e2029820ebb0340c7e18535d0956aff81 /ui/gfx
parent982cedd4272743bce74fd3a7ea58c82924a8b7cb (diff)
downloadchromium_src-2d69facd3e1d7f72b9c1e6731a88550fdcec372c.zip
chromium_src-2d69facd3e1d7f72b9c1e6731a88550fdcec372c.tar.gz
chromium_src-2d69facd3e1d7f72b9c1e6731a88550fdcec372c.tar.bz2
New avatar button text should be rendered with a halo.
Screenshot: https://docs.google.com/file/d/0B1B1Up4p2NRMalRlY3JPSE1GQ2c/edit?usp=sharing This also fixed a minor bug in the Canvas drawing code which didn't restore the correct background after drawing the text with the halo around it. BUG=306881 Review URL: https://codereview.chromium.org/32323006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/canvas_skia.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/canvas_skia.cc b/ui/gfx/canvas_skia.cc
index c259232..d062ff1 100644
--- a/ui/gfx/canvas_skia.cc
+++ b/ui/gfx/canvas_skia.cc
@@ -334,7 +334,7 @@ void Canvas::DrawStringRectWithHalo(const base::string16& text,
// Create a temporary buffer filled with the halo color. It must leave room
// for the 1-pixel border around the text.
Size size(display_rect.width() + 2, display_rect.height() + 2);
- Canvas text_canvas(size, image_scale(), true);
+ Canvas text_canvas(size, image_scale(), false);
SkPaint bkgnd_paint;
bkgnd_paint.setColor(halo_color);
text_canvas.DrawRect(Rect(size), bkgnd_paint);