34 : fAlloc {
std::move(alloc)}
35 , fSubRuns(
std::move(subRuns))
36 , fSourceBounds{sourceBounds}
40 buffer.writeRect(fSourceBounds);
41 buffer.writePoint(fOrigin);
42 fSubRuns->flattenAllocSizeHint(
buffer);
43 fSubRuns->flattenRuns(
buffer);
55 SubRunAllocator::AllocateClassMemoryAndArena<SlugImpl>(allocSizeHint);
81 SubRunAllocator::AllocateClassMemoryAndArena<SlugImpl>(subRunSizeHint);
101 if (slug->fSubRuns->isEmpty()) {
return nullptr; }
static struct Initializer initializer
SkMatrix & preTranslate(SkScalar dx, SkScalar dy)
SkRect sourceBounds() const
const gpu::SubRunContainerOwner & subRuns() const
void doFlatten(SkWriteBuffer &buffer) const override
SlugImpl(SubRunAllocator &&alloc, gpu::SubRunContainerOwner subRuns, SkRect sourceBounds, SkPoint origin)
SkRect sourceBounds() const override
static sk_sp< SlugImpl > Make(const SkMatrix &viewMatrix, const sktext::GlyphRunList &glyphRunList, const SkPaint &paint, SkStrikeDeviceInfo strikeDeviceInfo, sktext::StrikeForGPUCacheInterface *strikeCache)
static sk_sp< Slug > MakeFromBuffer(SkReadBuffer &buffer, const SkStrikeClient *client)
static void AddDeserialProcs(SkDeserialProcs *procs, const SkStrikeClient *client=nullptr)
static SubRunContainerOwner MakeInAlloc(const GlyphRunList &glyphRunList, const SkMatrix &positionMatrix, const SkPaint &runPaint, SkStrikeDeviceInfo strikeDeviceInfo, StrikeForGPUCacheInterface *strikeCache, sktext::gpu::SubRunAllocator *alloc, SubRunCreationBehavior creationBehavior, const char *tag)
static size_t EstimateAllocSize(const GlyphRunList &glyphRunList)
static SubRunContainerOwner MakeFromBufferInAlloc(SkReadBuffer &buffer, const SkStrikeClient *client, SubRunAllocator *alloc)
static int AllocSizeHintFromBuffer(SkReadBuffer &buffer)
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
std::unique_ptr< SubRunContainer, SubRunAllocator::Destroyer > SubRunContainerOwner
SkMatrix position_matrix(const SkMatrix &drawMatrix, SkPoint drawOrigin)
constexpr float y() const
constexpr float x() const