diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-29 23:40:02 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-29 23:40:02 +0000 |
commit | 6e9d0ce099bde00d35abc8a8deef0ad728efda7e (patch) | |
tree | 5e3423bd964bad498d275d79303fdf9fc12c3a39 /base/gfx/platform_canvas_mac.h | |
parent | 7be5131b5e012054c7a162a95f3b3cc0793c5e34 (diff) | |
download | chromium_src-6e9d0ce099bde00d35abc8a8deef0ad728efda7e.zip chromium_src-6e9d0ce099bde00d35abc8a8deef0ad728efda7e.tar.gz chromium_src-6e9d0ce099bde00d35abc8a8deef0ad728efda7e.tar.bz2 |
Sync Mac canvas implementation with Windows version, still a work in progress,
not all unit tests pass yet.
Review URL: http://codereview.chromium.org/4339
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/platform_canvas_mac.h')
-rwxr-xr-x | base/gfx/platform_canvas_mac.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/base/gfx/platform_canvas_mac.h b/base/gfx/platform_canvas_mac.h index 3cf2d5a..562b1a0 100755 --- a/base/gfx/platform_canvas_mac.h +++ b/base/gfx/platform_canvas_mac.h @@ -30,15 +30,6 @@ class PlatformCanvasMac : public SkCanvas { // For two-part init, call if you use the no-argument constructor above void initialize(int width, int height, bool is_opaque, CGContextRef context); - // Keep the platform clipping in sync with the skia clipping. Note that - // platform clipping may only clip to the bounds of the clipping region, if - // it is complex. - virtual bool clipRect(const SkRect& rect, - SkRegion::Op op = SkRegion::kIntersect_Op); - virtual bool clipPath(const SkPath& path, - SkRegion::Op op = SkRegion::kIntersect_Op); - virtual bool clipRegion(const SkRegion& deviceRgn, - SkRegion::Op op = SkRegion::kIntersect_Op); // These calls should surround calls to platform drawing routines. The CG // context returned by beginPlatformPaint is the one that can be used to @@ -48,14 +39,6 @@ class PlatformCanvasMac : public SkCanvas { virtual CGContextRef beginPlatformPaint(); virtual void endPlatformPaint(); - // overridden to keep the platform graphics context in sync with the canvas - virtual bool translate(SkScalar dx, SkScalar dy); - virtual bool scale(SkScalar sx, SkScalar sy); - virtual int saveLayer(const SkRect* bounds, const SkPaint* paint, - SaveFlags flags = kARGB_ClipLayer_SaveFlag); - virtual int save(SkCanvas::SaveFlags flags = SkCanvas::kMatrixClip_SaveFlag); - virtual void restore(); - // Returns the platform device pointer of the topmost rect with a non-empty // clip. In practice, this is usually either the top layer or nothing, since // we usually set the clip to new layers when we make them. @@ -80,7 +63,7 @@ class PlatformCanvasMac : public SkCanvas { // the device is always our own so we know that we can use GDI operations // on it. Simply calls into createPlatformDevice(). virtual SkDevice* createDevice(SkBitmap::Config, int width, int height, - bool is_opaque); + bool is_opaque, bool isForLayer); // Creates a device store for use by the canvas. By default, it creates a // BitmapPlatformDevice object. Can be overridden to change the object type. |