summaryrefslogtreecommitdiffstats
path: root/gfx/canvas_skia.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 23:52:00 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 23:52:00 +0000
commitb0f1a563d2b0ff26b9a6ad81258e08b966c9149a (patch)
tree8a4fcddb3cbe92bc3ff11a23cc2fc6a8fb099186 /gfx/canvas_skia.h
parent24fc19f3cff67e621cf9962eb135cfed4de7e65c (diff)
downloadchromium_src-b0f1a563d2b0ff26b9a6ad81258e08b966c9149a.zip
chromium_src-b0f1a563d2b0ff26b9a6ad81258e08b966c9149a.tar.gz
chromium_src-b0f1a563d2b0ff26b9a6ad81258e08b966c9149a.tar.bz2
Revert 50784 - Canvas refactoring part 3.
- Replace Canvas instance users with CanvasSkia users. - Rename Canvas2 to Canvas. - Delete Canvas subclass of CanvasSkia. This has created some ugliness around the fact that people that used SkCanvas methods on Canvas now have to go through AsCanvasSkia first. This is temporary ugliness that will be eradicated as I incrementally build out the new Canvas API. BUG=none TEST=none Review URL: http://codereview.chromium.org/2825018 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/2811032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/canvas_skia.h')
-rw-r--r--gfx/canvas_skia.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gfx/canvas_skia.h b/gfx/canvas_skia.h
index cae4ac1..9a976fd 100644
--- a/gfx/canvas_skia.h
+++ b/gfx/canvas_skia.h
@@ -6,7 +6,7 @@
#define GFX_CANVAS_SKIA_H_
#include "base/basictypes.h"
-#include "gfx/canvas.h"
+#include "gfx/canvas_2.h"
#include "skia/ext/platform_canvas.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
@@ -33,7 +33,7 @@ class Canvas;
// the variant that does not take a SkXfermode::Mode uses a transfer mode
// of kSrcOver_Mode.
class CanvasSkia : public skia::PlatformCanvas,
- public Canvas {
+ public Canvas2 {
public:
// Creates an empty Canvas. Callers must use initialize before using the
// canvas.
@@ -76,9 +76,6 @@ class CanvasSkia : public skia::PlatformCanvas,
int x, int y, int w, int h, int flags);
#endif
- // Extracts a bitmap from the contents of this canvas.
- SkBitmap ExtractBitmap() const;
-
// Overridden from Canvas2:
virtual bool GetClipRect(gfx::Rect* clip_rect);
virtual bool ClipRectInt(int x, int y, int w, int h);
@@ -118,8 +115,7 @@ class CanvasSkia : public skia::PlatformCanvas,
virtual void TileImageInt(const SkBitmap& bitmap, int x, int y, int w, int h);
virtual void TileImageInt(const SkBitmap& bitmap, int src_x, int src_y,
int dest_x, int dest_y, int w, int h);
- virtual CanvasSkia* AsCanvasSkia();
- virtual const CanvasSkia* AsCanvasSkia() const;
+ virtual SkBitmap ExtractBitmap() const;
private:
#if defined(OS_WIN)