Searched refs:resourceData (Results 1 – 2 of 2) sorted by relevance
31 sk_sp<SkData> resourceData(SkData::MakeFromFileName(resourcePath.c_str())); in GetResourceAsBitmap() local32 std::unique_ptr<SkImageGenerator> gen(SkImageGenerator::MakeFromEncoded(resourceData)); in GetResourceAsBitmap()43 sk_sp<SkData> resourceData(SkData::MakeFromFileName(path.c_str())); in GetResourceAsImage() local44 return SkImage::MakeFromEncoded(resourceData); in GetResourceAsImage()
17 sk_sp<SkData> resourceData = SkData::MakeFromFileName(resourcePath.c_str()); in make_raster_image() local18 std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(resourceData)); in make_raster_image()