Home
last modified time | relevance | path

Searched refs:GetResourceAsData (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/tools/
DResources.h25 sk_sp<SkData> GetResourceAsData(const char* resource);
28 return DecodeDataToBitmap(GetResourceAsData(resource), dst); in GetResourceAsBitmap()
32 return SkImage::MakeFromEncoded(GetResourceAsData(resource)); in GetResourceAsImage()
DResources.cpp40 auto data = GetResourceAsData(resource); in GetResourceAsStream()
45 sk_sp<SkData> GetResourceAsData(const char* resource) { in GetResourceAsData() function
/third_party/skia/tests/
DAnimatedImageTest.cpp38 auto data = GetResourceAsData(file); in DEF_TEST()
64 auto data = GetResourceAsData(file); in DEF_TEST()
92 auto data = GetResourceAsData(file); in DEF_TEST()
152 auto data = GetResourceAsData(file); in DEF_TEST()
224 auto data = GetResourceAsData(file); in DEF_TEST()
295 auto data = GetResourceAsData(file); in DEF_TEST()
DCodecPartialTest.cpp126 sk_sp<SkData> file = GetResourceAsData(name); in test_partial()
159 auto file = GetResourceAsData(path); in DEF_TEST()
176 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
227 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
330 sk_sp<SkData> file = GetResourceAsData(name); in test_interleaved()
467 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
498 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
DGifTest.cpp290 auto data = GetResourceAsData("images/test640x479.gif"); in DEF_TEST()
315 sk_sp<SkData> data(GetResourceAsData("images/test640x479.gif")); in DEF_TEST()
360 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
434 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
477 auto data = GetResourceAsData(path); in DEF_TEST()
521 auto data = GetResourceAsData(path); in DEF_TEST()
614 auto data = GetResourceAsData(path); in DEF_TEST()
DAndroidCodecTest.cpp59 auto data = GetResourceAsData(file); in DEF_TEST()
144 auto data = GetResourceAsData(path); in DEF_TEST()
173 auto data = GetResourceAsData(path); in DEF_TEST()
DSkSLES2ConformanceTest.cpp40 sk_sp<SkData> shaderData = GetResourceAsData(testFile); in test_expect_fail()
57 sk_sp<SkData> shaderData = GetResourceAsData(testFile); in test_expect_pass()
DCodecAnimTest.cpp34 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
48 sk_sp<SkData> data(GetResourceAsData("images/blendBG.webp")); in DEF_TEST()
247 sk_sp<SkData> data(GetResourceAsData(rec.fName)); in DEF_TEST()
489 sk_sp<SkData> data(GetResourceAsData(file)); in test_animated_AndroidCodec()
593 auto codec = SkCodec::MakeFromData(GetResourceAsData(test.fFile)); in DEF_TEST()
DICCTest.cpp18 if (sk_sp<SkData> profile = GetResourceAsData("icc_profiles/AdobeRGB1998.icc")) { in DEF_TEST()
DBRDTest.cpp36 auto data = GetResourceAsData(rec.name); in DEF_TEST()
DCodecTest.cpp696 auto data = GetResourceAsData(path); in test_invalid()
923 sk_sp<SkData> data(GetResourceAsData(path)); in DEF_TEST()
941 auto data = GetResourceAsData(path); in DEF_TEST()
1017 sk_sp<SkData> data(GetResourceAsData(path)); in DEF_TEST()
1452 auto data = GetResourceAsData(path); in test_invalid_header()
1636 sk_sp<SkData> data(GetResourceAsData(path)); in DEF_TEST()
1745 auto data = GetResourceAsData(file); in DEF_TEST()
1781 auto data = GetResourceAsData(file); in DEF_TEST()
1831 auto data = GetResourceAsData(path); in DEF_TEST()
1855 auto data = GetResourceAsData(rec.name); in DEF_TEST()
DWebpTest.cpp16 auto codec = SkCodec::MakeFromData(GetResourceAsData(path)); in DEF_TEST()
DCodecExactReadTest.cpp59 sk_sp<SkData> data = GetResourceAsData(path); in DEF_TEST()
DColorSpaceTest.cpp120 sk_sp<SkData> data = GetResourceAsData(path); in DEF_TEST()
153 sk_sp<SkData> data = GetResourceAsData(path); in DEF_TEST()
/third_party/skia/modules/skottie/gm/
DSkottieGM.cpp29 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
231 GetResourceAsData("images/flightAnim.gif")); in loadImageAsset()
DExternalProperties.cpp29 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
/third_party/skia/gm/
Dcrosscontextimage.cpp25 sk_sp<SkData> encodedData = GetResourceAsData("images/mandrill_256.png");
Dducky_yuv_blend.cpp31 auto lazyYUV = sk_gpu_test::LazyYUVImage::Make(GetResourceAsData("images/ducky.jpg"),
Dparticles.cpp45 auto jsonData = GetResourceAsData(SkStringPrintf("particles/%s.json", fName).c_str()); in onOnceBeforeDraw()
Dencode_srgb.cpp53 sk_sp<SkData> data = GetResourceAsData(resource); in make()
/third_party/skia/modules/skparagraph/bench/
DParagraphBench.cpp29 void onDelayedSetup() override { fData = GetResourceAsData(fResource); } in onDelayedSetup()
/third_party/skia/samplecode/
DSampleCowboy.cpp44 auto data = GetResourceAsData(fResource); in onOnceBeforeDraw()
DSampleAnimatedImage.cpp82 sk_sp<SkData> file(GetResourceAsData("images/alphabetAnim.gif")); in onOnceBeforeDraw()
/third_party/skia/bench/
DShaperBench.cpp24 fData = GetResourceAsData(fResource); in onDelayedSetup()
DDecodeBench.cpp28 fData = GetResourceAsData(fSource); in onDelayedSetup()

12