Home
last modified time | relevance | path

Searched refs:makeColorSpace (Results 1 - 25 of 32) sorted by relevance

12

/third_party/skia/gm/
H A Dmakecolorspace.cpp36 sk_sp<SkImage> xform = orig->makeColorSpace(colorSpace, direct); in make_color_space()
153 canvas->drawImage(image->makeColorSpace(spin, nullptr)->reinterpretColorSpace(srgb), in DEF_SIMPLE_GM_CAN_FAIL()
162 canvas->drawImage(image->makeColorSpace(spin, nullptr)->reinterpretColorSpace(srgb), in DEF_SIMPLE_GM_CAN_FAIL()
175 canvas->drawImage(image->makeColorSpace(spin, direct)->reinterpretColorSpace(srgb), in DEF_SIMPLE_GM_CAN_FAIL()
H A Dcolorspace.cpp52 // canvas->drawImage(img->makeColorSpace(midCS), 0,0);
58 // If instead of calling SkImage::makeColorSpace() we use SkCanvas::makeSurface() to create a
91 canvas->drawImage(img->makeColorSpace(midCS), 0,0); in draw_colorspace_gm()
96 canvas->makeSurface(canvas->imageInfo().makeColorSpace(midCS)); in draw_colorspace_gm()
H A Dimagemasksubset.cpp42 surfaceInfo = surfaceInfo.makeColorSpace(nullptr);
H A Dencode_srgb.cpp60 .makeColorSpace(colorSpace); in make()
H A Dreadpixels.cpp122 sk_sp<SkImage> raw = SkImage::MakeRasterData(dstInfo.makeColorSpace(srgb), data, rowBytes); in draw_image()
H A Dpictureimagegenerator.cpp183 SkImageInfo bmInfo = gen->getInfo().makeColorSpace(canvas->imageInfo().refColorSpace());
/third_party/skia/tests/
H A DEncodedInfoTest.cpp24 bm.allocPixels(codec->getInfo().makeColorType(kAlpha_8_SkColorType).makeColorSpace(nullptr)); in DEF_TEST()
37 bm2.allocPixels(codec->getInfo().makeColorSpace(nullptr)); in DEF_TEST()
H A DNdkDecodeTest.cpp131 auto info = gen->getInfo().makeColorSpace(cs); in DEF_TEST()
172 auto info = gen->getInfo().makeColorSpace(unsupported); in DEF_TEST()
200 auto noColorCorrection = gen->getInfo().makeColorSpace(nullptr); in DEF_TEST()
212 corrected.allocPixels(noColorCorrection.makeColorSpace(rec.fCorrectedColorSpace)); in DEF_TEST()
H A DCodecTest.cpp1080 .makeColorSpace(colorSpace); in check_color_xform()
1163 .makeColorSpace(nullptr); in DEF_TEST()
1172 .makeColorSpace(nullptr); in DEF_TEST()
1214 infoF16 = infoF16.makeColorSpace(infoF16.colorSpace()->makeLinearGamma()); in test_conversion_possible()
1838 .makeColorSpace(nullptr); in DEF_TEST()
1875 SkImageInfo info = codec->getInfo().makeColorSpace(nullptr); in DEF_TEST()
H A DImageTest.cpp1224 sk_sp<SkImage> p3Image = srgbImage->makeColorSpace(p3, nullptr); in DEF_TEST()
1235 sk_sp<SkImage> adobeImage = srgbImage->makeColorSpace(adobeGamut, nullptr); in DEF_TEST()
1244 p3Image = srgbImage->makeColorSpace(p3, nullptr); in DEF_TEST()
1532 check_roundtrip(image->makeColorSpace(SkColorSpace::MakeSRGBLinear())); in DEF_TEST()
/third_party/skia/tools/
H A Dimgcvt.cpp142 sk_sp<SkSurface> surface = SkSurface::MakeRaster(pixmap.info().makeColorSpace(dst_cs)); in main()
154 sk_sp<SkSurface> surface = SkSurface::MakeRaster(pixmap.info().makeColorSpace(dst_cs)); in main()
H A DResources.cpp36 gen->getPixels(gen->getInfo().makeColorSpace(nullptr), dst->getPixels(), dst->rowBytes()); in DecodeDataToBitmap()
H A Dconvert-to-nia.cpp140 codec->getInfo().makeColorSpace(nullptr); in main()
/third_party/skia/include/core/
H A DSkImageInfo.h247 SkColorInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace() function in SkColorInfo
574 SkImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace() function
575 return Make(fDimensions, fColorInfo.makeColorSpace(std::move(cs))); in makeColorSpace()
/third_party/skia/docs/examples/
H A DImage_makeColorSpace.cpp12 sk_sp<SkImage> colorSpaced = image->makeColorSpace(colorSpace); in REG_FIDDLE()
H A DImageInfo_makeColorSpace.cpp33 offscreenInfo.makeColorSpace(offscreenInfo.colorSpace()->makeLinearGamma()); in REG_FIDDLE()
/third_party/skia/bench/
H A DCodecBench.cpp45 .makeColorSpace(nullptr); in onDelayedSetup()
/third_party/skia/src/gpu/
H A DGrImageInfo.h47 GrImageInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace() function in GrImageInfo
/third_party/skia/src/core/
H A DSkSurfaceCharacterization.cpp90 fImageInfo.makeColorSpace(std::move(cs)), fBackendFormat, in createColorSpace()
/third_party/skia/src/image/
H A DSkImage_Lazy.cpp88 fInfo = fInfo.makeColorSpace(colorSpace); in Validator()
233 if (bitmap.tryAllocPixels(this->imageInfo().makeColorSpace(std::move(newCS)))) { in onReinterpretColorSpace()
H A DSkImage.cpp487 SkImageInfo info = fInfo.makeColorType(kN32_SkColorType).makeColorSpace(nullptr); in onAsLegacyBitmap()
580 sk_sp<SkImage> SkImage::makeColorSpace(sk_sp<SkColorSpace> target, GrDirectContext* direct) const { in makeColorSpace() function in SkImage
662 pm = {fInfo.makeColorSpace(nullptr), data->writable_data(), fInfo.minRowBytes()}; in makeRasterImage()
H A DSkImage_Raster.cpp400 dst.allocPixels(fBitmap.info().makeColorType(targetCT).makeColorSpace(targetCS)); in onMakeColorTypeAndColorSpace()
H A DSkImage_GpuYUVA.cpp59 image->imageInfo().makeColorSpace(std::move(targetCS)), in SkImage_GpuYUVA()
/third_party/skia/src/shaders/gradients/
H A DSkGradientShader.cpp469 src = common.makeColorSpace(fColorSpace), in onProgram()
470 dst = common.makeColorSpace(dstInfo.refColorSpace()); in onProgram()
640 auto dstInfo = info.makeColorSpace(sk_ref_sp(dst)); in SkColor4fXformer()
641 auto srcInfo = info.makeColorSpace(sk_ref_sp(src)); in SkColor4fXformer()
/third_party/skia/tools/skdiff/
H A Dskdiff_utils.cpp54 info = info.makeColorSpace(SkColorSpace::MakeSRGB()); in get_bitmap()

Completed in 19 milliseconds

12