diff options
author | mtklein <mtklein@chromium.org> | 2014-06-27 12:34:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-27 12:34:44 -0700 |
commit | d3e474e20c6f0f24ddb6b2643e92975d60190daa (patch) | |
tree | f2e39eab8d338bc80f524904de5ab15bd4e0df5e /src/core/SkPicturePlayback.h | |
parent | 67ec1f8eecfb48bc0a6ba04c0057f103c1c9696f (diff) |
Deprecate SkPicture::clone().
Chrome will need -DSK_SUPPORT_LEGACY_PICTURE_CLONE.
This removes the modes from our tools that use clone(). No
bots run these. DM used clone() in a way that we can just
share the picture now.
I plan to bring back the ability to test multithreaded
picture rendering soon.
BUG=skia:2378
R=robertphillips@google.com, mtklein@google.com, bsalomon@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/338633011
Diffstat (limited to 'src/core/SkPicturePlayback.h')
-rw-r--r-- | src/core/SkPicturePlayback.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index 87380a6aaf..b929a735b4 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -119,6 +119,7 @@ private: int fNumAAHairlineConcavePaths; }; +#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE /** * Container for data that is needed to deep copy a SkPicture. The container * enables the data to be generated once and reused for subsequent copies. @@ -130,11 +131,16 @@ struct SkPictCopyInfo { SkChunkFlatController controller; SkTDArray<SkFlatData*> paintData; }; +#endif class SkPicturePlayback { public: +#ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE SkPicturePlayback(const SkPicturePlayback& src, SkPictCopyInfo* deepCopyInfo = NULL); +#else + SkPicturePlayback(const SkPicturePlayback& src); +#endif SkPicturePlayback(const SkPictureRecord& record, const SkPictInfo&, bool deepCopyOps); static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&, |