summaryrefslogtreecommitdiffstats
path: root/ui/gfx/canvas_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/canvas_linux.cc')
-rw-r--r--ui/gfx/canvas_linux.cc18
1 files changed, 10 insertions, 8 deletions
diff --git a/ui/gfx/canvas_linux.cc b/ui/gfx/canvas_linux.cc
index a47cb51..18ce2a4 100644
--- a/ui/gfx/canvas_linux.cc
+++ b/ui/gfx/canvas_linux.cc
@@ -244,16 +244,18 @@ void Canvas::DrawStringWithHalo(const string16& text,
context.DrawWithHalo(text_color, halo_color);
}
-void Canvas::DrawStringInt(const string16& text,
- const gfx::Font& font,
- SkColor color,
- int x, int y, int w, int h,
- int flags) {
- if (!IntersectsClipRectInt(x, y, w, h))
+void Canvas::DrawStringWithShadows(const string16& text,
+ const gfx::Font& font,
+ SkColor color,
+ const gfx::Rect& text_bounds,
+ int flags,
+ const std::vector<ShadowValue>& shadows) {
+ DLOG_IF(WARNING, !shadows.empty()) << "Text shadow not implemented.";
+
+ if (!IntersectsClipRect(text_bounds))
return;
- gfx::Rect bounds(x, y, w, h);
- DrawStringContext context(this, text, font, bounds, bounds, flags);
+ DrawStringContext context(this, text, font, text_bounds, text_bounds, flags);
context.Draw(color);
}