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-06 23:32:47 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 23:32:47 +0000
commit553981ab338db3c606b13016f3fb236cf7d0924f (patch)
tree206f7c96ac6fd4ee74083b7b7d339c5eeee96ab2 /ui/gfx/canvas.cc
parentf16a1c323c36110e8b52caf8e1566c48167dd13a (diff)
downloadchromium_src-553981ab338db3c606b13016f3fb236cf7d0924f.zip
chromium_src-553981ab338db3c606b13016f3fb236cf7d0924f.tar.gz
chromium_src-553981ab338db3c606b13016f3fb236cf7d0924f.tar.bz2
Revert 140877 - Rename DrawBitmapInt to DrawImageInt
Bug=None Test=Compiles Review URL: https://chromiumcodereview.appspot.com/10512021 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10546037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140882 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 5dbb00e..f3419fc 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()) {
- DrawImageInt(bitmap, 0, 0);
+ DrawBitmapInt(bitmap, 0, 0);
}
Canvas::Canvas()
@@ -253,14 +253,14 @@ void Canvas::DrawFocusRect(const gfx::Rect& rect) {
DrawDashedRect(rect, SK_ColorGRAY);
}
-void Canvas::DrawImageInt(const gfx::ImageSkia& image, int x, int y) {
+void Canvas::DrawBitmapInt(const gfx::ImageSkia& image, int x, int y) {
SkPaint paint;
- DrawImageInt(image, x, y, paint);
+ DrawBitmapInt(image, x, y, paint);
}
-void Canvas::DrawImageInt(const gfx::ImageSkia& image,
- int x, int y,
- const SkPaint& paint) {
+void Canvas::DrawBitmapInt(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::DrawImageInt(const gfx::ImageSkia& image,
canvas_->restore();
}
-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) {
+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) {
SkPaint p;
- DrawImageInt(image, src_x, src_y, src_w, src_h, dest_x, dest_y,
- dest_w, dest_h, filter, p);
+ DrawBitmapInt(image, src_x, src_y, src_w, src_h, dest_x, dest_y,
+ dest_w, dest_h, filter, p);
}
-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) {
+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) {
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) {