Home
last modified time | relevance | path

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

123

/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/flutter/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/flutter/skia/tests/
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()
214 auto data = GetResourceAsData(path.c_str()); in DEF_TEST()
279 auto data = GetResourceAsData(path); in DEF_TEST()
DCodecPartialTest.cpp127 sk_sp<SkData> file = GetResourceAsData(name); in test_partial()
160 auto file = GetResourceAsData(path); in DEF_TEST()
177 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
228 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
331 sk_sp<SkData> file = GetResourceAsData(name); in test_interleaved()
468 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
499 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
DGifTest.cpp244 auto data = GetResourceAsData("images/test640x479.gif"); in DEF_TEST()
269 sk_sp<SkData> data(GetResourceAsData("images/test640x479.gif")); in DEF_TEST()
314 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
388 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
431 auto data = GetResourceAsData(path); in DEF_TEST()
DCodecAnimTest.cpp35 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
49 sk_sp<SkData> data(GetResourceAsData("images/blendBG.webp")); in DEF_TEST()
169 sk_sp<SkData> data(GetResourceAsData(rec.fName)); in DEF_TEST()
402 sk_sp<SkData> data(GetResourceAsData(file)); in DEF_TEST()
472 auto codec = SkCodec::MakeFromData(GetResourceAsData(test.fFile)); in DEF_TEST()
DAnimatedImageTest.cpp38 auto data = GetResourceAsData(file); in DEF_TEST()
110 auto data = GetResourceAsData(file); in DEF_TEST()
181 auto data = GetResourceAsData(file); in DEF_TEST()
DICCTest.cpp18 if (sk_sp<SkData> profile = GetResourceAsData("icc_profiles/AdobeRGB1998.icc")) { in DEF_TEST()
/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()
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()
DBRDTest.cpp36 auto data = GetResourceAsData(rec.name); in DEF_TEST()
/third_party/flutter/skia/samplecode/
DSampleFilter2.cpp31 (void)decode_file(GetResourceAsData(name), &bitmap); in onOnceBeforeDraw()
36 (void)decode_file(GetResourceAsData(name), &bitmap, kRGB_565_SkColorType); in onOnceBeforeDraw()
DSampleIdentityScale.cpp27 if (!DecodeDataToBitmap(GetResourceAsData(imageFilename), &fBM)) { in IdentityScaleView()
/third_party/flutter/skia/modules/skottie/gm/
DSkottieGM.cpp30 FakeWebFontProvider() : fFontData(GetResourceAsData(kWebFontResource)) {} in FakeWebFontProvider()
215 GetResourceAsData("images/flightAnim.gif")); in loadImageAsset()
/third_party/skia/modules/skottie/gm/
DSkottieGM.cpp29 : fTypeface(SkTypeface::MakeFromData(GetResourceAsData(kWebFontResource))) {} in FakeWebFontProvider()
231 GetResourceAsData("images/flightAnim.gif")); in loadImageAsset()
/third_party/flutter/skia/gm/
Dcrosscontextimage.cpp27 sk_sp<SkData> encodedData = GetResourceAsData("images/mandrill_256.png");
/third_party/skia/gm/
Dcrosscontextimage.cpp25 sk_sp<SkData> encodedData = GetResourceAsData("images/mandrill_256.png");

123