diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 01:01:36 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-08 01:01:36 +0000 |
commit | d36f141ad941e3602a90e7e6917d31a5ace804b3 (patch) | |
tree | 2809f2671b23d12b98df8bbb747c092c97afc763 /ui/views/painter.cc | |
parent | 5720225ccf919ba3fa7a01d6abbc559af50f746e (diff) | |
download | chromium_src-d36f141ad941e3602a90e7e6917d31a5ace804b3.zip chromium_src-d36f141ad941e3602a90e7e6917d31a5ace804b3.tar.gz chromium_src-d36f141ad941e3602a90e7e6917d31a5ace804b3.tar.bz2 |
ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect.
BUG=100898
R=pkasting@chromium.org
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9332006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/painter.cc')
-rw-r--r-- | ui/views/painter.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/views/painter.cc b/ui/views/painter.cc index ef5cfbf..3e6415d 100644 --- a/ui/views/painter.cc +++ b/ui/views/painter.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -12,6 +12,7 @@ #include "ui/gfx/canvas_skia.h" #include "ui/gfx/insets.h" #include "ui/gfx/point.h" +#include "ui/gfx/rect.h" namespace views { @@ -189,11 +190,8 @@ void HorizontalPainter::Paint(int w, int h, gfx::Canvas* canvas) { } canvas->DrawBitmapInt(*images_[LEFT], 0, 0); canvas->DrawBitmapInt(*images_[RIGHT], w - images_[RIGHT]->width(), 0); - canvas->TileImageInt(*images_[CENTER], - images_[LEFT]->width(), - 0, - w - images_[LEFT]->width() - images_[RIGHT]->width(), - height_); + canvas->TileImage(*images_[CENTER], gfx::Rect(images_[LEFT]->width(), + 0, w - images_[LEFT]->width() - images_[RIGHT]->width(), height_)); } } // namespace views |