Home
last modified time | relevance | path

Searched refs:resourceData (Results 1 – 2 of 2) sorted by relevance

/external/skia/tools/
DResources.cpp31 sk_sp<SkData> resourceData(SkData::MakeFromFileName(resourcePath.c_str())); in GetResourceAsBitmap() local
32 std::unique_ptr<SkImageGenerator> gen(SkImageGenerator::MakeFromEncoded(resourceData)); in GetResourceAsBitmap()
43 sk_sp<SkData> resourceData(SkData::MakeFromFileName(path.c_str())); in GetResourceAsImage() local
44 return SkImage::MakeFromEncoded(resourceData); in GetResourceAsImage()
/external/skia/gm/
Dmakecolorspace.cpp17 sk_sp<SkData> resourceData = SkData::MakeFromFileName(resourcePath.c_str()); in make_raster_image() local
18 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(resourceData)); in make_raster_image()