aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecordDraw.cpp
diff options
context:
space:
mode:
authorGravatar vjiaoblack <vjiaoblack@google.com>2016-07-13 08:35:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 08:35:41 -0700
commit1185d90c785f743364cc9113d7007a59af07470c (patch)
tree56a87c2ecaa00b526aef1cb9f47589539ac469a4 /src/core/SkRecordDraw.cpp
parent0abddf7bb7f77b1ff6a48efc9d1eafd053d975d2 (diff)
Added the framework for having canvas/recorder/picture record depth_set's.
Diffstat (limited to 'src/core/SkRecordDraw.cpp')
-rw-r--r--src/core/SkRecordDraw.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index ec9aee9562..03f8d53d5e 100644
--- a/src/core/SkRecordDraw.cpp
+++ b/src/core/SkRecordDraw.cpp
@@ -87,6 +87,8 @@ DRAW(ClipRRect, clipRRect(r.rrect, r.opAA.op, r.opAA.aa));
DRAW(ClipRect, clipRect(r.rect, r.opAA.op, r.opAA.aa));
DRAW(ClipRegion, clipRegion(r.region, r.op));
+DRAW(TranslateZ, SkCanvas::translateZ(r.z));
+
DRAW(DrawBitmap, drawBitmap(r.bitmap.shallowCopy(), r.left, r.top, r.paint));
DRAW(DrawBitmapNine, drawBitmapNine(r.bitmap.shallowCopy(), r.center, r.dst, r.paint));
DRAW(DrawBitmapRect,
@@ -288,6 +290,8 @@ private:
void trackBounds(const ClipPath&) { this->pushControl(); }
void trackBounds(const ClipRegion&) { this->pushControl(); }
+ void trackBounds(const TranslateZ&) { this->pushControl(); }
+
// For all other ops, we can calculate and store the bounds directly now.
template <typename T> void trackBounds(const T& op) {
fBounds[fCurrentOp] = this->bounds(op);