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 fBBH; +#ifdef SK_SUPPORT_LEGACY_CANVAS_IS_REFCNT + sk_sp fRecorder; +#else std::unique_ptr fRecorder; +#endif sk_sp fRecord; SkMiniRecorder fMiniRecorder;