aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPictureRecorder.h
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-11-10 12:24:16 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-10 17:52:21 +0000
commit805eb6c7779eb855a26d0f1e821d58ce2bf5ffd2 (patch)
tree23b931ddc20eb9ab86bd0d79ace297c410ccf76e /include/core/SkPictureRecorder.h
parent970225b2ba73524e00cb020db5324167e9a83317 (diff)
Fix BUG=chromium:664036
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4659 Change-Id: Idac00fef9cac023649a50d9c70d107f988fd2510 Reviewed-on: https://skia-review.googlesource.com/4659 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'include/core/SkPictureRecorder.h')
-rw-r--r--include/core/SkPictureRecorder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h
index a440790a73..46a0093e26 100644
--- a/include/core/SkPictureRecorder.h
+++ b/include/core/SkPictureRecorder.h
@@ -115,7 +115,11 @@ private:
uint32_t fFlags;
SkRect fCullRect;
sk_sp<SkBBoxHierarchy> fBBH;
+#ifdef SK_SUPPORT_LEGACY_CANVAS_IS_REFCNT
+ sk_sp<SkRecorder> fRecorder;
+#else
std::unique_ptr<SkRecorder> fRecorder;
+#endif
sk_sp<SkRecord> fRecord;
SkMiniRecorder fMiniRecorder;