fix SK_LEGACY_ENCODE_BITMAP missing cast

BUG=skia:
TBR=
NOTRY=True
NOTREECHECKS=True

Review URL: https://codereview.chromium.org/815223002
This commit is contained in:
reed 2014-12-19 12:43:47 -08:00 committed by Commit bot
parent 9ed7f57349
commit d55b595748

View 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);
}