summaryrefslogtreecommitdiffstats
path: root/ui/views/painter.cc
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 05:43:31 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 05:43:31 +0000
commitf2705ac0994dd4eb07ce08c1d70b94a20eae016c (patch)
treefde36dc250d3590ad1e9f8347339ca811742c485 /ui/views/painter.cc
parent398e5d1ce15fb26fc8172ba9963b86d9fd6765d5 (diff)
downloadchromium_src-f2705ac0994dd4eb07ce08c1d70b94a20eae016c.zip
chromium_src-f2705ac0994dd4eb07ce08c1d70b94a20eae016c.tar.gz
chromium_src-f2705ac0994dd4eb07ce08c1d70b94a20eae016c.tar.bz2
Speculative Revert 120885 - 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 TBR=tfarina@chromium.org Review URL: https://chromiumcodereview.appspot.com/9358015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120943 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/painter.cc')
-rw-r--r--ui/views/painter.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/views/painter.cc b/ui/views/painter.cc
index 3e6415d..ef5cfbf 100644
--- a/ui/views/painter.cc
+++ b/ui/views/painter.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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,7 +12,6 @@
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/insets.h"
#include "ui/gfx/point.h"
-#include "ui/gfx/rect.h"
namespace views {
@@ -190,8 +189,11 @@ 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->TileImage(*images_[CENTER], gfx::Rect(images_[LEFT]->width(),
- 0, w - images_[LEFT]->width() - images_[RIGHT]->width(), height_));
+ canvas->TileImageInt(*images_[CENTER],
+ images_[LEFT]->width(),
+ 0,
+ w - images_[LEFT]->width() - images_[RIGHT]->width(),
+ height_);
}
} // namespace views