diff options
author | robertphillips <robertphillips@google.com> | 2014-06-03 10:04:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-03 10:04:47 -0700 |
commit | dcf9ab14a194be0cbea896e1dc44a2a04106a38b (patch) | |
tree | db433629b2484484f01ad6b9578a9da8defe4464 /include/core/SkPictureRecorder.h | |
parent | 66aa609a493b10d7c0a0101e2e16ba11e4c276a2 (diff) |
Remove legacy picture recording
This is unblocked now that Android no longer uses the old interface.
This is just the first step in cleaning this up. Future CLs will constify SkPicture access in SkCanvas and split up the SkPicture/SkPicturePlayback/SkPictureRecord trio.
R=bsalomon@google.com, reed@google.com, mtklein@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/313613002
Diffstat (limited to 'include/core/SkPictureRecorder.h')
-rw-r--r-- | include/core/SkPictureRecorder.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h index d619561dd2..b496aee28e 100644 --- a/include/core/SkPictureRecorder.h +++ b/include/core/SkPictureRecorder.h @@ -16,35 +16,6 @@ class SkCanvas; class SK_API SkPictureRecorder : SkNoncopyable { public: -#ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES - - SkPictureRecorder(SkPictureFactory* factory = NULL) { - fFactory.reset(factory); - if (NULL != fFactory.get()) { - fFactory.get()->ref(); - } - } - - /** Returns the canvas that records the drawing commands. - @param width the base width for the picture, as if the recording - canvas' bitmap had this width. - @param height the base width for the picture, as if the recording - canvas' bitmap had this height. - @param recordFlags optional flags that control recording. - @return the canvas. - */ - SkCanvas* beginRecording(int width, int height, uint32_t recordFlags = 0) { - if (NULL != fFactory) { - fPicture.reset(fFactory->create(width, height)); - recordFlags |= SkPicture::kOptimizeForClippedPlayback_RecordingFlag; - } else { - fPicture.reset(SkNEW(SkPicture)); - } - - return fPicture->beginRecording(width, height, recordFlags); - } -#endif - /** Returns the canvas that records the drawing commands. @param width the base width for the picture, as if the recording canvas' bitmap had this width. @@ -95,10 +66,6 @@ public: } private: -#ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES - SkAutoTUnref<SkPictureFactory> fFactory; -#endif - #ifdef SK_BUILD_FOR_ANDROID /** Replay the current (partially recorded) operation stream into canvas. This call doesn't close the current recording. |