diff options
author | 2011-11-10 20:57:43 +0000 | |
---|---|---|
committer | 2011-11-10 20:57:43 +0000 | |
commit | d58a1cd00b969a7755c375f55cf80f4d49d3047b (patch) | |
tree | 509af66cdbd986e07f24faa2ae090fc3a037d289 /include/core/SkDevice.h | |
parent | 14debba629a422c950a892373cceea0f4916f104 (diff) |
Add config8888 support to writePixels
Review URL: http://codereview.appspot.com/5374052/
git-svn-id: http://skia.googlecode.com/svn/trunk@2662 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r-- | include/core/SkDevice.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 6fe1c19340..215ceeef4a 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -107,13 +107,22 @@ public: const SkBitmap& accessBitmap(bool changePixels); /** - * DEPRECATED: This will be made protected once WebKit stops using it. + * DEPRECATED: This will be made protected once WebKit stops using it.
* Instead use Canvas' writePixels method. + * * Similar to draw sprite, this method will copy the pixels in bitmap onto * the device, with the top/left corner specified by (x, y). The pixel * values in the device are completely replaced: there is no blending. + * + * Currently if bitmap is backed by a texture this is a no-op. This may be + * relaxed in the future. + * + * If the bitmap has config kARGB_8888_Config then the config8888 param + * will determines how the pixel valuess are intepreted. If the bitmap is + * not kARGB_8888_Config then this parameter is ignored. */ - virtual void writePixels(const SkBitmap& bitmap, int x, int y); + virtual void writePixels(const SkBitmap& bitmap, int x, int y, + SkCanvas::Config8888 config8888); /** * Return the device's associated gpu render target, or NULL. |