Lines Matching refs:SkData
70 static SkData* create_image_data(SkImageInfo* info) { in create_image_data()
73 SkAutoTUnref<SkData> data(SkData::NewUninitialized(rowBytes * info->height())); in create_image_data()
84 SkAutoTUnref<SkData> data(create_image_data(&info)); in create_data_image()
99 SkAutoTUnref<SkData> fData;
110 SkAutoTUnref<SkData> data(create_image_data(&info)); in create_rasterproc_image()
117 SkAutoTUnref<SkData> data(create_image_data(&info)); in create_codec_image()
120 SkAutoTUnref<SkData> src( in create_codec_image()
136 SkAutoTUnref<SkData> origEncoded(image->encode()); in test_encode()
169 MockSerializer(SkData* (*func)()) : fFunc(func), fDidEncode(false) { } in MockSerializer()
178 SkData* onEncode(const SkPixmap&) override { in onEncode()
184 SkData* (*fFunc)();
194 MockSerializer serializer([]() -> SkData* { return SkData::NewWithCString(kSerializedData); }); in DEF_TEST()
196 SkAutoTUnref<SkData> encoded(image->encode(&serializer)); in DEF_TEST()
197 SkAutoTUnref<SkData> reference(SkData::NewWithCString(kSerializedData)); in DEF_TEST()
219 MockSerializer emptySerializer([]() -> SkData* { return SkData::NewEmpty(); }); in DEF_TEST()
220 MockSerializer nullSerializer([]() -> SkData* { return nullptr; }); in DEF_TEST()
477 SkData* data = SkData::NewUninitialized(size); in DEF_TEST()