| Index: src/core/SkBitmapDevice.cpp
|
| diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
|
| index 75eaa963b59e74910c2704133d0981805078fccf..3f3e5fd84e47b1d75434754fc9df5b2da834b9f7 100644
|
| --- a/src/core/SkBitmapDevice.cpp
|
| +++ b/src/core/SkBitmapDevice.cpp
|
| @@ -281,14 +281,8 @@ void SkBitmapDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
|
| // since we may need to clamp to the borders of the src rect within
|
| // the bitmap, we extract a subset.
|
| const SkIRect srcIR = tmpSrc.roundOut();
|
| - if(bitmap.pixelRef()->getTexture()) {
|
| - // Accelerated source canvas, don't use extractSubset but readPixels to get the subset.
|
| - // This way, the pixels are copied in CPU memory instead of GPU memory.
|
| - bitmap.pixelRef()->readPixels(&tmpBitmap, kN32_SkColorType, &srcIR);
|
| - } else {
|
| - if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
|
| - return;
|
| - }
|
| + if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
|
| + return;
|
| }
|
| bitmapPtr = &tmpBitmap;
|
|
|
|
|