diff options
author | 2011-06-27 14:42:15 +0000 | |
---|---|---|
committer | 2011-06-27 14:42:15 +0000 | |
commit | 5667afc5cb4a8cd15a27667f222b6d9c94d61c38 (patch) | |
tree | 2e1fc9cce83746cc0853e7aba7b936d2fac943ec /include | |
parent | 0f1c95cd67a056cff9c9cd31fa51d9de9392142e (diff) |
remove drawShape from canvas api
git-svn-id: http://skia.googlecode.com/svn/trunk@1723 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 7 | ||||
-rw-r--r-- | include/pdf/SkPDFDevice.h | 6 | ||||
-rw-r--r-- | include/utils/SkDumpCanvas.h | 2 | ||||
-rw-r--r-- | include/utils/SkNWayCanvas.h | 1 | ||||
-rw-r--r-- | include/utils/SkProxyCanvas.h | 1 |
5 files changed, 7 insertions, 10 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 9b96790f3e..a7f01c4b3d 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -34,7 +34,6 @@ class SkDeviceFactory; class SkDraw; class SkDrawFilter; class SkPicture; -class SkShape; /** \class SkCanvas @@ -63,7 +62,7 @@ public: */ explicit SkCanvas(SkDeviceFactory* factory = NULL); - /** Construct a canvas with the specified device to draw into. The device
+ /** Construct a canvas with the specified device to draw into. The device factory will be retrieved from the passed device. @param device Specifies a device for the canvas to draw into. @@ -677,10 +676,6 @@ public: */ virtual void drawPicture(SkPicture& picture); - /** Draws the specified shape - */ - virtual void drawShape(SkShape*); - enum VertexMode { kTriangles_VertexMode, kTriangleStrip_VertexMode, diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index 2205f6cf58..afe0ffff80 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -137,9 +137,15 @@ public: /** Returns a SkStream with the page contents. The caller is responsible for a reference to the returned value. + DEPRECATED: use copyContentToData() */ SK_API SkStream* content() const; + /** Returns a SkStream with the page contents. The caller is responsible + * for calling data->unref() when it is finished. + */ + SK_API SkData* copyContentToData() const; + SK_API const SkMatrix& initialTransform() const { return fInitialTransform; } diff --git a/include/utils/SkDumpCanvas.h b/include/utils/SkDumpCanvas.h index 3731bef822..3d2805ced8 100644 --- a/include/utils/SkDumpCanvas.h +++ b/include/utils/SkDumpCanvas.h @@ -33,7 +33,6 @@ public: kDrawBitmap_Verb, kDrawText_Verb, kDrawPicture_Verb, - kDrawShape_Verb, kDrawVertices_Verb, kDrawData_Verb }; @@ -97,7 +96,6 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); virtual void drawPicture(SkPicture&); - virtual void drawShape(SkShape*); virtual void drawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, diff --git a/include/utils/SkNWayCanvas.h b/include/utils/SkNWayCanvas.h index 03bd6d10c6..21d1ba6ea4 100644 --- a/include/utils/SkNWayCanvas.h +++ b/include/utils/SkNWayCanvas.h @@ -57,7 +57,6 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); virtual void drawPicture(SkPicture&); - virtual void drawShape(SkShape*); virtual void drawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, diff --git a/include/utils/SkProxyCanvas.h b/include/utils/SkProxyCanvas.h index 8d8daec589..195b74d9e4 100644 --- a/include/utils/SkProxyCanvas.h +++ b/include/utils/SkProxyCanvas.h @@ -64,7 +64,6 @@ public: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint); virtual void drawPicture(SkPicture&); - virtual void drawShape(SkShape*); virtual void drawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, |