diff options
author | qiankun.miao <qiankun.miao@intel.com> | 2015-01-07 21:22:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-08 05:24:19 +0000 |
commit | f6d2626ffc9adeaa2e0d88748dc48a16afedd095 (patch) | |
tree | 62ccd022ffded840b9a2247864d57e5a6f1fb04a /ui | |
parent | 09af4d6443f86f03e07ddb1bed3cd473baa7e0d6 (diff) | |
download | chromium_src-f6d2626ffc9adeaa2e0d88748dc48a16afedd095.zip chromium_src-f6d2626ffc9adeaa2e0d88748dc48a16afedd095.tar.gz chromium_src-f6d2626ffc9adeaa2e0d88748dc48a16afedd095.tar.bz2 |
Draw center first in NineImagePainter
Draw center first in NineImagePainter to match the documentation. This is
regression caused in r308440.
BUG=None
Review URL: https://codereview.chromium.org/833313002
Cr-Commit-Position: refs/heads/master@{#310456}
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/nine_image_painter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/nine_image_painter.cc b/ui/gfx/nine_image_painter.cc index 428b5f9..fe86c2d 100644 --- a/ui/gfx/nine_image_painter.cc +++ b/ui/gfx/nine_image_painter.cc @@ -152,6 +152,8 @@ void NineImagePainter::Paint(Canvas* canvas, SkPaint paint; paint.setAlpha(alpha); + Fill(canvas, images_[4], i4x, i4y, i4w, i4h, paint); + canvas->DrawImageIntInPixel(images_[0], 0, 0, i0w, i0h, 0, 0, i0w, i0h, false, paint); @@ -161,8 +163,6 @@ void NineImagePainter::Paint(Canvas* canvas, Fill(canvas, images_[3], 0, i0h, i3w, height_in_pixels - i0h - i6h, paint); - Fill(canvas, images_[4], i4x, i4y, i4w, i4h, paint); - Fill(canvas, images_[5], width_in_pixels - i5w, i2h, i5w, height_in_pixels - i2h - i8h, paint); |