aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r--include/core/SkDevice.h13
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.