/third_party/flutter/skia/src/core/ |
D | SkColorSpace.cpp | 18 SkColorSpace::SkColorSpace(const float transferFn[7], in SkColorSpace() function in SkColorSpace 39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB() 49 return SkColorSpace::MakeSRGB(); in MakeRGB() 56 return SkColorSpace::MakeSRGBLinear(); in MakeRGB() 61 return sk_sp<SkColorSpace>(new SkColorSpace(tf, toXYZ)); in MakeRGB() 66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make() 68 return new SkColorSpace(&transferFn.g, to_xyz); in Make() 72 SkColorSpace* sk_srgb_singleton() { in sk_srgb_singleton() 73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton() 78 SkColorSpace* sk_srgb_linear_singleton() { in sk_srgb_linear_singleton() [all …]
|
/third_party/skia/src/core/ |
D | SkColorSpace.cpp | 19 SkColorSpace::SkColorSpace(const skcms_TransferFunction& transferFn, in SkColorSpace() function in SkColorSpace 39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB() 49 return SkColorSpace::MakeSRGB(); in MakeRGB() 56 return SkColorSpace::MakeSRGBLinear(); in MakeRGB() 61 return sk_sp<SkColorSpace>(new SkColorSpace(*tf, toXYZ)); in MakeRGB() 66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make() 68 return new SkColorSpace(transferFn, to_xyz); in Make() 72 SkColorSpace* sk_srgb_singleton() { in sk_srgb_singleton() 73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton() 78 SkColorSpace* sk_srgb_linear_singleton() { in sk_srgb_linear_singleton() [all …]
|
/third_party/skia/tests/ |
D | ColorSpaceTest.cpp | 30 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space() 96 static void test_serialize(skiatest::Reporter* r, sk_sp<SkColorSpace> space, bool isNamed) { in test_serialize() 103 sk_sp<SkColorSpace> newSpace1 = SkColorSpace::Deserialize(data1->data(), data1->size()); in test_serialize() 104 sk_sp<SkColorSpace> newSpace2 = SkColorSpace::Deserialize(data2->data(), data2->size()); in test_serialize() 110 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace1.get())); in test_serialize() 111 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace2.get())); in test_serialize() 116 test_serialize(r, SkColorSpace::MakeSRGB(), true); in DEF_TEST() 117 test_serialize(r, SkColorSpace::MakeSRGBLinear(), true); in DEF_TEST() 125 sk_sp<SkColorSpace> space = SkColorSpace::Make(profile); in DEF_TEST() 146 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST() [all …]
|
D | NdkDecodeTest.cpp | 77 for (sk_sp<SkColorSpace> cs : { in DEF_TEST() 78 sk_sp<SkColorSpace>(nullptr), in DEF_TEST() 79 SkColorSpace::MakeSRGB(), in DEF_TEST() 80 SkColorSpace::MakeSRGBLinear(), in DEF_TEST() 81 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), in DEF_TEST() 82 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kRec2020), in DEF_TEST() 83 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), in DEF_TEST() 84 SkColorSpace::MakeRGB(SkNamedTransferFn::k2Dot2, SkNamedGamut::kAdobeRGB), in DEF_TEST() 85 SkColorSpace::MakeRGB(k2Dot6, kDCIP3), in DEF_TEST() 101 if (!cs) cs = SkColorSpace::MakeSRGB(); in DEF_TEST() [all …]
|
D | NdkEncodeTest.cpp | 190 auto info = SkImageInfo::Make(7, 13, ct, kOpaque_SkAlphaType, SkColorSpace::MakeSRGB()); in DEF_TEST() 258 static bool nearly_equal(SkColorSpace* a, SkColorSpace* b) { in nearly_equal() 268 sk_sp<SkColorSpace> cs; in DEF_TEST() 271 { sk_sp<SkColorSpace>(nullptr), "null" }, in DEF_TEST() 272 { SkColorSpace::MakeSRGB(), "srgb" }, in DEF_TEST() 273 { SkColorSpace::MakeSRGBLinear(), "srgb-linear"}, in DEF_TEST() 274 { SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), "bt709" }, in DEF_TEST() 275 { SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kRec2020), "rec2020" }, in DEF_TEST() 276 { SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), "p3" }, in DEF_TEST() 277 { SkColorSpace::MakeRGB(SkNamedTransferFn::k2Dot2, SkNamedGamut::kAdobeRGB), "adobeRGB"}, in DEF_TEST() [all …]
|
/third_party/flutter/skia/tests/ |
D | ColorSpaceTest.cpp | 30 static void test_space(skiatest::Reporter* r, SkColorSpace* space, in test_space() 96 static void test_serialize(skiatest::Reporter* r, sk_sp<SkColorSpace> space, bool isNamed) { in test_serialize() 103 sk_sp<SkColorSpace> newSpace1 = SkColorSpace::Deserialize(data1->data(), data1->size()); in test_serialize() 104 sk_sp<SkColorSpace> newSpace2 = SkColorSpace::Deserialize(data2->data(), data2->size()); in test_serialize() 110 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace1.get())); in test_serialize() 111 REPORTER_ASSERT(r, SkColorSpace::Equals(space.get(), newSpace2.get())); in test_serialize() 116 test_serialize(r, SkColorSpace::MakeSRGB(), true); in DEF_TEST() 117 test_serialize(r, SkColorSpace::MakeSRGBLinear(), true); in DEF_TEST() 125 sk_sp<SkColorSpace> space = SkColorSpace::Make(profile); in DEF_TEST() 146 test_serialize(r, SkColorSpace::MakeRGB(fn, toXYZ), false); in DEF_TEST() [all …]
|
/third_party/flutter/skia/include/core/ |
D | SkColorSpace.h | 98 class SK_API SkColorSpace : public SkNVRefCnt<SkColorSpace> { 103 static sk_sp<SkColorSpace> MakeSRGB(); 108 static sk_sp<SkColorSpace> MakeSRGBLinear(); 113 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn, 119 static sk_sp<SkColorSpace> Make(const skcms_ICCProfile&); 163 sk_sp<SkColorSpace> makeLinearGamma() const; 170 sk_sp<SkColorSpace> makeSRGBGamma() const; 180 sk_sp<SkColorSpace> makeColorSpin() const; 208 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); 214 static bool Equals(const SkColorSpace*, const SkColorSpace*); [all …]
|
D | SkImage.h | 280 sk_sp<SkColorSpace> colorSpace) { in MakeFromTexture() 315 sk_sp<SkColorSpace> colorSpace, 349 bool buildMips, SkColorSpace*, 381 sk_sp<SkColorSpace> colorSpace = nullptr); 406 sk_sp<SkColorSpace> imageColorSpace = nullptr); 434 sk_sp<SkColorSpace> imageColorSpace = nullptr); 459 sk_sp<SkColorSpace> imageColorSpace = nullptr); 491 sk_sp<SkColorSpace> imageColorSpace = nullptr); 498 sk_sp<SkColorSpace> imageColorSpace = nullptr); 505 const GrBackendTexture& backendTexture, sk_sp<SkColorSpace> imageColorSpace = nullptr); [all …]
|
/third_party/skia/include/core/ |
D | SkColorSpace.h | 104 class SK_API SkColorSpace : public SkNVRefCnt<SkColorSpace> { 109 static sk_sp<SkColorSpace> MakeSRGB(); 114 static sk_sp<SkColorSpace> MakeSRGBLinear(); 119 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn, 125 static sk_sp<SkColorSpace> Make(const skcms_ICCProfile&); 166 sk_sp<SkColorSpace> makeLinearGamma() const; 173 sk_sp<SkColorSpace> makeSRGBGamma() const; 183 sk_sp<SkColorSpace> makeColorSpin() const; 211 static sk_sp<SkColorSpace> Deserialize(const void* data, size_t length); 217 static bool Equals(const SkColorSpace*, const SkColorSpace*); [all …]
|
D | SkImageInfo.h | 197 SkColorInfo(SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in SkColorInfo() 206 SkColorSpace* colorSpace() const { return fColorSpace.get(); } in colorSpace() 207 sk_sp<SkColorSpace> refColorSpace() const { return fColorSpace; } in refColorSpace() 221 SkColorSpace::Equals(fColorSpace.get(), other.fColorSpace.get()); 247 SkColorInfo makeColorSpace(sk_sp<SkColorSpace> cs) const { in makeColorSpace() 270 sk_sp<SkColorSpace> fColorSpace; 310 sk_sp<SkColorSpace> cs = nullptr) { 314 sk_sp<SkColorSpace> cs = nullptr) { 351 sk_sp<SkColorSpace> cs = nullptr) { 383 static SkImageInfo MakeN32Premul(int width, int height, sk_sp<SkColorSpace> cs = nullptr) { [all …]
|
/third_party/skia/gm/ |
D | readpixels.cpp | 72 SkColorSpace::MakeSRGB()); in make_picture_image() 75 static sk_sp<SkColorSpace> make_parametric_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_parametric_transfer_fn() 79 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn() 82 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut() 96 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut() 111 sk_sp<SkColorSpace> dstColorSpace, SkImage::CachingHint hint) { in draw_image() 121 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in draw_image() 149 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw() 151 SkColorSpace::MakeSRGB(), in onDraw() 155 for (const sk_sp<SkColorSpace>& dstColorSpace : colorSpaces) { in onDraw() [all …]
|
D | makecolorspace.cpp | 35 sk_sp<SkImage> orig, sk_sp<SkColorSpace> colorSpace, GrDirectContext* direct) { in make_color_space() 40 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space() 42 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space() 48 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, 50 sk_sp<SkColorSpace> wideGamutLinear = wideGamut->makeLinearGamma(); 85 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); 142 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); 143 sk_sp<SkColorSpace> spin = srgb->makeColorSpin();
|
/third_party/flutter/skia/gm/ |
D | readpixels.cpp | 77 SkColorSpace::MakeSRGB()); in make_picture_image() 80 static sk_sp<SkColorSpace> make_parametric_transfer_fn(const SkColorSpacePrimaries& primaries) { in make_parametric_transfer_fn() 84 return SkColorSpace::MakeRGB(fn, toXYZD50); in make_parametric_transfer_fn() 87 static sk_sp<SkColorSpace> make_wide_gamut() { in make_wide_gamut() 101 static sk_sp<SkColorSpace> make_small_gamut() { in make_small_gamut() 115 SkAlphaType dstAlphaType, sk_sp<SkColorSpace> dstColorSpace, in draw_image() 126 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in draw_image() 154 const sk_sp<SkColorSpace> colorSpaces[] = { in onDraw() 156 SkColorSpace::MakeSRGB(), in onDraw() 160 for (sk_sp<SkColorSpace> dstColorSpace : colorSpaces) { in onDraw() [all …]
|
D | makecolorspace.cpp | 37 sk_sp<SkImage> make_color_space(sk_sp<SkImage> orig, sk_sp<SkColorSpace> colorSpace) { in make_color_space() 42 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space() 44 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space() 50 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, 52 sk_sp<SkColorSpace> wideGamutLinear = wideGamut->makeLinearGamma(); 86 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); 142 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); 143 sk_sp<SkColorSpace> spin = srgb->makeColorSpin();
|
/third_party/flutter/skia/src/gpu/ |
D | GrColorSpaceXform.h | 15 class SkColorSpace; variable 24 static sk_sp<GrColorSpaceXform> Make(SkColorSpace* src, SkAlphaType srcAT, 25 SkColorSpace* dst, SkAlphaType dstAT); 53 static std::unique_ptr<GrFragmentProcessor> Make(SkColorSpace* src, SkAlphaType srcAT, 54 SkColorSpace* dst, SkAlphaType dstAT); 61 SkColorSpace* src, SkAlphaType srcAT, 62 SkColorSpace* dst);
|
/third_party/flutter/skia/docs/examples/ |
D | Image_makeColorSpace.cpp | 8 sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB( 9 SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut); 10 sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();
|
D | Image_colorSpace.cpp | 12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma, 13 SkColorSpace::kSRGB_RenderTargetGamma } ) { 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
|
D | Image_refColorSpace.cpp | 12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma, 13 SkColorSpace::kSRGB_RenderTargetGamma } ) { 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
|
/third_party/skia/docs/examples/ |
D | Image_makeColorSpace.cpp | 8 sk_sp<SkColorSpace> normalColorSpace = SkColorSpace::MakeRGB( 9 SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut); 10 sk_sp<SkColorSpace> wackyColorSpace = normalColorSpace->makeColorSpin();
|
D | Image_colorSpace.cpp | 12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma, 13 SkColorSpace::kSRGB_RenderTargetGamma } ) { 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
|
D | Image_refColorSpace.cpp | 12 for (auto gamma : { SkColorSpace::kLinear_RenderTargetGamma, 13 SkColorSpace::kSRGB_RenderTargetGamma } ) { 15 sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeRGB(gamma, SkColorSpace::kSRGB_Gamut);
|
/third_party/flutter/skia/src/image/ |
D | SkImage_GpuYUVA.h | 29 GrSurfaceOrigin, sk_sp<SkColorSpace>); 42 SkColorType, sk_sp<SkColorSpace>) const final; 44 sk_sp<SkImage> onReinterpretColorSpace(sk_sp<SkColorSpace>) const final; 72 sk_sp<SkColorSpace> imageColorSpace, 80 SkImage_GpuYUVA(const SkImage_GpuYUVA* image, sk_sp<SkColorSpace>); 92 const sk_sp<SkColorSpace> fFromColorSpace; 96 mutable sk_sp<SkColorSpace> fOnMakeColorSpaceTarget;
|
D | SkImage.cpp | 82 SkColorSpace* SkImage::colorSpace() const { return fInfo.colorSpace(); } in colorSpace() 84 sk_sp<SkColorSpace> SkImage::refColorSpace() const { return fInfo.refColorSpace(); } in refColorSpace() 253 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() 330 sk_sp<SkImage> SkImage::makeColorSpace(sk_sp<SkColorSpace> target) const { in makeColorSpace() 338 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace() 342 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace() 356 sk_sp<SkColorSpace> targetColorSpace) const { in makeColorTypeAndColorSpace() 362 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace() 367 (SkColorSpace::Equals(colorSpace, targetColorSpace.get()) || this->isAlphaOnly())) { in makeColorTypeAndColorSpace() 380 sk_sp<SkImage> SkImage::reinterpretColorSpace(sk_sp<SkColorSpace> target) const { in reinterpretColorSpace() [all …]
|
/third_party/skia/src/image/ |
D | SkImage_GpuYUVA.h | 29 sk_sp<SkColorSpace>); 39 sk_sp<SkImage> onMakeColorTypeAndColorSpace(SkColorType, sk_sp<SkColorSpace>, 42 sk_sp<SkImage> onReinterpretColorSpace(sk_sp<SkColorSpace>) const final; 50 SkImage_GpuYUVA(sk_sp<GrImageContext>, const SkImage_GpuYUVA* image, sk_sp<SkColorSpace>); 68 const sk_sp<SkColorSpace> fFromColorSpace; 72 mutable sk_sp<SkColorSpace> fOnMakeColorSpaceTarget;
|
/third_party/skia/bench/ |
D | WritePixelsBench.cpp | 19 WritePixelsBench(SkColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs) in WritePixelsBench() 51 sk_sp<SkColorSpace> fCS; 61 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma… 62 DEF_BENCH(return new WritePixelsBench(kRGBA_8888_SkColorType, kUnpremul_SkAlphaType, SkColorSpace::… 66 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kPremul_SkAlphaType, SkColorSpace::Ma… 67 DEF_BENCH(return new WritePixelsBench(kBGRA_8888_SkColorType, kUnpremul_SkAlphaType, SkColorSpace::…
|