diff options
Diffstat (limited to 'ui/base/native_theme/native_theme_base.cc')
-rw-r--r-- | ui/base/native_theme/native_theme_base.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/base/native_theme/native_theme_base.cc b/ui/base/native_theme/native_theme_base.cc index 7a446fa..c2b9f5d 100644 --- a/ui/base/native_theme/native_theme_base.cc +++ b/ui/base/native_theme/native_theme_base.cc @@ -461,7 +461,7 @@ void NativeThemeBase::PaintCheckbox(SkCanvas* canvas, } gfx::Rect bounds = rect.Center(gfx::Size(image->width(), image->height())); - DrawBitmapInt(canvas, *image, 0, 0, image->width(), image->height(), + DrawImageInt(canvas, *image, 0, 0, image->width(), image->height(), bounds.x(), bounds.y(), bounds.width(), bounds.height()); } @@ -482,7 +482,7 @@ void NativeThemeBase::PaintRadio(SkCanvas* canvas, } gfx::Rect bounds = rect.Center(gfx::Size(image->width(), image->height())); - DrawBitmapInt(canvas, *image, 0, 0, image->width(), image->height(), + DrawImageInt(canvas, *image, 0, 0, image->width(), image->height(), bounds.x(), bounds.y(), bounds.width(), bounds.height()); } @@ -796,16 +796,16 @@ void NativeThemeBase::PaintProgressBar(SkCanvas* canvas, int dest_left_border_width = static_cast<int>(left_border_image->width() * tile_scale); - DrawBitmapInt(canvas, *left_border_image, 0, 0, left_border_image->width(), + DrawImageInt(canvas, *left_border_image, 0, 0, left_border_image->width(), left_border_image->height(), rect.x(), rect.y(), dest_left_border_width, rect.height()); int dest_right_border_width = static_cast<int>(right_border_image->width() * tile_scale); int dest_x = rect.right() - dest_right_border_width; - DrawBitmapInt(canvas, *right_border_image, 0, 0, right_border_image->width(), - right_border_image->height(), dest_x, rect.y(), - dest_right_border_width, rect.height()); + DrawImageInt(canvas, *right_border_image, 0, 0, right_border_image->width(), + right_border_image->height(), dest_x, rect.y(), + dest_right_border_width, rect.height()); } bool NativeThemeBase::IntersectsClipRectInt(SkCanvas* canvas, @@ -816,11 +816,11 @@ bool NativeThemeBase::IntersectsClipRectInt(SkCanvas* canvas, SkIntToScalar(y + h)); } -void NativeThemeBase::DrawBitmapInt( +void NativeThemeBase::DrawImageInt( SkCanvas* canvas, 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) const { - gfx::Canvas(canvas).DrawBitmapInt(image, src_x, src_y, src_w, src_h, + gfx::Canvas(canvas).DrawImageInt(image, src_x, src_y, src_w, src_h, dest_x, dest_y, dest_w, dest_h, true); } |