Index: gfx/canvas_skia_linux.cc |
=================================================================== |
--- gfx/canvas_skia_linux.cc (revision 71168) |
+++ gfx/canvas_skia_linux.cc (working copy) |
@@ -162,7 +162,7 @@ |
class DrawStringContext { |
public: |
DrawStringContext(gfx::CanvasSkia* canvas, |
- const string16& text, |
+ const std::wstring& text, |
const gfx::Font& font, |
const gfx::Rect& bounds, |
const gfx::Rect& clip, |
@@ -191,7 +191,7 @@ |
}; |
DrawStringContext::DrawStringContext(gfx::CanvasSkia* canvas, |
- const string16& text, |
+ const std::wstring& text, |
const gfx::Font& font, |
const gfx::Rect& bounds, |
const gfx::Rect& clip, |
@@ -211,7 +211,8 @@ |
cr_ = canvas_->beginPlatformPaint(); |
layout_ = pango_cairo_create_layout(cr_); |
- SetupPangoLayout(layout_, text, font, bounds_.width(), flags_); |
+ SetupPangoLayout(layout_, WideToUTF16Hack(text), font, bounds_.width(), |
+ flags_); |
pango_layout_set_height(layout_, bounds_.height() * PANGO_SCALE); |
@@ -345,7 +346,7 @@ |
cairo_surface_destroy(surface); |
} |
-void CanvasSkia::DrawStringWithHalo(const string16& text, |
+void CanvasSkia::DrawStringWithHalo(const std::wstring& text, |
const gfx::Font& font, |
const SkColor& text_color, |
const SkColor& halo_color, |
@@ -360,7 +361,7 @@ |
context.DrawWithHalo(text_color, halo_color); |
} |
-void CanvasSkia::DrawStringInt(const string16& text, |
+void CanvasSkia::DrawStringInt(const std::wstring& text, |
const gfx::Font& font, |
const SkColor& color, |
int x, int y, int w, int h, |