Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 7e8e62e88b2c684adb5573a782da5cd06c47d73a..4d1f0b932f571833cede9193e656624738051082 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -748,7 +748,8 @@ bool SkBitmap::extractSubset(SkBitmap* result, const SkIRect& subset) const { |
if (pixelRef != nullptr) { |
SkBitmap dst; |
dst.setInfo(SkImageInfo::Make(subset.width(), subset.height(), |
mtklein
2016/04/14 19:36:33
This is probably a good place to be using SkImageI
reed1
2016/04/14 19:59:17
+1
herb_g
2016/04/14 20:28:06
Done.
herb_g
2016/04/14 20:28:06
Done.
|
- this->colorType(), this->alphaType())); |
+ this->colorType(), this->alphaType(), |
+ this->profileType())); |
dst.setIsVolatile(this->isVolatile()); |
dst.setPixelRef(pixelRef)->unref(); |
SkDEBUGCODE(dst.validate()); |
@@ -763,7 +764,8 @@ 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()), |
+ dst.setInfo(SkImageInfo::Make(r.width(), r.height(), this->colorType(), |
mtklein
2016/04/14 19:36:33
Ditto.
herb_g
2016/04/14 20:28:06
Done.
|
+ this->alphaType(), this->profileType()), |
this->rowBytes()); |
dst.setIsVolatile(this->isVolatile()); |