fix SK_LEGACY_ENCODE_BITMAP missing cast
authorreed <reed@google.com>
Fri, 19 Dec 2014 20:43:47 +0000 (12:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Dec 2014 20:43:47 +0000 (12:43 -0800)
BUG=skia:
TBR=
NOTRY=True
NOTREECHECKS=True

Review URL: https://codereview.chromium.org/815223002

src/core/SkPicture.cpp

index 921fbdf532a3e9340e12c30f3404dd374e0b58cb..d110e295b11e3ecd3587d0490ea8ce63c08aa045 100644 (file)
@@ -472,7 +472,7 @@ public:
         // Required by signature of EncodeBitmap.
         size_t unused;
         SkBitmap bm;
-        bm.installPixels(info, pixels, rowBytes);
+        bm.installPixels(info, const_cast<void*>(pixels), rowBytes);
         return fEncoder(&unused, bm);
     }