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

Unified Diff: ui/gfx/canvas.cc

Issue 2787683002: cleanup: Cleanup the TileImageInt APIs (Closed)
Patch Set: Created 3 years, 9 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') | no next file » | 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 67ea0fb0169c570b0963bee5ce185a195ba67bba..0b064b5cbbbea48dcef0e8e50b211583dd65ef00 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -491,19 +491,7 @@ void Canvas::TileImageInt(const ImageSkia& image,
int dest_y,
int w,
int h,
- cc::PaintFlags* flags) {
- TileImageInt(image, src_x, src_y, 1.0f, 1.0f, dest_x, dest_y, w, h, flags);
-}
-
-void Canvas::TileImageInt(const ImageSkia& image,
- int src_x,
- int src_y,
- float tile_scale_x,
- float tile_scale_y,
- int dest_x,
- int dest_y,
- int w,
- int h,
+ float tile_scale,
cc::PaintFlags* flags) {
SkRect dest_rect = { SkIntToScalar(dest_x),
SkIntToScalar(dest_y),
@@ -516,7 +504,7 @@ void Canvas::TileImageInt(const ImageSkia& image,
if (!flags)
flags = &paint_flags;
- if (InitPaintFlagsForTiling(image, src_x, src_y, tile_scale_x, tile_scale_y,
+ if (InitPaintFlagsForTiling(image, src_x, src_y, tile_scale, tile_scale,
dest_x, dest_y, flags))
canvas_->drawRect(dest_rect, *flags);
}
« no previous file with comments | « ui/gfx/canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698