676 {
677
678 {
681 }
682
683
684 {
686 TestObjectSerializationNoAlign<SkPoint3, false>(&point,
reporter);
687 }
688
689
690 {
693 }
694
695
696 {
699 }
700
701
702 {
704 }
705
706
707 {
709 TestObjectSerializationNoAlign<SkString, false>(&
string,
reporter);
710 TestObjectSerializationNoAlign<SkString, true>(&
string,
reporter);
711 }
712
713
714 {
715
716
717
720 SkVector corners[4] = { {1, 2}, {2, 3}, {3,4}, {4,5} };
723 }
724
725
726 {
729 }
730
731
732 {
735 }
736
737
738 {
743 { 1.f, 2.f, 4.f, 8.f }
744 };
746 }
747
748
749 {
752 }
753
754
755 {
758 }
759
760
761 {
764 }
765
766
767 {
768
769 {
774 writer.writeToMemory(buf.get());
775
778 const void* arr = reader.skipByteArray(&
len);
782 }
783
784
785 {
789 writer.writeToMemory(buf.get());
790
793 const void* arr = reader.skipByteArray(&
len);
796 }
797
798
799 {
803 writer.writeToMemory(buf.get());
804
807 const void* arr = reader.skipByteArray(&
len);
810 }
811 }
812
813
814 {
816
819
820
823
824
825
827 }
828
829
830 {
836
837
838
842 };
845
846
847
852 if (img0 && img1) {
858 left.write(
d->data(),
d->size());
862 right.write(
d->data(),
d->size());
864 }
865 }
866 }
867
869
875}
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)
SkSerialImageProc fImageProc
SkSerialTypefaceProc fTypefaceProc