diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-05-02 16:49:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-02 21:17:01 +0000 |
commit | 343fe49b82d5b220d64c64f253bb362026006632 (patch) | |
tree | e20dbd15a38ee573b2b90f1e8d955d4a46c4a5ee /src/core/SkLiteDL.cpp | |
parent | 5e550ab57e0204bfadd2cb69c47d2a85e38d6a4c (diff) |
Remove translateZ and lights from SkCanvas
Bug: skia:6557
Change-Id: I0dbf70c4131ab59e7fc6c674a6587767af98e13a
Reviewed-on: https://skia-review.googlesource.com/15151
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkLiteDL.cpp')
-rw-r--r-- | src/core/SkLiteDL.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp index fb629ddc66..0162327d40 100644 --- a/src/core/SkLiteDL.cpp +++ b/src/core/SkLiteDL.cpp @@ -47,7 +47,7 @@ static const D* pod(const T* op, size_t offset = 0) { namespace { #define TYPES(M) \ M(SetDrawFilter) M(Save) M(Restore) M(SaveLayer) \ - M(Concat) M(SetMatrix) M(Translate) M(TranslateZ) \ + M(Concat) M(SetMatrix) M(Translate) \ 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) \ @@ -133,16 +133,6 @@ namespace { c->translate(dx, dy); } }; - struct TranslateZ final : Op { - static const auto kType = Type::TranslateZ; - TranslateZ(SkScalar dz) : dz(dz) {} - SkScalar dz; - void draw(SkCanvas* c, const SkMatrix&) const { - #ifdef SK_EXPERIMENTAL_SHADOWING - c->translateZ(dz); - #endif - } - }; struct ClipPath final : Op { static const auto kType = Type::ClipPath; @@ -538,7 +528,6 @@ void SkLiteDL::saveLayer(const SkRect* bounds, const SkPaint* paint, void SkLiteDL:: concat(const SkMatrix& matrix) { this->push <Concat>(0, matrix); } void SkLiteDL::setMatrix(const SkMatrix& matrix) { this->push<SetMatrix>(0, matrix); } void SkLiteDL::translate(SkScalar dx, SkScalar dy) { this->push<Translate>(0, dx, dy); } -void SkLiteDL::translateZ(SkScalar dz) { this->push<TranslateZ>(0, dz); } void SkLiteDL::clipPath(const SkPath& path, SkClipOp op, bool aa) { this->push<ClipPath>(0, path, op, aa); |