| Index: src/core/SkBitmap.cpp
|
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
|
| index f9da29bc275b8219c4de0cf4c6bdf3b2918416de..3bb763b4f43cf65f7117dbcdb79cbe8f444b79bb 100644
|
| --- a/src/core/SkBitmap.cpp
|
| +++ b/src/core/SkBitmap.cpp
|
| @@ -747,9 +747,7 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const {
|
| SkPixelRef* pixelRef = fPixelRef->deepCopy(this->colorType(), this->profileType(), &subset);
|
| if (pixelRef != nullptr) {
|
| SkBitmap dst;
|
| - dst.setInfo(SkImageInfo::Make(subset.width(), subset.height(),
|
| - this->colorType(), this->alphaType(),
|
| - this->profileType()));
|
| + dst.setInfo(this->info().makeWH(subset.width(), subset.height()));
|
| dst.setIsVolatile(this->isVolatile());
|
| dst.setPixelRef(pixelRef)->unref();
|
| SkDEBUGCODE(dst.validate());
|
| @@ -764,9 +762,7 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const {
|
| SkASSERT(static_cast<unsigned>(r.fTop) < static_cast<unsigned>(this->height()));
|
|
|
| SkBitmap dst;
|
| - dst.setInfo(SkImageInfo::Make(r.width(), r.height(),
|
| - this->colorType(), this->alphaType(), this->profileType()),
|
| - this->rowBytes());
|
| + dst.setInfo(this->info().makeWH(r.width(), r.height()), this->rowBytes());
|
| dst.setIsVolatile(this->isVolatile());
|
|
|
| if (fPixelRef) {
|
|
|