diff options
author | 2016-07-20 12:28:40 -0700 | |
---|---|---|
committer | 2016-07-20 12:28:40 -0700 | |
commit | cf5c846b4176da82bccb5d5b45788bf0d45a8dd8 (patch) | |
tree | a3f11711fc3f647d804dd6f064cda58f1818f07a /src/pdf | |
parent | e499adf328bd7fc15a755325749f54c2b7e71f54 (diff) |
remove dead methods now that we use specials exclusively for imagefilters
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2164763003
Review-Url: https://codereview.chromium.org/2164763003
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 8501a03d98..bcbff3285c 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1345,17 +1345,15 @@ void SkPDFDevice::drawVertices(const SkDraw& d, SkCanvas::VertexMode, void SkPDFDevice::drawDevice(const SkDraw& d, SkBaseDevice* device, int x, int y, const SkPaint& paint) { + SkASSERT(!paint.getImageFilter()); + // Check if the source device is really a bitmapdevice (because that's what we returned // from createDevice (likely due to an imagefilter) SkPixmap pmap; if (device->peekPixels(&pmap)) { SkBitmap bitmap; bitmap.installPixels(pmap); - if (paint.getImageFilter()) { - this->drawSpriteWithFilter(d, bitmap, x, y, paint); - } else { - this->drawSprite(d, bitmap, x, y, paint); - } + this->drawSprite(d, bitmap, x, y, paint); return; } |