summaryrefslogtreecommitdiffstats
path: root/gfx/canvas_skia.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/canvas_skia.h')
-rw-r--r--gfx/canvas_skia.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gfx/canvas_skia.h b/gfx/canvas_skia.h
index 27781ff..d309784 100644
--- a/gfx/canvas_skia.h
+++ b/gfx/canvas_skia.h
@@ -67,11 +67,13 @@ class CanvasSkia : public skia::PlatformCanvas,
void DrawGdkPixbuf(GdkPixbuf* pixbuf, int x, int y);
#endif
-#ifdef OS_WIN // Only implemented on Windows for now.
- // Draws text with a 1-pixel halo around it of the given color. It allows
- // ClearType to be drawn to an otherwise transparenct bitmap for drag images.
- // Drag images have only 1-bit of transparency, so we don't do any fancy
- // blurring.
+#if defined(OS_WIN) || (defined(OS_POSIX) && !defined(OS_MACOSX))
+ // Draws text with a 1-pixel halo around it of the given color.
+ // On Windows, it allows ClearType to be drawn to an otherwise transparenct
+ // bitmap for drag images. Drag images have only 1-bit of transparency, so
+ // we don't do any fancy blurring.
+ // On Linux, text with halo is created by stroking it with 2px |halo_color|
+ // then filling it with |text_color|.
void DrawStringWithHalo(const std::wstring& text,
const gfx::Font& font,
const SkColor& text_color,