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

Unified Diff: gfx/canvas_skia_linux.cc

Issue 6121004: Remove wstring from gfx. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « gfx/canvas_skia.cc ('k') | gfx/canvas_skia_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/canvas_skia_linux.cc
===================================================================
--- gfx/canvas_skia_linux.cc (revision 71043)
+++ gfx/canvas_skia_linux.cc (working copy)
@@ -162,7 +162,7 @@
class DrawStringContext {
public:
DrawStringContext(gfx::CanvasSkia* canvas,
- const std::wstring& text,
+ const string16& text,
const gfx::Font& font,
const gfx::Rect& bounds,
const gfx::Rect& clip,
@@ -191,7 +191,7 @@
};
DrawStringContext::DrawStringContext(gfx::CanvasSkia* canvas,
- const std::wstring& text,
+ const string16& text,
const gfx::Font& font,
const gfx::Rect& bounds,
const gfx::Rect& clip,
@@ -211,8 +211,7 @@
cr_ = canvas_->beginPlatformPaint();
layout_ = pango_cairo_create_layout(cr_);
- SetupPangoLayout(layout_, WideToUTF16Hack(text), font, bounds_.width(),
- flags_);
+ SetupPangoLayout(layout_, text, font, bounds_.width(), flags_);
pango_layout_set_height(layout_, bounds_.height() * PANGO_SCALE);
@@ -346,7 +345,7 @@
cairo_surface_destroy(surface);
}
-void CanvasSkia::DrawStringWithHalo(const std::wstring& text,
+void CanvasSkia::DrawStringWithHalo(const string16& text,
const gfx::Font& font,
const SkColor& text_color,
const SkColor& halo_color,
@@ -361,7 +360,7 @@
context.DrawWithHalo(text_color, halo_color);
}
-void CanvasSkia::DrawStringInt(const std::wstring& text,
+void CanvasSkia::DrawStringInt(const string16& text,
const gfx::Font& font,
const SkColor& color,
int x, int y, int w, int h,
« no previous file with comments | « gfx/canvas_skia.cc ('k') | gfx/canvas_skia_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698