diff options
author | reed <reed@google.com> | 2016-07-25 08:29:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-25 08:29:10 -0700 |
commit | c7ec7c9cabf5c8ad08beb617b99831ece25dacdd (patch) | |
tree | 9d0d580fb719668b39c652d5db1f44045b56b0d3 /src/core/SkBitmapProvider.cpp | |
parent | 2adecda92b2f2ac49d78326a3c76442a0f1c4139 (diff) |
remove/deprecate SkBitmap::getTexture, as it now always returns false
oh happy day
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2175873002
Review-Url: https://codereview.chromium.org/2175873002
Diffstat (limited to 'src/core/SkBitmapProvider.cpp')
-rw-r--r-- | src/core/SkBitmapProvider.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkBitmapProvider.cpp b/src/core/SkBitmapProvider.cpp index d2c5013a10..dd34fb04ab 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()) { |