diff options
author | mtklein <mtklein@google.com> | 2016-04-27 09:29:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-27 09:29:34 -0700 |
commit | 569b02151f399628b0c0c0ca825dfe7b6e2795e1 (patch) | |
tree | 8c10668cf5feee18fbe7fa3e691449753fe875f0 /src/core/SkRecordedDrawable.h | |
parent | d636950e8ecba89c0021ce4e76037c67aa6ee2cd (diff) |
Revert of Enable flattening of SkRecordedDrawable (patchset #8 id:140001 of https://codereview.chromium.org/1913843002/ )
Reason for revert:
Release mode bots appear to be crashing while loading .skp files in nanobench.
Original issue's description:
> Enable flattening of SkRecordedDrawable
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1913843002
>
> Committed: https://skia.googlesource.com/skia/+/d636950e8ecba89c0021ce4e76037c67aa6ee2cd
TBR=djsollen@google.com,reed@google.com,msarett@google.com
# 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/1923393002
Diffstat (limited to 'src/core/SkRecordedDrawable.h')
-rw-r--r-- | src/core/SkRecordedDrawable.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/core/SkRecordedDrawable.h b/src/core/SkRecordedDrawable.h deleted file mode 100644 index e9973b4b81..0000000000 --- a/src/core/SkRecordedDrawable.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2016 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkBBoxHierarchy.h" -#include "SkDrawable.h" -#include "SkRecord.h" -#include "SkRecorder.h" - -class SkRecordedDrawable : public SkDrawable { -public: - SkRecordedDrawable(SkRecord* record, SkBBoxHierarchy* bbh, SkDrawableList* drawableList, - const SkRect& bounds, bool doSaveLayerInfo) - : fRecord(SkRef(record)) - , fBBH(SkSafeRef(bbh)) - , fDrawableList(drawableList) // we take ownership - , fBounds(bounds) - , fDoSaveLayerInfo(doSaveLayerInfo) - {} - - void flatten(SkWriteBuffer& buffer) const override; - - static sk_sp<SkFlattenable> CreateProc(SkReadBuffer& buffer); - - Factory getFactory() const override { return CreateProc; } - -protected: - SkRect onGetBounds() override { return fBounds; } - - void onDraw(SkCanvas* canvas) override; - - SkPicture* onNewPictureSnapshot() override; - -private: - SkAutoTUnref<SkRecord> fRecord; - SkAutoTUnref<SkBBoxHierarchy> fBBH; - SkAutoTDelete<SkDrawableList> fDrawableList; - const SkRect fBounds; - const bool fDoSaveLayerInfo; -}; |