Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: src/core/SkPicture.cpp

Issue 815223002: fix SK_LEGACY_ENCODE_BITMAP missing cast (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698