diff options
author | 2011-11-02 19:34:16 +0000 | |
---|---|---|
committer | 2011-11-02 19:34:16 +0000 | |
commit | 1a8ddf0a35bfb6c21a1184f81d2fdd50053acf31 (patch) | |
tree | 6c1148f08fe38ca8bcca95ae47472ed4f6910fc0 /include/gpu/SkGpuDevice.h | |
parent | c8e51782f89ba79497578c1f683b7eb471c34bc0 (diff) |
Changes the SkCanvas::readPixels API. Allows caller to read into prealloced bitmap pixels. Changes how clipping to device bounds is handled.
Review URL: http://codereview.appspot.com/5307077/
git-svn-id: http://skia.googlecode.com/svn/trunk@2584 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/SkGpuDevice.h')
-rw-r--r-- | include/gpu/SkGpuDevice.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index f5613a7fd8..047fd0740c 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -68,7 +68,6 @@ public: // overrides from SkDevice virtual void clear(SkColor color); - virtual bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap); virtual void writePixels(const SkBitmap& bitmap, int x, int y); virtual void setMatrixClip(const SkMatrix& matrix, const SkRegion& clip, @@ -140,6 +139,11 @@ protected: TexCache fTex; }; friend class SkAutoTexCache; + + // overrides from SkDevice + virtual bool onReadPixels(const SkBitmap* bitmap, + int x, int y) SK_OVERRIDE; + private: GrContext* fContext; |