24 size_t drawablesSize = 0;
26 for (
auto&& drawable : *fDrawableList) {
27 drawablesSize += drawable->approximateBytesUsed();
30 return sizeof(*this) +
38 int drawableCount = 0;
40 drawables = fDrawableList->begin();
41 drawableCount = fDrawableList->count();
43 SkRecordDraw(*fRecord, canvas,
nullptr, drawables, drawableCount, fBBH.
get(),
nullptr);
49 std::unique_ptr<SkBigPicture::SnapshotArray> pictList{
50 fDrawableList ? fDrawableList->newDrawableSnapshot() :
nullptr
53 size_t subPictureBytes = 0;
54 for (
int i = 0; pictList &&
i < pictList->count();
i++) {
55 subPictureBytes += pictList->begin()[
i]->approximateBytesUsed();
57 return sk_make_sp<SkBigPicture>(
fBounds, fRecord, std::move(pictList), fBBH, subPictureBytes);
77 SkDrawable*
const* drawables = fDrawableList ? fDrawableList->begin() :
nullptr;
78 int drawableCount = fDrawableList ? fDrawableList->count() : 0;
80 SkRecordDraw(*fRecord, &pictureRecord,
nullptr, drawables, drawableCount, bbh,
nullptr);
106 return recorder.finishRecordingAsDrawable();
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void SkRecordDraw(const SkRecord &record, SkCanvas *canvas, SkPicture const *const drawablePicts[], SkDrawable *const drawables[], int drawableCount, const SkBBoxHierarchy *bbh, SkPicture::AbortCallback *callback)
virtual size_t bytesUsed() const =0
SkRect getLocalClipBounds() const
virtual skgpu::graphite::Recorder * recorder() const
static SkPictureData * CreateFromBuffer(SkReadBuffer &, const SkPictInfo &)
void flatten(SkWriteBuffer &) const
sk_sp< SkPicture > onMakePictureSnapshot() override
void onDraw(SkCanvas *canvas) override
size_t onApproximateBytesUsed() override
void flatten(SkWriteBuffer &buffer) const override
Optional< SkRect > bounds
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
static constexpr SkISize Make(int32_t w, int32_t h)
bool contains(SkScalar x, SkScalar y) const
constexpr float height() const
constexpr float width() const