From d55b59574854055fae275a5300a352d61978c8a6 Mon Sep 17 00:00:00 2001 From: reed Date: Fri, 19 Dec 2014 12:43:47 -0800 Subject: [PATCH] fix SK_LEGACY_ENCODE_BITMAP missing cast BUG=skia: TBR= NOTRY=True NOTREECHECKS=True Review URL: https://codereview.chromium.org/815223002 --- src/core/SkPicture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp index 921fbdf532..d110e295b1 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(pixels), rowBytes); return fEncoder(&unused, bm); }