Documentation only: add warning to SkCanvas::writePixels() that this operation
authorepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Jul 2011 15:47:33 +0000 (15:47 +0000)
committerepoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Jul 2011 15:47:33 +0000 (15:47 +0000)
will not be recorded by SkPicture.
Review URL: http://codereview.appspot.com/4815054

git-svn-id: http://skia.googlecode.com/svn/trunk@1947 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkCanvas.h

index 93c03ab..f7636e6 100644 (file)
@@ -118,6 +118,9 @@ public:
      *  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.
+     *
+     *  Note: If you are recording drawing commands on this canvas to
+     *  SkPicture, writePixels() is ignored!
      */
     void writePixels(const SkBitmap& bitmap, int x, int y);
 
@@ -897,4 +900,3 @@ private:
 };
 
 #endif
-