/frameworks/native/libs/renderengine/skia/ |
D | ColorSpaces.cpp | 26 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace) { in toSkColorSpace() 56 return SkColorSpace::MakeRGB(SkNamedTransferFn::kLinear, gamut); in toSkColorSpace() 58 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in toSkColorSpace() 60 return SkColorSpace::MakeRGB({2.2f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace() 62 return SkColorSpace::MakeRGB({2.6f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace() 64 return SkColorSpace::MakeRGB({2.8f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}, gamut); in toSkColorSpace() 66 return SkColorSpace::MakeRGB({-2.f, -1.55522297832f, 1.86045365631f, 32 / 2523.0f, in toSkColorSpace() 70 return SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, gamut); in toSkColorSpace() 76 return SkColorSpace::MakeRGB(hlgFn, gamut); in toSkColorSpace() 78 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in toSkColorSpace() [all …]
|
D | ColorSpaces.h | 34 sk_sp<SkColorSpace> toSkColorSpace(ui::Dataspace dataspace);
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 32 sk_sp<SkColorSpace> colorSpace) { in createImageInfo() 68 sk_sp<SkColorSpace> colorSpace) { in ANativeWindowToImageInfo() 73 sk_sp<SkColorSpace> colorSpace) { in BufferDescriptionToImageInfo() 159 android_dataspace ColorSpaceToADataSpace(SkColorSpace* colorSpace, SkColorType colorType) { in ColorSpaceToADataSpace() 222 sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace) { in DataSpaceToColorSpace() 224 return SkColorSpace::MakeSRGB(); in DataSpaceToColorSpace() 231 return SkColorSpace::MakeRGB(k2Dot6, kDCIP3); in DataSpaceToColorSpace() 266 return SkColorSpace::MakeRGB(hlgFn.value(), gamut); in DataSpaceToColorSpace() 272 return SkColorSpace::MakeRGB(SkNamedTransferFn::kLinear, gamut); in DataSpaceToColorSpace() 274 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in DataSpaceToColorSpace() [all …]
|
D | Color.h | 96 sk_sp<SkColorSpace> colorSpace); 99 sk_sp<SkColorSpace> colorSpace); 104 ANDROID_API sk_sp<SkColorSpace> DataSpaceToColorSpace(android_dataspace dataspace); 120 ANDROID_API android_dataspace ColorSpaceToADataSpace(SkColorSpace*, SkColorType);
|
/frameworks/base/libs/hwui/renderthread/ |
D | HardwareBufferRenderParams.h | 40 const SkMatrix& transform, const sk_sp<SkColorSpace>& colorSpace, in HardwareBufferRenderParams() 48 sk_sp<SkColorSpace> getColorSpace() const { return mColorSpace; } in getColorSpace() 63 sk_sp<SkColorSpace> mColorSpace = SkColorSpace::MakeSRGB();
|
D | VulkanSurface.h | 40 sk_sp<SkColorSpace> colorSpace, GrDirectContext* grContext, 49 void setColorSpace(sk_sp<SkColorSpace> colorSpace); 99 sk_sp<SkColorSpace> colorspace; 114 SkColorType colorType, sk_sp<SkColorSpace> colorSpace,
|
/frameworks/base/libs/hwui/hwui/ |
D | ImageDecoder.h | 51 sk_sp<SkColorSpace> getDefaultColorSpace() const; 52 void setOutColorSpace(sk_sp<SkColorSpace> cs); 112 sk_sp<SkColorSpace> mOutColorSpace; 126 sk_sp<SkColorSpace> getOutputColorSpace() const;
|
D | BlurDrawLooper.h | 23 class SkColorSpace; variable 29 static sk_sp<BlurDrawLooper> Make(SkColor4f, SkColorSpace*, float blurSigma, SkPoint offset);
|
D | Bitmap.h | 86 sk_sp<SkColorSpace> colorSpace, 91 sk_sp<SkColorSpace> colorSpace, 103 void setColorSpace(sk_sp<SkColorSpace> colorSpace);
|
D | ImageDecoder.cpp | 48 sk_sp<SkColorSpace> ImageDecoder::getDefaultColorSpace() const { in getDefaultColorSpace() 57 return SkColorSpace::Make(*encodedProfile); in getDefaultColorSpace() 61 return SkColorSpace::MakeSRGB(); in getDefaultColorSpace() 199 void ImageDecoder::setOutColorSpace(sk_sp<SkColorSpace> colorSpace) { in setOutColorSpace() 203 sk_sp<SkColorSpace> ImageDecoder::getOutputColorSpace() const { in getOutputColorSpace()
|
D | BlurDrawLooper.cpp | 37 sk_sp<BlurDrawLooper> BlurDrawLooper::Make(SkColor4f color, SkColorSpace* cs, float blurSigma, in Make()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | SkiaBehaviorTests.cpp | 87 sk_sp<SkColorSpace> sRGB1 = SkColorSpace::MakeSRGB(); in TEST() 88 sk_sp<SkColorSpace> sRGB2 = SkColorSpace::MakeSRGB(); in TEST()
|
D | SkiaCanvasTests.cpp | 57 sk_sp<SkColorSpace> adobe = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, in TEST() 66 SkImageInfo info = adobeInfo.makeColorSpace(SkColorSpace::MakeSRGB()); in TEST()
|
/frameworks/base/libs/hwui/ |
D | DeviceInfo.cpp | 91 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3); in setWideColorDataspace() 94 get()->mWideColorSpace = SkColorSpace::MakeSRGB(); in setWideColorDataspace() 102 get()->mWideColorSpace = SkColorSpace::MakeSRGB(); in setWideColorDataspace()
|
D | DeviceInfo.h | 87 sk_sp<SkColorSpace> getWideColorSpace() const { return mWideColorSpace; } in getWideColorSpace() 112 sk_sp<SkColorSpace> mWideColorSpace = SkColorSpace::MakeSRGB();
|
D | libhwui.map.txt | 56 SkColorSpace::toXYZD50*; 57 SkColorSpace::transferFn*;
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_ColorSpace.cpp | 115 sk_sp<SkColorSpace> GraphicsJNI::getNativeColorSpace(jlong colorSpaceHandle) { in getNativeColorSpace() 117 return sk_ref_sp(reinterpret_cast<SkColorSpace*>(colorSpaceHandle)); in getNativeColorSpace() 120 static void unref_colorSpace(SkColorSpace* cs) { in unref_colorSpace() 140 return reinterpret_cast<jlong>(SkColorSpace::MakeRGB(p, xyzMatrix).release()); in ColorSpace_creator()
|
D | Bitmap.cpp | 94 void setColorSpace(sk_sp<SkColorSpace> colorSpace) { in setColorSpace() 265 auto sRGB = SkColorSpace::MakeSRGB(); in SetPixels() 303 sk_sp<SkColorSpace> colorSpace; in Bitmap_creator() 348 dstInfo = dstInfo.makeColorSpace(SkColorSpace::MakeSRGB()); in bitmapCopyTo() 510 const sk_sp<SkColorSpace>& colorSpace) { in bitmapErase() 522 bitmapErase(skBitmap, SkColor4f::FromColor(color), SkColorSpace::MakeSRGB()); in Bitmap_erase() 532 sk_sp<SkColorSpace> cs = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in Bitmap_eraseLong() 729 sk_sp<SkColorSpace> colorSpace; in Bitmap_createFromParcel() 739 colorSpace = SkColorSpace::Deserialize(colorSpaceData->data(), colorSpaceData->size()); in Bitmap_createFromParcel() 841 SkColorSpace* colorSpace = bitmap.colorSpace(); in Bitmap_writeToParcel() [all …]
|
D | BitmapRegionDecoder.cpp | 78 sk_sp<SkColorSpace> computeOutputColorSpace(SkColorType outputColorType, in computeOutputColorSpace() 79 sk_sp<SkColorSpace> prefColorSpace = nullptr) { in computeOutputColorSpace() 85 sk_sp<SkColorSpace> prefColorSpace) { in decodeRegion() 93 sk_sp<SkColorSpace> decodeColorSpace = in decodeGainmapRegion() 233 sk_sp<SkColorSpace> colorSpace = GraphicsJNI::getNativeColorSpace(colorSpaceHandle); in nativeDecodeRegion() 289 sk_sp<SkColorSpace> decodeColorSpace = brd->computeOutputColorSpace( in nativeDecodeRegion()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.h | 49 sk_sp<SkColorSpace> getSurfaceColorSpace() override { return mSurfaceColorSpace; } in getSurfaceColorSpace() 73 sk_sp<SkColorSpace> mBufferColorSpace = nullptr; 77 sk_sp<SkColorSpace> mSurfaceColorSpace;
|
D | SkiaPipeline.cpp | 495 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setSurfaceColorProperties() 504 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties() 508 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setSurfaceColorProperties() 511 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties() 517 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setSurfaceColorProperties() 533 mSurfaceColorSpace = SkColorSpace::MakeSRGB(); in setTargetSdrHdrRatio() 535 mSurfaceColorSpace = SkColorSpace::MakeRGB( in setTargetSdrHdrRatio()
|
/frameworks/base/libs/hwui/effects/ |
D | GainmapRenderer.cpp | 43 float getTargetHdrSdrRatio(const SkColorSpace* destColorspace) { in getTargetHdrSdrRatio() 182 sk_sp<SkColorSpace> baseColorSpace = in setupChildren() 183 baseImage->colorSpace() ? baseImage->refColorSpace() : SkColorSpace::MakeSRGB(); in setupChildren() 186 sk_sp<SkColorSpace> gainmapMathColorSpace = baseColorSpace->makeLinearGamma(); in setupChildren() 209 gainmapMathColorSpace, SkColorSpace::MakeSRGBLinear()); in setupChildren()
|
D | GainmapRenderer.h | 28 float getTargetHdrSdrRatio(const SkColorSpace* destColorspace);
|
/frameworks/base/libs/hwui/private/hwui/ |
D | DrawGlInfo.h | 47 const SkColorSpace* color_space_ptr;
|
D | DrawVkInfo.h | 64 const SkColorSpace* color_space_ptr;
|