summaryrefslogtreecommitdiffstats
path: root/views/painter.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 07:37:29 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-15 07:37:29 +0000
commit82522511b7921e8c61742ebd80a4c674c56e7e48 (patch)
tree381d71de2b9c7b99675e6f2b4523ae0876c72ce8 /views/painter.cc
parent631cf822bd6e64cf469544b42c9975f5602c29a6 (diff)
downloadchromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.zip
chromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.tar.gz
chromium_src-82522511b7921e8c61742ebd80a4c674c56e7e48.tar.bz2
ChromeCanvas->gfx::Canvas
Rename files too. TBR=brettw http://crbug.com/11387 Review URL: http://codereview.chromium.org/113443 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/painter.cc')
-rw-r--r--views/painter.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/painter.cc b/views/painter.cc
index d44eef8..438c851 100644
--- a/views/painter.cc
+++ b/views/painter.cc
@@ -4,7 +4,7 @@
#include "views/painter.h"
-#include "app/gfx/chrome_canvas.h"
+#include "app/gfx/canvas.h"
#include "app/resource_bundle.h"
#include "base/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -25,7 +25,7 @@ class GradientPainter : public Painter {
virtual ~GradientPainter() {
}
- void Paint(int w, int h, ChromeCanvas* canvas) {
+ void Paint(int w, int h, gfx::Canvas* canvas) {
SkPaint paint;
SkPoint p[2];
p[0].set(SkIntToScalar(0), SkIntToScalar(0));
@@ -58,7 +58,7 @@ class GradientPainter : public Painter {
// static
void Painter::PaintPainterAt(int x, int y, int w, int h,
- ChromeCanvas* canvas, Painter* painter) {
+ gfx::Canvas* canvas, Painter* painter) {
DCHECK(canvas && painter);
if (w < 0 || h < 0)
return;
@@ -77,7 +77,7 @@ ImagePainter::ImagePainter(const int image_resource_names[],
images_.push_back(rb.GetBitmapNamed(image_resource_names[i]));
}
-void ImagePainter::Paint(int w, int h, ChromeCanvas* canvas) {
+void ImagePainter::Paint(int w, int h, gfx::Canvas* canvas) {
canvas->DrawBitmapInt(*images_[BORDER_TOP_LEFT], 0, 0);
canvas->TileImageInt(*images_[BORDER_TOP],
images_[BORDER_TOP_LEFT]->width(),
@@ -147,7 +147,7 @@ HorizontalPainter::HorizontalPainter(const int image_resource_names[]) {
images_[LEFT]->height() == images_[CENTER]->height());
}
-void HorizontalPainter::Paint(int w, int h, ChromeCanvas* canvas) {
+void HorizontalPainter::Paint(int w, int h, gfx::Canvas* canvas) {
if (w < (images_[LEFT]->width() + images_[CENTER]->width() +
images_[RIGHT]->width())) {
// No room to paint.