diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-05-02 10:37:45 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-02 17:22:44 +0000 |
commit | 4c9155bd66d86de48069192f4b73bc292cfec135 (patch) | |
tree | f9f9d139f518d52dd8f0a4242ebf4a9a65885e05 /src/core/SkLiteDL.cpp | |
parent | c06f309cf52b885b1b1d98c6b045b120a09f5c54 (diff) |
Remove EXPERIMENTAL_SHADOWING, Part 1
Bug: skia:6557
Change-Id: I6482d74be7b360c93141a73dd80c67854530c7a1
Reviewed-on: https://skia-review.googlesource.com/15101
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkLiteDL.cpp')
-rw-r--r-- | src/core/SkLiteDL.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index 71cbf681eb..fb629ddc66 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp @@ -51,7 +51,6 @@ namespace { M(ClipPath) M(ClipRect) M(ClipRRect) M(ClipRegion) \ M(DrawPaint) M(DrawPath) M(DrawRect) M(DrawRegion) M(DrawOval) M(DrawArc) \ M(DrawRRect) M(DrawDRRect) M(DrawAnnotation) M(DrawDrawable) M(DrawPicture) \ - M(DrawShadowedPicture) \ M(DrawImage) M(DrawImageNine) M(DrawImageRect) M(DrawImageLattice) \ M(DrawText) M(DrawPosText) M(DrawPosTextH) \ M(DrawTextOnPath) M(DrawTextRSXform) M(DrawTextBlob) \ @@ -276,25 +275,6 @@ namespace { c->drawPicture(picture.get(), &matrix, has_paint ? &paint : nullptr); } }; - struct DrawShadowedPicture final : Op { - static const auto kType = Type::DrawShadowedPicture; - DrawShadowedPicture(const SkPicture* picture, const SkMatrix* matrix, - const SkPaint* paint, const SkShadowParams& params) - : picture(sk_ref_sp(picture)) { - if (matrix) { this->matrix = *matrix; } - if (paint) { this->paint = *paint; } - this->params = params; - } - sk_sp<const SkPicture> picture; - SkMatrix matrix = SkMatrix::I(); - SkPaint paint; - SkShadowParams params; - void draw(SkCanvas* c, const SkMatrix&) const { - #ifdef SK_EXPERIMENTAL_SHADOWING - c->drawShadowedPicture(picture.get(), &matrix, &paint, params); - #endif - } - }; struct DrawImage final : Op { static const auto kType = Type::DrawImage; @@ -611,11 +591,6 @@ void SkLiteDL::drawPicture(const SkPicture* picture, const SkMatrix* matrix, const SkPaint* paint) { this->push<DrawPicture>(0, picture, matrix, paint); } -void SkLiteDL::drawShadowedPicture(const SkPicture* picture, const SkMatrix* matrix, - const SkPaint* paint, const SkShadowParams& params) { - push<DrawShadowedPicture>(0, picture, matrix, paint, params); -} - void SkLiteDL::drawImage(sk_sp<const SkImage> image, SkScalar x, SkScalar y, const SkPaint* paint) { this->push<DrawImage>(0, std::move(image), x,y, paint); } |