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

Unified Diff: ui/gfx/canvas.cc

Issue 141003013: Clean-up: Removes obsolete methods in gfx::Canvas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 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 | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index df967425b0b66ca3e5e58c77dc96b6b9751f8843..b78effa92ea6e76f475c4935826d6930aebb26a6 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -98,16 +98,6 @@ void Canvas::SizeStringInt(const base::string16& text,
}
// static
-void Canvas::SizeStringInt(const base::string16& text,
- const Font& font,
- int* width,
- int* height,
- int line_height,
- int flags) {
- SizeStringInt(text, FontList(font), width, height, line_height, flags);
-}
-
-// static
int Canvas::GetStringWidth(const base::string16& text,
const FontList& font_list) {
int width = 0, height = 0;
@@ -135,19 +125,6 @@ int Canvas::DefaultCanvasTextAlignment() {
return base::i18n::IsRTL() ? TEXT_ALIGN_RIGHT : TEXT_ALIGN_LEFT;
}
-void Canvas::DrawStringWithHalo(const base::string16& text,
- const Font& font,
- SkColor text_color,
- SkColor halo_color_in,
- int x,
- int y,
- int w,
- int h,
- int flags) {
- DrawStringRectWithHalo(text, FontList(font), text_color, halo_color_in,
- Rect(x, y, w, h), flags);
-}
-
ImageSkiaRep Canvas::ExtractImageRep() const {
const SkBitmap& device_bitmap = canvas_->getDevice()->accessBitmap(false);
@@ -501,47 +478,6 @@ void Canvas::DrawStringRectWithFlags(const base::string16& text,
ShadowValues());
}
-void Canvas::DrawStringInt(const base::string16& text,
- const Font& font,
- SkColor color,
- int x,
- int y,
- int w,
- int h) {
- DrawStringInt(text, font, color, x, y, w, h, DefaultCanvasTextAlignment());
-}
-
-void Canvas::DrawStringInt(const base::string16& text,
- const Font& font,
- SkColor color,
- const Rect& display_rect) {
- DrawStringInt(text, font, color, display_rect.x(), display_rect.y(),
- display_rect.width(), display_rect.height());
-}
-
-void Canvas::DrawStringInt(const base::string16& text,
- const Font& font,
- SkColor color,
- int x,
- int y,
- int w,
- int h,
- int flags) {
- DrawStringWithShadows(text, font, color, Rect(x, y, w, h), 0, flags,
- ShadowValues());
-}
-
-void Canvas::DrawStringWithShadows(const base::string16& text,
- const Font& font,
- SkColor color,
- const Rect& text_bounds,
- int line_height,
- int flags,
- const ShadowValues& shadows) {
- DrawStringRectWithShadows(text, FontList(font), color, text_bounds,
- line_height, flags, shadows);
-}
-
void Canvas::TileImageInt(const ImageSkia& image,
int x,
int y,
« no previous file with comments | « ui/gfx/canvas.h ('k') | ui/gfx/canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698