642 {
643
644 {
647 }
648
649
650 {
652 TestObjectSerializationNoAlign<SkPoint3, false>(&point,
reporter);
653 }
654
655
656 {
659 }
660
661
662 {
665 }
666
667
668 {
670 }
671
672
673 {
675 TestObjectSerializationNoAlign<SkString, false>(&
string,
reporter);
676 TestObjectSerializationNoAlign<SkString, true>(&
string,
reporter);
677 }
678
679
680 {
681
682
683
686 SkVector corners[4] = { {1, 2}, {2, 3}, {3,4}, {4,5} };
689 }
690
691
692 {
695 }
696
697
698 {
701 }
702
703
704 {
709 { 1.f, 2.f, 4.f, 8.f }
710 };
712 }
713
714
715 {
718 }
719
720
721 {
724 }
725
726
727 {
730 }
731
732
733 {
734
735 {
740 writer.writeToMemory(buf.get());
741
744 const void* arr = reader.skipByteArray(&len);
748 }
749
750
751 {
755 writer.writeToMemory(buf.get());
756
759 const void* arr = reader.skipByteArray(&len);
762 }
763
764
765 {
769 writer.writeToMemory(buf.get());
770
773 const void* arr = reader.skipByteArray(&len);
776 }
777 }
778
779
780 {
782
785
786
789
790
791
793 }
794
795
796 {
802
803
804
808 };
811
812
813
818 if (img0 && img1) {
824 left.write(
d->data(),
d->size());
828 right.write(
d->data(),
d->size());
830 }
831 }
832 }
833
835
841}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static void TestPictureTypefaceSerialization(const SkSerialProcs *serial_procs, const SkDeserialProcs *deserial_procs, skiatest::Reporter *reporter)
static void TestArraySerialization(T *data, skiatest::Reporter *reporter)
static const int kBitmapSize
static void TestObjectSerialization(T *testObj, skiatest::Reporter *reporter)
static const uint32_t kArraySize
static void TestBitmapSerialization(const SkBitmap &validBitmap, const SkBitmap &invalidBitmap, bool shouldSucceed, skiatest::Reporter *reporter)
static sk_sp< SkTypeface > deserialize_typeface_proc(const void *data, size_t length, void *ctx)
static sk_sp< SkImage > render(const SkPicture &p)
static void TestColorFilterSerialization(skiatest::Reporter *reporter)
static sk_sp< SkData > serialize_typeface_proc(SkTypeface *typeface, void *ctx)
static void draw_something(SkCanvas *canvas)
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
static bool ok(int result)
static bool left(const SkPoint &p0, const SkPoint &p1)
static bool right(const SkPoint &p0, const SkPoint &p1)
static void TestAlignment(T *testObj, skiatest::Reporter *reporter)
void writeByteArray(const void *data, size_t size) override
void writeUInt(uint32_t value) override
bool setInfo(const SkImageInfo &imageInfo, size_t rowBytes=0)
static const SkMatrix & I()
static sk_sp< SkPicture > MakeFromData(const SkData *data, const SkDeserialProcs *procs=nullptr)
void setRectRadii(const SkRect &rect, const SkVector radii[4])
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
unsigned useCenter Optional< SkMatrix > matrix
ClipOpAndAA opAA SkRegion region
sk_sp< SkBlender > blender SkRect rect
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
SkDeserialTypefaceProc fTypefaceProc
static SkImageInfo MakeN32Premul(int width, int height)
static SkRGBA4f FromColor(SkColor color)
SkSerialImageProc fImageProc
SkSerialTypefaceProc fTypefaceProc