58 uint32_t
a()
const {
return fA; }
59 uint32_t
b()
const {
return fB; }
60 uint32_t
c()
const {
return fC; }
61 uint32_t
d()
const {
return fD; }
63 const char*
getTypeName()
const override {
return "IntDrawable"; }
94 const char*
getTypeName()
const override {
return "PaintDrawable"; }
117 buffer.writeFlattenable(fIntDrawable.
get());
118 buffer.writeFlattenable(fPaintDrawable.
get());
141 const char*
getTypeName()
const override {
return "CompoundDrawable"; }
169 buffer.writeFlattenable(fCompoundDrawable.
get());
170 buffer.writeFlattenable(fIntDrawable.
get());
171 buffer.writeFlattenable(fDrawable.
get());
200 const char*
getTypeName()
const override {
return "RootDrawable"; }
233 writeBuffer.writeToMemory(
data->writable_data());
292 writeBuffer.writeToMemory(
data->writable_data());
305 #define test(name) REPORTER_ASSERT(reporter, !name::Deserialize(data->data(), data->size()))
DEF_TEST(FlattenDrawable, r)
static struct Initializer initializer
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
#define SK_REGISTER_FLATTENABLE(type)
#define REPORTER_ASSERT(r, cond,...)
CompoundDrawable(uint32_t a, uint32_t b, uint32_t c, uint32_t d, const SkPaint &paint)
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
const char * getTypeName() const override
PaintDrawable * paintDrawable() const
Factory getFactory() const override
void onDraw(SkCanvas *) override
CompoundDrawable(IntDrawable *intDrawable, PaintDrawable *paintDrawable)
void flatten(SkWriteBuffer &buffer) const override
SkRect onGetBounds() override
IntDrawable * intDrawable() const
const char * getTypeName() const override
void flatten(SkWriteBuffer &buffer) const override
void onDraw(SkCanvas *) override
Factory getFactory() const override
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
IntDrawable(uint32_t a, uint32_t b, uint32_t c, uint32_t d)
SkRect onGetBounds() override
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
SkRect onGetBounds() override
const char * getTypeName() const override
PaintDrawable(const SkPaint &paint)
void onDraw(SkCanvas *) override
Factory getFactory() const override
const SkPaint & paint() const
void flatten(SkWriteBuffer &buffer) const override
void onDraw(SkCanvas *) override
SkDrawable * drawable() const
SkRect onGetBounds() override
Factory getFactory() const override
const char * getTypeName() const override
CompoundDrawable * compoundDrawable() const
RootDrawable(uint32_t a, uint32_t b, uint32_t c, uint32_t d, const SkPaint &paint, uint32_t e, uint32_t f, uint32_t g, uint32_t h, SkDrawable *drawable)
static sk_sp< SkFlattenable > CreateProc(SkReadBuffer &buffer)
void flatten(SkWriteBuffer &buffer) const override
IntDrawable * intDrawable() const
RootDrawable(CompoundDrawable *compoundDrawable, IntDrawable *intDrawable, SkDrawable *drawable)
void writeFlattenable(const SkFlattenable *flattenable) override
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
void drawPaint(const SkPaint &paint)
void drawDrawable(SkDrawable *drawable, const SkMatrix *matrix=nullptr)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
static sk_sp< SkData > MakeUninitialized(size_t length)
static sk_sp< SkData > MakeEmpty()
sk_sp< SkFlattenable >(* Factory)(SkReadBuffer &)
void setColor(SkColor color)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkDrawable > finishRecordingAsDrawable()
SkFlattenable * readFlattenable(SkFlattenable::Type)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
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 SkRect MakeEmpty()
std::shared_ptr< const fml::Mapping > data