diff options
author | mtklein <mtklein@google.com> | 2016-08-15 12:56:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-15 12:56:00 -0700 |
commit | 8bbbb696cdc1351f615bc52ee119cfa384f77f30 (patch) | |
tree | 095e68caa0c3ea745c096a519d952565455a5788 /src/core/SkPictureRecorder.cpp | |
parent | 6fb0648c35aead138e65133c031d2b4fe5c8f0c7 (diff) |
Revert of add parallel public API for recording SkLiteDL. (patchset #1 id:1 of https://codereview.chromium.org/2246893002/ )
Reason for revert:
looking like we won't need this
Original issue's description:
> add parallel public API for recording SkLiteDL.
>
> The API is restricted to pretty much just what Derek calls,
> but it's enough that we can switch testing over to use it.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2246893002
>
> Committed: https://skia.googlesource.com/skia/+/ced26a3d6b77d3a6744a8ccb8eff23eda45fc867
TBR=djsollen@google.com,reed@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review-Url: https://codereview.chromium.org/2243393002
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); -} |