diff options
Diffstat (limited to 'src/core/SkPictureRecorder.cpp')
-rw-r--r-- | src/core/SkPictureRecorder.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp index 00450b085a..8e7c7f3b06 100644 --- a/src/core/SkPictureRecorder.cpp +++ b/src/core/SkPictureRecorder.cpp @@ -196,26 +196,3 @@ sk_sp<SkDrawable> SkPictureRecorder::finishRecordingAsDrawable(uint32_t finishFl return drawable; } - -#include "SkLiteDL.h" -#include "SkLiteRecorder.h" - -SkPictureRecorder_Lite:: SkPictureRecorder_Lite() : fRecorder(new SkLiteRecorder) {} -SkPictureRecorder_Lite::~SkPictureRecorder_Lite() {} - -SkCanvas* SkPictureRecorder_Lite::beginRecording(const SkRect& bounds) { - fDL = SkLiteDL::New(bounds); - fRecorder->reset(fDL.get()); - return this->getRecordingCanvas(); -} - -SkCanvas* SkPictureRecorder_Lite::getRecordingCanvas() { - return fDL ? fRecorder.get() : nullptr; -} - -sk_sp<SkDrawable> SkPictureRecorder_Lite::finishRecordingAsDrawable(uint32_t) { - if (fGrContextToOptimizeFor) { - fDL->optimizeFor(fGrContextToOptimizeFor); - } - return std::move(fDL); -} |