Home
last modified time | relevance | path

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

123

/external/skqp/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
/external/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
/external/skia/tests/
DICCTest.cpp42 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
51 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
55 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
59 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
84 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
88 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
92 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
96 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
104 sk_sp<SkData> data = GetResourceAsData("icc_profiles/AdobeRGB1998.icc"); in DEF_TEST()
DColorSpaceTest.cpp199 sk_sp<SkData> monitorData = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
201 monitorData = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
203 monitorData = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
205 monitorData = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
222 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
224 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
226 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
228 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
373 sk_sp<SkData> data = GetResourceAsData("icc_profiles/SM2333SW.icc"); in DEF_TEST()
381 data = GetResourceAsData("icc_profiles/invalid_color_lut.icc"); in DEF_TEST()
DImageIsOpaqueTest.cpp42 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
44 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
46 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
48 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
DCodecPartialTest.cpp54 sk_sp<SkData> file = GetResourceAsData(name); in test_partial()
148 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
193 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
289 sk_sp<SkData> file = GetResourceAsData(name); in test_interleaved()
405 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
436 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
DCodecAnimTest.cpp22 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
33 sk_sp<SkData> data(GetResourceAsData("images/blendBG.webp")); in DEF_TEST()
154 sk_sp<SkData> data(GetResourceAsData(rec.fName)); in DEF_TEST()
386 sk_sp<SkData> data(GetResourceAsData(file)); in DEF_TEST()
DGifTest.cpp228 auto data = GetResourceAsData("images/test640x479.gif"); in DEF_TEST()
253 sk_sp<SkData> data(GetResourceAsData("images/test640x479.gif")); in DEF_TEST()
265 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
DAnimatedImageTest.cpp37 auto data = GetResourceAsData(file); in DEF_TEST()
109 auto data = GetResourceAsData(file); in DEF_TEST()
180 auto data = GetResourceAsData(file); in DEF_TEST()
DAndroidCodecTest.cpp55 auto data = GetResourceAsData(file); in DEF_TEST()
142 auto data = GetResourceAsData(path.c_str()); in DEF_TEST()
DCodecExactReadTest.cpp55 sk_sp<SkData> data = GetResourceAsData(path); in DEF_TEST()
/external/skqp/tests/
DICCTest.cpp42 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
51 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
55 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
59 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
84 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
88 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
92 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
96 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
104 sk_sp<SkData> data = GetResourceAsData("icc_profiles/AdobeRGB1998.icc"); in DEF_TEST()
DColorSpaceTest.cpp199 sk_sp<SkData> monitorData = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
201 monitorData = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
203 monitorData = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
205 monitorData = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
222 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
224 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
226 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
228 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
373 sk_sp<SkData> data = GetResourceAsData("icc_profiles/SM2333SW.icc"); in DEF_TEST()
381 data = GetResourceAsData("icc_profiles/invalid_color_lut.icc"); in DEF_TEST()
DImageIsOpaqueTest.cpp42 sk_sp<SkData> data = GetResourceAsData("icc_profiles/HP_ZR30w.icc"); in DEF_TEST()
44 data = GetResourceAsData("icc_profiles/HP_Z32x.icc"); in DEF_TEST()
46 data = GetResourceAsData("icc_profiles/upperLeft.icc"); in DEF_TEST()
48 data = GetResourceAsData("icc_profiles/upperRight.icc"); in DEF_TEST()
DCodecPartialTest.cpp54 sk_sp<SkData> file = GetResourceAsData(name); in test_partial()
148 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
193 sk_sp<SkData> file = GetResourceAsData(path); in DEF_TEST()
289 sk_sp<SkData> file = GetResourceAsData(name); in test_interleaved()
405 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
436 sk_sp<SkData> file = GetResourceAsData(name); in DEF_TEST()
DCodecAnimTest.cpp22 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
33 sk_sp<SkData> data(GetResourceAsData("images/blendBG.webp")); in DEF_TEST()
154 sk_sp<SkData> data(GetResourceAsData(rec.fName)); in DEF_TEST()
386 sk_sp<SkData> data(GetResourceAsData(file)); in DEF_TEST()
DGifTest.cpp228 auto data = GetResourceAsData("images/test640x479.gif"); in DEF_TEST()
253 sk_sp<SkData> data(GetResourceAsData("images/test640x479.gif")); in DEF_TEST()
265 sk_sp<SkData> data(GetResourceAsData("images/box.gif")); in DEF_TEST()
DAndroidCodecTest.cpp44 auto data = GetResourceAsData(file); in DEF_TEST()
131 auto data = GetResourceAsData(path.c_str()); in DEF_TEST()
DCodecExactReadTest.cpp55 sk_sp<SkData> data = GetResourceAsData(path); in DEF_TEST()
/external/skia/samplecode/
DSampleIdentityScale.cpp28 if (!DecodeDataToBitmap(GetResourceAsData(imageFilename), &fBM)) { in IdentityScaleView()
/external/skqp/samplecode/
DSampleIdentityScale.cpp28 if (!DecodeDataToBitmap(GetResourceAsData(imageFilename), &fBM)) { in IdentityScaleView()
/external/skia/gm/
Dcrosscontextimage.cpp22 sk_sp<SkData> encodedData = GetResourceAsData("images/mandrill_512.png");
/external/skqp/gm/
Dcrosscontextimage.cpp22 sk_sp<SkData> encodedData = GetResourceAsData("images/mandrill_512.png");

123