/external/skia/include/effects/ |
D | SkGradientShader.h | 93 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 97 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 99 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear() 139 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 143 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument 145 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, in MakeRadial() 177 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 183 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() argument 186 std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeTwoPointConical() 238 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, [all …]
|
/external/skqp/include/effects/ |
D | SkGradientShader.h | 93 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 97 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 99 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear() 139 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, 143 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument 145 return MakeRadial(center, radius, colors, std::move(colorSpace), pos, count, mode, in MakeRadial() 177 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], 183 sk_sp<SkColorSpace> colorSpace, const SkScalar pos[], in MakeTwoPointConical() argument 186 std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeTwoPointConical() 238 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, [all …]
|
/external/skia/src/gpu/ |
D | GrRecordingContext.cpp | 150 sk_sp<SkColorSpace> colorSpace, in makeWrappedSurfaceContext() argument 156 std::move(colorSpace), props); in makeWrappedSurfaceContext() 160 return this->drawingManager()->makeTextureContext(std::move(proxy), std::move(colorSpace)); in makeWrappedSurfaceContext() 171 sk_sp<SkColorSpace> colorSpace, in makeDeferredSurfaceContext() argument 185 std::move(colorSpace), in makeDeferredSurfaceContext() 199 sk_sp<SkColorSpace> colorSpace, in makeDeferredRenderTargetContext() argument 230 drawingManager->makeRenderTargetContext(std::move(rtp), std::move(colorSpace), in makeDeferredRenderTargetContext() 272 sk_sp<SkColorSpace> colorSpace, in makeDeferredRenderTargetContextWithFallback() argument 294 std::move(colorSpace), sampleCnt, mipMapped, in makeDeferredRenderTargetContextWithFallback() 317 sk_sp<SkColorSpace> colorSpace, in makeWrappedSurfaceContext() argument [all …]
|
D | GrContextPriv.cpp | 52 sk_sp<SkColorSpace> colorSpace, in makeWrappedSurfaceContext() argument 54 return fContext->makeWrappedSurfaceContext(std::move(proxy), std::move(colorSpace), props); in makeWrappedSurfaceContext() 64 sk_sp<SkColorSpace> colorSpace, in makeDeferredSurfaceContext() argument 67 isDstBudgeted, std::move(colorSpace), props); in makeDeferredSurfaceContext() 75 sk_sp<SkColorSpace> colorSpace, in makeDeferredRenderTargetContext() argument 82 std::move(colorSpace), sampleCnt, mipMapped, in makeDeferredRenderTargetContext() 91 sk_sp<SkColorSpace> colorSpace, in makeDeferredRenderTargetContextWithFallback() argument 98 std::move(colorSpace), sampleCnt, in makeDeferredRenderTargetContextWithFallback() 105 sk_sp<SkColorSpace> colorSpace) { in makeBackendTextureContext() argument 114 return this->drawingManager()->makeTextureContext(std::move(proxy), std::move(colorSpace)); in makeBackendTextureContext() [all …]
|
D | GrContextPriv.h | 90 sk_sp<SkColorSpace> colorSpace = nullptr, 103 sk_sp<SkColorSpace> colorSpace, 121 sk_sp<SkColorSpace> colorSpace, 137 sk_sp<SkColorSpace> colorSpace); 147 sk_sp<SkColorSpace> colorSpace, 155 sk_sp<SkColorSpace> colorSpace, 164 sk_sp<SkColorSpace> colorSpace,
|
D | SkGpuDevice_drawTexture.cpp | 178 SkAlphaType alphaType, SkColorSpace* colorSpace) { in draw_texture() argument 181 GrColorSpaceXform::Make(colorSpace , alphaType, in draw_texture() 182 dstInfo.colorSpace(), kPremul_SkAlphaType); in draw_texture() 249 std::move(proxy), producer->alphaType(), producer->colorSpace()); in draw_texture_producer() 305 fp = GrColorSpaceXformEffect::Make(std::move(fp), producer->colorSpace(), producer->alphaType(), in draw_texture_producer() 306 rtc->colorSpaceInfo().colorSpace()); in draw_texture_producer() 405 SkColorSpace* colorSpace = as_IB(image)->colorSpace(); in drawImageQuad() local 409 dstClip, aa, aaFlags, constraint, std::move(proxy), alphaType, colorSpace); in drawImageQuad() 414 colorSpace, useDecal); in drawImageQuad() 498 set[base].fImage->colorSpace(), set[base].fImage->alphaType(), in tmp_drawImageSetV3() [all …]
|
D | GrSurfaceContext.cpp | 27 sk_sp<SkColorSpace> colorSpace) in GrSurfaceContext() argument 29 , fColorSpaceInfo(std::move(colorSpace), config) { in GrSurfaceContext() 73 colorType, dstInfo.colorSpace(), dstBuffer, in readPixels() 98 colorType, srcInfo.colorSpace(), srcBuffer, in writePixels()
|
/external/skia/src/core/ |
D | SkSpecialImage.cpp | 244 return fBitmap.colorSpace(); in onGetColorSpace() 261 SkColorSpace* colorSpace = nullptr; in onMakeSurface() local 262 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeSurface() 265 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeSurface() 269 sk_ref_sp(colorSpace)); in onMakeSurface() 302 SkColorSpace* colorSpace = nullptr; in onMakeTightSurface() local 303 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeTightSurface() 306 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeTightSurface() 310 sk_ref_sp(colorSpace)); in onMakeTightSurface() 365 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image() argument [all …]
|
D | SkBlitter_Sprite.cpp | 60 SkASSERT(sk_can_use_legacy_blits(src.colorSpace(), dst.colorSpace())); in Supports() 122 if (auto dstCS = fDst.colorSpace()) { in setup() 123 auto srcCS = fSource.colorSpace(); in setup() 188 if (sk_can_use_legacy_blits(source.colorSpace(), dst.colorSpace())) { in ChooseSprite()
|
/external/skqp/src/core/ |
D | SkSpecialImage.cpp | 242 return fBitmap.colorSpace(); in onGetColorSpace() 264 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeSurface() local 266 SkColorSpace* colorSpace = nullptr; in onMakeSurface() 268 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeSurface() 271 sk_ref_sp(colorSpace)); in onMakeSurface() 304 SkColorSpace* colorSpace = outProps.colorSpace(); in onMakeTightSurface() local 306 SkColorSpace* colorSpace = nullptr; in onMakeTightSurface() 308 SkColorType colorType = colorSpace && colorSpace->gammaIsLinear() in onMakeTightSurface() 311 sk_ref_sp(colorSpace)); in onMakeTightSurface() 366 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { in wrap_proxy_in_image() argument [all …]
|
/external/skqp/src/image/ |
D | SkImage.cpp | 87 SkColorSpace* SkImage::colorSpace() const { in colorSpace() function in SkImage 88 return as_IB(this)->onImageInfo().colorSpace(); in colorSpace() 246 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() argument 249 std::move(colorSpace))); in MakeFromPicture() 276 as_IB(this)->onImageInfo().colorSpace()); in makeWithFilter() 312 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace() local 313 if (!colorSpace) { in makeColorSpace() 314 colorSpace = sk_srgb_singleton(); in makeColorSpace() 316 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace() 330 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace() local [all …]
|
D | SkSurface_Gpu.cpp | 251 SkColorSpace::Equals(characterization.colorSpace(), in isCompatible() 252 rtc->colorSpaceInfo().colorSpace()) && in isCompatible() 275 bool SkSurface_Gpu::Valid(const GrCaps* caps, GrPixelConfig config, SkColorSpace* colorSpace) { in Valid() argument 297 if (!SkSurface_Gpu::Valid(context->contextPriv().caps(), c.config(), c.colorSpace())) { in MakeRenderTarget() 423 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendTexture() argument 431 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture() 438 if (!SkSurface_Gpu::Valid(context->contextPriv().caps(), texCopy.config(), colorSpace.get())) { in MakeFromBackendTexture() 447 std::move(colorSpace), in MakeFromBackendTexture() 492 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendRenderTarget() argument 499 if (!validate_backend_render_target(context, rtCopy, &rtCopy.fConfig, colorType, colorSpace)) { in MakeFromBackendRenderTarget() [all …]
|
/external/skia/src/image/ |
D | SkImage.cpp | 87 SkColorSpace* SkImage::colorSpace() const { in colorSpace() function in SkImage 88 return as_IB(this)->onImageInfo().colorSpace(); in colorSpace() 252 BitDepth bitDepth, sk_sp<SkColorSpace> colorSpace) { in MakeFromPicture() argument 255 std::move(colorSpace))); in MakeFromPicture() 286 as_IB(this)->onImageInfo().colorSpace()); in makeWithFilter() 322 SkColorSpace* colorSpace = this->colorSpace(); in makeColorSpace() local 323 if (!colorSpace) { in makeColorSpace() 324 colorSpace = sk_srgb_singleton(); in makeColorSpace() 326 if (SkColorSpace::Equals(colorSpace, target.get()) || this->isAlphaOnly()) { in makeColorSpace() 346 SkColorSpace* colorSpace = this->colorSpace(); in makeColorTypeAndColorSpace() local [all …]
|
D | SkSurface_Gpu.cpp | 264 SkColorSpace::Equals(characterization.colorSpace(), in isCompatible() 265 rtc->colorSpaceInfo().colorSpace()) && in isCompatible() 288 bool SkSurface_Gpu::Valid(const GrCaps* caps, GrPixelConfig config, SkColorSpace* colorSpace) { in Valid() argument 310 if (!SkSurface_Gpu::Valid(context->priv().caps(), c.config(), c.colorSpace())) { in MakeRenderTarget() 438 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendTexture() argument 448 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture() 455 if (!SkSurface_Gpu::Valid(context->priv().caps(), texCopy.config(), colorSpace.get())) { in MakeFromBackendTexture() 464 std::move(colorSpace), in MakeFromBackendTexture() 511 sk_sp<SkColorSpace> colorSpace, in MakeFromBackendRenderTarget() argument 520 if (!validate_backend_render_target(context, rtCopy, &rtCopy.fConfig, colorType, colorSpace)) { in MakeFromBackendRenderTarget() [all …]
|
/external/skqp/src/gpu/ |
D | GrContextPriv.h | 61 sk_sp<SkColorSpace> colorSpace = nullptr, 66 sk_sp<SkColorSpace> colorSpace); 72 sk_sp<SkColorSpace> colorSpace, 78 sk_sp<SkColorSpace> colorSpace, 85 sk_sp<SkColorSpace> colorSpace, 235 sk_sp<SkColorSpace> colorSpace, 252 sk_sp<SkColorSpace> colorSpace,
|
D | GrContext.cpp | 433 !dst->colorSpaceInfo().colorSpace() && in writeSurfacePixels() 520 if (!dst->colorSpaceInfo().colorSpace()) { in writeSurfacePixels() 524 convert = convert || !SkColorSpace::Equals(srcColorSpace, dst->colorSpaceInfo().colorSpace()); in writeSurfacePixels() 627 !src->colorSpaceInfo().colorSpace() && in readSurfacePixels() 712 if (!src->colorSpaceInfo().colorSpace()) { in readSurfacePixels() 716 convert = convert || !SkColorSpace::Equals(dstColorSpace, src->colorSpaceInfo().colorSpace()); in readSurfacePixels() 825 sk_sp<SkColorSpace> colorSpace, in makeWrappedSurfaceContext() argument 831 std::move(colorSpace), props); in makeWrappedSurfaceContext() 835 return this->drawingManager()->makeTextureContext(std::move(proxy), std::move(colorSpace)); in makeWrappedSurfaceContext() 845 sk_sp<SkColorSpace> colorSpace, in makeDeferredSurfaceContext() argument [all …]
|
D | SkGpuDevice_drawTexture.cpp | 103 SkColorSpace* colorSpace, const GrClip& clip, GrRenderTargetContext* rtc) { in draw_texture() argument 116 GrColorSpaceXform::Make(colorSpace , alphaType, in draw_texture() 117 dstInfo.colorSpace(), kPremul_SkAlphaType); in draw_texture() 145 SkColorSpace* colorSpace, SkAlphaType alphaType, in drawPinnedTextureProxy() argument 152 alphaType, colorSpace, this->clip(), fRenderTargetContext.get()); in drawPinnedTextureProxy() 156 colorSpace); in drawPinnedTextureProxy() 176 producer->alphaType(), producer->colorSpace(), this->clip(), in drawTextureProducer() 292 SkColorSpace* rtColorSpace = fRenderTargetContext->colorSpaceInfo().colorSpace(); in drawTextureProducerImpl() 295 fp = GrColorSpaceXformEffect::Make(std::move(fp), producer->colorSpace(), producer->alphaType(), in drawTextureProducerImpl()
|
D | GrSurfaceContext.cpp | 26 sk_sp<SkColorSpace> colorSpace, in GrSurfaceContext() argument 31 , fColorSpaceInfo(std::move(colorSpace), config) in GrSurfaceContext() 56 colorType, dstInfo.colorSpace(), dstBuffer, in readPixels() 75 colorType, srcInfo.colorSpace(), srcBuffer, in writePixels()
|
D | GrImageTextureMaker.cpp | 41 SkColorSpace* GrImageTextureMaker::colorSpace() const { in colorSpace() function in GrImageTextureMaker 42 return fImage->colorSpace(); in colorSpace() 81 SkColorSpace* GrYUVAImageTextureMaker::colorSpace() const { in colorSpace() function in GrYUVAImageTextureMaker 82 return fImage->colorSpace(); in colorSpace()
|
/external/skia/src/shaders/gradients/ |
D | SkGradientShader.cpp | 506 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in desc_init() argument 512 desc->fColorSpace = std::move(colorSpace); in desc_init() 568 int colorCount, sk_sp<SkColorSpace> colorSpace, in make_degenerate_gradient() argument 581 average_gradient_color(colors, pos, colorCount), std::move(colorSpace)); in make_degenerate_gradient() 585 return SkShader::MakeColorShader(colors[colorCount - 1], std::move(colorSpace)); in make_degenerate_gradient() 675 sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 687 return SkShader::MakeColorShader(colors[0], std::move(colorSpace)); in MakeLinear() 698 return make_degenerate_gradient(colors, pos, colorCount, std::move(colorSpace), mode); in MakeLinear() 704 desc_init(&desc, opt.fColors, std::move(colorSpace), opt.fPos, opt.fCount, mode, flags, in MakeLinear() 722 sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument [all …]
|
/external/skqp/src/shaders/gradients/ |
D | SkGradientShader.cpp | 506 const SkColor4f colors[], sk_sp<SkColorSpace> colorSpace, in desc_init() argument 512 desc->fColorSpace = std::move(colorSpace); in desc_init() 568 int colorCount, sk_sp<SkColorSpace> colorSpace, in make_degenerate_gradient() argument 581 average_gradient_color(colors, pos, colorCount), std::move(colorSpace)); in make_degenerate_gradient() 585 return SkShader::MakeColorShader(colors[colorCount - 1], std::move(colorSpace)); in make_degenerate_gradient() 675 sk_sp<SkColorSpace> colorSpace, in MakeLinear() argument 687 return SkShader::MakeColorShader(colors[0], std::move(colorSpace)); in MakeLinear() 698 return make_degenerate_gradient(colors, pos, colorCount, std::move(colorSpace), mode); in MakeLinear() 704 desc_init(&desc, opt.fColors, std::move(colorSpace), opt.fPos, opt.fCount, mode, flags, in MakeLinear() 722 sk_sp<SkColorSpace> colorSpace, in MakeRadial() argument [all …]
|
/external/skqp/include/core/ |
D | SkImage.h | 228 sk_sp<SkColorSpace> colorSpace) { in MakeFromTexture() argument 229 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture() 263 sk_sp<SkColorSpace> colorSpace, 352 sk_sp<SkColorSpace> colorSpace = nullptr); 545 sk_sp<SkColorSpace> colorSpace); 565 sk_sp<SkColorSpace> colorSpace = nullptr, 628 SkColorSpace* colorSpace() const;
|
/external/skqp/src/pdf/ |
D | SkPDFFormXObject.cpp | 17 const char* colorSpace) { in SkPDFMakeFormXObject() argument 33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject() 34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
|
/external/skia/src/pdf/ |
D | SkPDFFormXObject.cpp | 17 const char* colorSpace) { in SkPDFMakeFormXObject() argument 33 if (colorSpace != nullptr) { in SkPDFMakeFormXObject() 34 group->insertName("CS", colorSpace); in SkPDFMakeFormXObject()
|
/external/skia/gm/ |
D | encode-srgb.cpp | 26 sk_sp<SkColorSpace> colorSpace) { in make() argument 50 .makeColorSpace(colorSpace); in make() 122 for (sk_sp<SkColorSpace> colorSpace : colorSpaces) { in onDraw() 123 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
|