Chromium Code Reviews| Index: src/core/SkPicture.cpp |
| diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
| index 921fbdf532a3e9340e12c30f3404dd374e0b58cb..d110e295b11e3ecd3587d0490ea8ce63c08aa045 100644 |
| --- a/src/core/SkPicture.cpp |
| +++ b/src/core/SkPicture.cpp |
| @@ -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); |
| } |