diff options
author | 2011-11-02 20:06:25 +0000 | |
---|---|---|
committer | 2011-11-02 20:06:25 +0000 | |
commit | 910267dde2d036b6298f62943f019bda3d662eb2 (patch) | |
tree | 21ed302747dfc92c792493002653ba19a9f61493 /include/core | |
parent | c69809745e6496564639e42ef998ad39adf7dfb8 (diff) |
Make SkDevice::onReadPixels take a const& rather than const*
git-svn-id: http://skia.googlecode.com/svn/trunk@2587 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkDevice.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 5d184e478f..4dadfc43cb 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -275,9 +275,8 @@ protected: * 2. bitmap has pixels. * 3. The rectangle (x, y, x + bitmap->width(), y + bitmap->height()) is * contained in the device bounds. - * 4. the bitmap struct is safe to partially overwrite in case of failure */ - virtual bool onReadPixels(const SkBitmap* bitmap, int x, int y); + virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y); /** Called when this device is installed into a Canvas. Balanaced by a call |