diff options
author | Florin Malita <fmalita@chromium.org> | 2016-11-10 11:10:30 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-10 17:05:07 +0000 |
commit | e13a69baac9dc326510009fa7c0c5966aee9240c (patch) | |
tree | 2d50c5666d94ae35870a294e08238cce8e33d56f /src/core/SkBitmapController.cpp | |
parent | 152ad7e7fb518058ef1185249aab50dff09d6f5c (diff) |
Simplify SkBitmapProvider
We're no longer using SkBitmap sources for SkBitmapProvider, so we can
restrict it to SkImage only.
At this point we could also remove it, but I think it'll come in handy
when we add shader subset support.
BUG=skia:5806
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4655
Change-Id: I298da253cc8f7c1205b543521e62060a202a9f78
Reviewed-on: https://skia-review.googlesource.com/4655
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkBitmapController.cpp')
-rw-r--r-- | src/core/SkBitmapController.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp index 435940b84c..4fee11db28 100644 --- a/src/core/SkBitmapController.cpp +++ b/src/core/SkBitmapController.cpp @@ -21,10 +21,6 @@ SkBitmapController::State* SkBitmapController::requestBitmap(const SkBitmapProvi const SkMatrix& inv, SkFilterQuality quality, void* storage, size_t storageSize) { - if (!provider.validForDrawing()) { - return nullptr; - } - State* state = this->onRequestBitmap(provider, inv, quality, storage, storageSize); if (state) { if (nullptr == state->fPixmap.addr()) { |