| Index: src/core/SkBitmap.cpp
|
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
|
| index 6615b1c52b3b46bfa0b2a969f5b15471d77bbb1f..f950e28cdccb2ca6b3a8a57ee9dc387621172f16 100644
|
| --- a/src/core/SkBitmap.cpp
|
| +++ b/src/core/SkBitmap.cpp
|
| @@ -331,30 +331,6 @@
|
| }
|
| fAlphaType = SkToU8(alphaType);
|
| return true;
|
| -}
|
| -
|
| -SkPixelRef* SkBitmap::installPixelRef(SkPixelRef* pr, const SkIRect* subset) {
|
| - if (NULL == pr) {
|
| - this->reset();
|
| - return NULL;
|
| - }
|
| -
|
| - const SkImageInfo& info = pr->info();
|
| -
|
| - fConfig = SkColorTypeToBitmapConfig(info.fColorType);
|
| - fAlphaType = info.fAlphaType;
|
| - fBytesPerPixel = info.bytesPerPixel();
|
| - // not known until we're locked
|
| - fRowBytes = 0;
|
| -
|
| - SkIRect bounds = { 0, 0, info.fWidth, info.fHeight };
|
| - if (subset && !bounds.intersect(*subset)) {
|
| - bounds.setEmpty();
|
| - }
|
| -
|
| - fWidth = bounds.width();
|
| - fHeight = bounds.height();
|
| - return this->setPixelRef(pr, bounds.left(), bounds.top());
|
| }
|
|
|
| void SkBitmap::updatePixelsFromRef() const {
|
|
|