Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1405)

Unified Diff: ui/views/painter.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/painter.h
diff --git a/ui/views/painter.h b/ui/views/painter.h
index dcdebb214328a436bb72afb14cf47a61a595ee74..3f53ae4fb1a8968dd552384d086920dd2c331389 100644
--- a/ui/views/painter.h
+++ b/ui/views/painter.h
@@ -14,7 +14,7 @@
class SkBitmap;
namespace gfx {
-class Canvas;
+class CanvasSkia;
class Insets;
class Rect;
class Size;
@@ -29,7 +29,7 @@ class VIEWS_EXPORT Painter {
public:
// A convenience method for painting a Painter in a particular region.
// This translates the canvas to x/y and paints the painter.
- static void PaintPainterAt(gfx::Canvas* canvas,
+ static void PaintPainterAt(gfx::CanvasSkia* canvas,
Painter* painter,
const gfx::Rect& rect);
@@ -50,7 +50,7 @@ class VIEWS_EXPORT Painter {
virtual ~Painter() {}
// Paints the painter in the specified region.
- virtual void Paint(gfx::Canvas* canvas, const gfx::Size& size) = 0;
+ virtual void Paint(gfx::CanvasSkia* canvas, const gfx::Size& size) = 0;
};
// HorizontalPainter paints 3 images into a box: left, center and right. The
@@ -66,7 +66,7 @@ class VIEWS_EXPORT HorizontalPainter : public Painter {
virtual ~HorizontalPainter() {}
// Paints the images.
- virtual void Paint(gfx::Canvas* canvas, const gfx::Size& size) OVERRIDE;
+ virtual void Paint(gfx::CanvasSkia* canvas, const gfx::Size& size) OVERRIDE;
// Height of the images.
int height() const { return height_; }

Powered by Google App Engine
This is Rietveld 408576698