Home
last modified time | relevance | path

Searched refs:MakeFromData (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/bench/
DCodecBench.cpp29 SkASSERT(SkCodec::MakeFromData(fData)); in CodecBench()
41 std::unique_ptr<SkCodec> codec = SkCodec::MakeFromData(fData); in onDelayedSetup()
57 codec = SkCodec::MakeFromData(fData); in onDraw()
DAndroidCodecBench.cpp32 std::unique_ptr<SkAndroidCodec> codec(SkAndroidCodec::MakeFromData(fData)); in onDelayedSetup()
48 codec = SkAndroidCodec::MakeFromData(fData); in onDraw()
/third_party/skia/tests/
DAnimatedImageTest.cpp46 auto androidCodec = SkAndroidCodec::MakeFromData(std::move(data)); in DEF_TEST()
70 auto androidCodec = SkAndroidCodec::MakeFromData(std::move(data)); in DEF_TEST()
130 auto codec = SkAndroidCodec::MakeFromData(data); in DEF_TEST()
158 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(data)); in DEF_TEST()
230 auto codec = SkCodec::MakeFromData(data); in DEF_TEST()
301 auto codec = SkCodec::MakeFromData(data); in DEF_TEST()
438 SkCodec::MakeFromData(data))); in DEF_TEST()
DBRDTest.cpp39 REPORTER_ASSERT(r, SkCodec::MakeFromData(data) != nullptr); in DEF_TEST()
40 REPORTER_ASSERT(r, SkAndroidCodec::MakeFromData(data) != nullptr); in DEF_TEST()
DGifTest.cpp213 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
322 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
366 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
483 auto codec = SkCodec::MakeFromData(std::move(data)); in DEF_TEST()
527 auto codec = SkCodec::MakeFromData(std::move(data)); in DEF_TEST()
620 auto codec = SkCodec::MakeFromData(std::move(data)); in DEF_TEST()
DAndroidCodecTest.cpp65 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(std::move(data))); in DEF_TEST()
150 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(std::move(data))); in DEF_TEST()
179 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(std::move(data))); in DEF_TEST()
DCodecAnimTest.cpp41 SkCodec::MakeFromData(SkData::MakeSubset(data.get(), 0, 23))->getFrameInfo(); in DEF_TEST()
52 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(std::move(data))); in DEF_TEST()
255 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
307 codec = SkCodec::MakeFromData(data); in DEF_TEST()
495 auto codec = SkAndroidCodec::MakeFromCodec(SkCodec::MakeFromData(std::move(data))); in test_animated_AndroidCodec()
593 auto codec = SkCodec::MakeFromData(GetResourceAsData(test.fFile)); in DEF_TEST()
DCodecPartialTest.cpp35 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(std::move(data))); in create_truth()
181 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(file)); in DEF_TEST()
399 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
415 codec = SkCodec::MakeFromData(SkData::MakeWithoutCopy(gNoGlobalColorMap, 23)); in DEF_TEST()
475 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(std::move(file))); in DEF_TEST()
DCodecTest.cpp495 codec = SkCodec::MakeFromData(SkData::MakeFromStream(stream.get(), 2 * length / 3)); in check()
702 REPORTER_ASSERT(r, !SkCodec::MakeFromData(data)); in test_invalid()
855 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(wStream.detachAsData(), &chunkReader)); in DEF_TEST()
978 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in DEF_TEST()
1023 std::unique_ptr<SkAndroidCodec> codec(SkAndroidCodec::MakeFromData(data)); in DEF_TEST()
1124 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(data)); in check_round_trip()
1409 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(SkData::MakeFromStream(stream.get(), 99))); in DEF_TEST()
1604 std::unique_ptr<SkCodec> srgbCodec(SkCodec::MakeFromData(srgbData)); in test_encode_icc()
1613 std::unique_ptr<SkCodec> p3Codec(SkCodec::MakeFromData(p3Data)); in test_encode_icc()
1645 std::unique_ptr<SkCodec> codec = SkCodec::MakeFromData(std::move(subset)); in DEF_TEST()
[all …]
DCodecRecommendedTypeTest.cpp35 auto androidCodec = SkAndroidCodec::MakeFromData(std::move(data)); in DEF_TEST()
DCodecPriv.h23 std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(SkData::MakeWithoutCopy(mem, size))); in decode_memory()
DSerialProcsTest.cpp75 auto new_pic = SkPicture::MakeFromData(data.get(), &dproc); in DEF_TEST()
145 p0 = SkPicture::MakeFromData(d0.get(), &dprocs); in test_pictures()
/third_party/skia/modules/skparagraph/utils/
DTestFontCollection.cpp48 fFontProvider->registerTypeface(SkTypeface::MakeFromData(data)); in addFontFromFile()
50 … fFontProvider->registerTypeface(SkTypeface::MakeFromData(data), SkString(familyName.c_str())); in addFontFromFile()
/third_party/skia/include/core/
DSkPicture.h72 static sk_sp<SkPicture> MakeFromData(const SkData* data,
82 static sk_sp<SkPicture> MakeFromData(const void* data, size_t size,
/third_party/skia/tools/
Dremote_demo.cpp158 auto pic = SkPicture::MakeFromData(picData, &procs); in final_draw()
165 auto picUnderTest = SkPicture::MakeFromData(picData, &procs); in final_draw()
238 auto pic = SkPicture::MakeFromData(skpData.get()); in renderer()
/third_party/skia/gm/
Danimated_image_orientation.cpp53 auto codec = SkCodec::MakeFromData(fData); in init()
103 auto codec = SkCodec::MakeFromData(fData); in onDraw()
Danimated_gif.cpp181 return SkCodec::MakeFromData(SkData::MakeFromFileName(filename)); in load_codec()
244 auto codec = SkCodec::MakeFromData(std::move(data)); in init()
/third_party/skia/fuzz/oss_fuzz/
DFuzzAnimatedImage.cpp15 auto codec = SkAndroidCodec::MakeFromData(bytes); in FuzzAnimatedImage()
DFuzzSKP.cpp17 sk_sp<SkPicture> pic = SkPicture::MakeFromData(bytes->data(), bytes->size()); in FuzzSKP()
DFuzzIncrementalImage.cpp13 auto codec = SkCodec::MakeFromData(bytes); in FuzzIncrementalImageDecode()
/third_party/skia/docs/examples/
DPicture_serialize.cpp15 sk_sp<SkPicture> copy = SkPicture::MakeFromData(readableData->data(), readableData->size()); in draw()
DPicture_MakeFromData.cpp17 sk_sp<SkPicture> copy = SkPicture::MakeFromData(readableData.get()); in draw()
DPicture_serialize_2.cpp17 sk_sp<SkPicture> copy = SkPicture::MakeFromData(readableData->data(), readableData->size()); in draw()
DPicture_008.cpp17 sk_sp<SkPicture> copy = SkPicture::MakeFromData(readableData->data(), readableData->size()); in draw()
Df16.cpp408 …std::unique_ptr<SkCodec> codec(SkCodec::MakeFromData(SkData::MakeWithoutCopy(data0, data0length))); in draw()

123