Index: src/core/SkBitmapProvider.cpp |
diff --git a/src/core/SkBitmapProvider.cpp b/src/core/SkBitmapProvider.cpp |
index d2c5013a10b530d3aad1558c1b4985ceec2e2d13..dd34fb04abce726e85ed873815c209040287d9aa 100644 |
--- a/src/core/SkBitmapProvider.cpp |
+++ b/src/core/SkBitmapProvider.cpp |
@@ -29,10 +29,6 @@ bool SkBitmapProvider::validForDrawing() const { |
if (nullptr == fBitmap.pixelRef()) { |
return false; // no pixels to read |
} |
- if (fBitmap.getTexture()) { |
- // we can handle texture (ugh) since lockPixels will perform a read-back |
- return true; |
- } |
if (kIndex_8_SkColorType == fBitmap.colorType()) { |
SkAutoLockPixels alp(fBitmap); // but we need to call it before getColorTable() is safe. |
if (!fBitmap.getColorTable()) { |