summaryrefslogtreecommitdiffstats
path: root/ui/gfx/canvas.cc
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 13:29:20 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 13:29:20 +0000
commit243cac7d0d9961ec15cea368168b98b7a4522f8d (patch)
tree42fadb8cda77fc9c48d9b40439ac9aafc33d4550 /ui/gfx/canvas.cc
parent3e03036a6033332a4611b1d28a2f85b42f13a7c9 (diff)
downloadchromium_src-243cac7d0d9961ec15cea368168b98b7a4522f8d.zip
chromium_src-243cac7d0d9961ec15cea368168b98b7a4522f8d.tar.gz
chromium_src-243cac7d0d9961ec15cea368168b98b7a4522f8d.tar.bz2
Rename DrawBitmapInt to DrawImageInt
Bug=None Test=Compiles Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=140877 Review URL: https://chromiumcodereview.appspot.com/10512021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/canvas.cc')
-rw-r--r--ui/gfx/canvas.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index f3419fc..5dbb00e 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -38,7 +38,7 @@ Canvas::Canvas(const SkBitmap& bitmap, bool is_opaque)
: owned_canvas_(new skia::PlatformCanvas(bitmap.width(), bitmap.height(),
is_opaque)),
canvas_(owned_canvas_.get()) {
- DrawBitmapInt(bitmap, 0, 0);
+ DrawImageInt(bitmap, 0, 0);
}
Canvas::Canvas()
@@ -253,14 +253,14 @@ void Canvas::DrawFocusRect(const gfx::Rect& rect) {
DrawDashedRect(rect, SK_ColorGRAY);
}
-void Canvas::DrawBitmapInt(const gfx::ImageSkia& image, int x, int y) {
+void Canvas::DrawImageInt(const gfx::ImageSkia& image, int x, int y) {
SkPaint paint;
- DrawBitmapInt(image, x, y, paint);
+ DrawImageInt(image, x, y, paint);
}
-void Canvas::DrawBitmapInt(const gfx::ImageSkia& image,
- int x, int y,
- const SkPaint& paint) {
+void Canvas::DrawImageInt(const gfx::ImageSkia& image,
+ int x, int y,
+ const SkPaint& paint) {
float bitmap_scale;
const SkBitmap& bitmap = GetBitmapToPaint(image, &bitmap_scale);
if (bitmap.isNull())
@@ -276,20 +276,20 @@ void Canvas::DrawBitmapInt(const gfx::ImageSkia& image,
canvas_->restore();
}
-void Canvas::DrawBitmapInt(const gfx::ImageSkia& image,
- int src_x, int src_y, int src_w, int src_h,
- int dest_x, int dest_y, int dest_w, int dest_h,
- bool filter) {
+void Canvas::DrawImageInt(const gfx::ImageSkia& image,
+ int src_x, int src_y, int src_w, int src_h,
+ int dest_x, int dest_y, int dest_w, int dest_h,
+ bool filter) {
SkPaint p;
- DrawBitmapInt(image, src_x, src_y, src_w, src_h, dest_x, dest_y,
- dest_w, dest_h, filter, p);
+ DrawImageInt(image, src_x, src_y, src_w, src_h, dest_x, dest_y,
+ dest_w, dest_h, filter, p);
}
-void Canvas::DrawBitmapInt(const gfx::ImageSkia& image,
- int src_x, int src_y, int src_w, int src_h,
- int dest_x, int dest_y, int dest_w, int dest_h,
- bool filter,
- const SkPaint& paint) {
+void Canvas::DrawImageInt(const gfx::ImageSkia& image,
+ int src_x, int src_y, int src_w, int src_h,
+ int dest_x, int dest_y, int dest_w, int dest_h,
+ bool filter,
+ const SkPaint& paint) {
DLOG_ASSERT(src_x + src_w < std::numeric_limits<int16_t>::max() &&
src_y + src_h < std::numeric_limits<int16_t>::max());
if (src_w <= 0 || src_h <= 0) {