| Index: src/core/SkPixmap.cpp
|
| diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp
|
| index 718be88c57a826bdda276f8e214330b8484da6df..0098b1b2826fe6b07924e56ad0bd52d9d8c00502 100644
|
| --- a/src/core/SkPixmap.cpp
|
| +++ b/src/core/SkPixmap.cpp
|
| @@ -222,9 +222,7 @@ bool SkPixmap::scalePixels(const SkPixmap& dst, SkFilterQuality quality) const {
|
| }
|
|
|
| SkBitmap bitmap;
|
| - // we will only ready from this pixmap, but the bitmap setting takes void*, hence the cast
|
| - void* readOnlyAddr = const_cast<void*>(this->addr());
|
| - if (!bitmap.installPixels(this->info(), readOnlyAddr, this->rowBytes())) {
|
| + if (!bitmap.installPixels(*this)) {
|
| return false;
|
| }
|
| bitmap.setIsVolatile(true); // so we don't try to cache it
|
|
|