/external/skqp/src/gpu/ |
D | SkGr.cpp | 260 SkPMColor4f SkColorToPMColor4f(SkColor c, const GrColorSpaceInfo& colorSpaceInfo) { in SkColorToPMColor4f() argument 262 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in SkColorToPMColor4f() 268 SkColor4f SkColor4fPrepForDst(SkColor4f color, const GrColorSpaceInfo& colorSpaceInfo, in SkColor4fPrepForDst() argument 270 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in SkColor4fPrepForDst() 273 if (!GrPixelConfigIsFloatingPoint(colorSpaceInfo.config()) || in SkColor4fPrepForDst() 373 const GrColorSpaceInfo& colorSpaceInfo, in skpaint_to_grpaint_impl() argument 380 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo, in skpaint_to_grpaint_impl() 383 const GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo); in skpaint_to_grpaint_impl() 472 colorFilter->filterColor4f(origColor, colorSpaceInfo.colorSpace()).premul()); in skpaint_to_grpaint_impl() 474 auto cfFP = colorFilter->asFragmentProcessor(context, colorSpaceInfo); in skpaint_to_grpaint_impl() [all …]
|
D | SkGpuDevice.cpp | 124 if (!GrPixelConfigToColorType(context->colorSpaceInfo().config(), &colorType)) { in make_info() 128 context->colorSpaceInfo().refColorSpace()); in make_info() 189 if (!GrPixelConfigToColorType(fRenderTargetContext->colorSpaceInfo().config(), &colorType)) { in filterTexture() 193 colorType, fRenderTargetContext->colorSpaceInfo().colorSpace()); in filterTexture() 287 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPaint() 320 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPoints() 365 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPoints() 396 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawRect() 411 fRenderTargetContext->colorSpaceInfo(), in drawEdgeAARect() 452 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawRRect() [all …]
|
D | GrContext.cpp | 433 !dst->colorSpaceInfo().colorSpace() && in writeSurfacePixels() 475 tempProxy, dst->colorSpaceInfo().refColorSpace()); in writeSurfacePixels() 520 if (!dst->colorSpaceInfo().colorSpace()) { in writeSurfacePixels() 524 convert = convert || !SkColorSpace::Equals(srcColorSpace, dst->colorSpaceInfo().colorSpace()); in writeSurfacePixels() 540 dst->colorSpaceInfo().refColorSpace()); in writeSurfacePixels() 627 !src->colorSpaceInfo().colorSpace() && in readSurfacePixels() 671 std::move(tempProxy), src->colorSpaceInfo().refColorSpace()); in readSurfacePixels() 712 if (!src->colorSpaceInfo().colorSpace()) { in readSurfacePixels() 716 convert = convert || !SkColorSpace::Equals(dstColorSpace, src->colorSpaceInfo().colorSpace()); in readSurfacePixels() 730 src->colorSpaceInfo().refColorSpace()); in readSurfacePixels()
|
D | SkGpuDevice_drawTexture.cpp | 114 const GrColorSpaceInfo& dstInfo(rtc->colorSpaceInfo()); in draw_texture() 292 SkColorSpace* rtColorSpace = fRenderTargetContext->colorSpaceInfo().colorSpace(); in drawTextureProducerImpl() 302 if (!SkPaintToGrPaintWithTexture(fContext.get(), fRenderTargetContext->colorSpaceInfo(), paint, in drawTextureProducerImpl()
|
D | GrSurfaceContext.h | 36 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function
|
D | GrRenderTargetContext.cpp | 65 renderTargetContext->colorSpaceInfo()) in TextTarget() 82 const GrColorSpaceInfo& colorSpaceInfo = fRenderTargetContext->colorSpaceInfo(); in makeGrPaint() local 84 SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in makeGrPaint() 86 SkPaintToGrPaint(context, colorSpaceInfo, skPaint, viewMatrix, grPaint); in makeGrPaint() 1057 this->colorSpaceInfo().refColorSpaceXformFromSRGB(), overridePrimType); in drawVertices() 1802 fRenderTargetContext->colorSpaceInfo().isLinearlyBlended()}; in drawAndStencilPath() 1903 this->colorSpaceInfo().isLinearlyBlended()}; in drawShapeUsingPathRenderer() 2073 sk_ref_sp(this->colorSpaceInfo().colorSpace())); in setupDstProxy()
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 262 SkPMColor4f SkColorToPMColor4f(SkColor c, const GrColorSpaceInfo& colorSpaceInfo) { in SkColorToPMColor4f() argument 264 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in SkColorToPMColor4f() 270 SkColor4f SkColor4fPrepForDst(SkColor4f color, const GrColorSpaceInfo& colorSpaceInfo, in SkColor4fPrepForDst() argument 272 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in SkColor4fPrepForDst() 276 if (!GrPixelConfigIsFloatingPoint(colorSpaceInfo.config()) || in SkColor4fPrepForDst() 380 const GrColorSpaceInfo& colorSpaceInfo, in skpaint_to_grpaint_impl() argument 387 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo, in skpaint_to_grpaint_impl() 390 GrFPArgs fpArgs(context, &viewM, skPaint.getFilterQuality(), &colorSpaceInfo); in skpaint_to_grpaint_impl() 480 colorFilter->filterColor4f(origColor, colorSpaceInfo.colorSpace()).premul()); in skpaint_to_grpaint_impl() 482 auto cfFP = colorFilter->asFragmentProcessor(context, colorSpaceInfo); in skpaint_to_grpaint_impl() [all …]
|
D | SkGpuDevice.cpp | 119 if (!GrPixelConfigToColorType(context->colorSpaceInfo().config(), &colorType)) { in make_info() 123 context->colorSpaceInfo().refColorSpace()); in make_info() 184 if (!GrPixelConfigToColorType(fRenderTargetContext->colorSpaceInfo().config(), &colorType)) { in filterTexture() 188 colorType, fRenderTargetContext->colorSpaceInfo().colorSpace()); in filterTexture() 282 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPaint() 315 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPoints() 360 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawPoints() 391 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawRect() 416 fRenderTargetContext->colorSpaceInfo(), in tmp_drawEdgeAAQuad() 466 if (!SkPaintToGrPaint(this->context(), fRenderTargetContext->colorSpaceInfo(), paint, in drawRRect() [all …]
|
D | GrContextPriv.cpp | 341 !src->colorSpaceInfo().colorSpace() && in readSurfacePixels() 385 std::move(tempProxy), src->colorSpaceInfo().refColorSpace()); in readSurfacePixels() 426 if (!src->colorSpaceInfo().colorSpace()) { in readSurfacePixels() 430 convert = convert || !SkColorSpace::Equals(dstColorSpace, src->colorSpaceInfo().colorSpace()); in readSurfacePixels() 444 src->colorSpaceInfo().refColorSpace()); in readSurfacePixels() 528 !dst->colorSpaceInfo().colorSpace() && in writeSurfacePixels() 570 tempProxy, dst->colorSpaceInfo().refColorSpace()); in writeSurfacePixels() 615 if (!dst->colorSpaceInfo().colorSpace()) { in writeSurfacePixels() 619 convert = convert || !SkColorSpace::Equals(srcColorSpace, dst->colorSpaceInfo().colorSpace()); in writeSurfacePixels() 635 dst->colorSpaceInfo().refColorSpace()); in writeSurfacePixels()
|
D | SkGpuDevice_drawTexture.cpp | 179 const GrColorSpaceInfo& dstInfo(rtc->colorSpaceInfo()); in draw_texture() 306 rtc->colorSpaceInfo().colorSpace()); in draw_texture_producer() 312 if (!SkPaintToGrPaintWithTexture(context, rtc->colorSpaceInfo(), paint, ctm, in draw_texture_producer() 499 fRenderTargetContext->colorSpaceInfo().colorSpace(), kPremul_SkAlphaType); in tmp_drawImageSetV3()
|
D | GrSurfaceContext.h | 36 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function
|
D | GrRenderTargetContext.cpp | 70 renderTargetContext->colorSpaceInfo()) in TextTarget() 87 const GrColorSpaceInfo& colorSpaceInfo = fRenderTargetContext->colorSpaceInfo(); in makeGrPaint() local 89 SkPaintToGrPaintWithPrimitiveColor(context, colorSpaceInfo, skPaint, grPaint); in makeGrPaint() 91 SkPaintToGrPaint(context, colorSpaceInfo, skPaint, viewMatrix, grPaint); in makeGrPaint() 1148 this->colorSpaceInfo().refColorSpaceXformFromSRGB(), overridePrimType); in drawVertices() 1910 fRenderTargetContext->colorSpaceInfo().isLinearlyBlended()}; in drawAndStencilPath() 2011 this->colorSpaceInfo().isLinearlyBlended()}; in drawShapeUsingPathRenderer() 2083 GrClampType clampType = GrPixelConfigClampType(this->colorSpaceInfo().config()); in addDrawOp() 2183 sk_ref_sp(this->colorSpaceInfo().colorSpace())); in setupDstProxy()
|
/external/skia/src/gpu/vk/ |
D | GrVkSecondaryCBDrawContext.cpp | 93 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &ct)) { in characterize() 98 rtc->colorSpaceInfo().refColorSpace()); in characterize() 101 rtc->colorSpaceInfo().config(), rtc->fsaaType(), rtc->numStencilSamples(), in characterize() 142 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &rtcColorType)) { in isCompatible() 149 characterization.config() == rtc->colorSpaceInfo().config() && in isCompatible() 156 rtc->colorSpaceInfo().colorSpace()) && in isCompatible()
|
/external/skqp/src/gpu/text/ |
D | GrTextTarget.h | 30 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function 45 GrTextTarget(int width, int height, const GrColorSpaceInfo& colorSpaceInfo) in GrTextTarget() argument 46 : fWidth(width), fHeight(height), fColorSpaceInfo(colorSpaceInfo) {} in GrTextTarget()
|
D | GrTextContext.cpp | 74 const GrColorSpaceInfo& colorSpaceInfo) { in ComputeScalerContextFlags() argument 78 if (colorSpaceInfo.isLinearlyBlended()) { in ComputeScalerContextFlags()
|
/external/skia/src/gpu/text/ |
D | GrTextTarget.h | 31 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function 46 GrTextTarget(int width, int height, const GrColorSpaceInfo& colorSpaceInfo) in GrTextTarget() argument 47 : fWidth(width), fHeight(height), fColorSpaceInfo(colorSpaceInfo) {} in GrTextTarget()
|
D | GrTextContext.cpp | 74 const GrColorSpaceInfo& colorSpaceInfo) { in ComputeScalerContextFlags() argument 78 if (colorSpaceInfo.isLinearlyBlended()) { in ComputeScalerContextFlags()
|
/external/skqp/src/image/ |
D | SkSurface_Gpu.cpp | 178 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &ct)) { in onCharacterize() 188 rtc->colorSpaceInfo().refColorSpace()); in onCharacterize() 191 rtc->colorSpaceInfo().config(), rtc->fsaaType(), rtc->numStencilSamples(), in onCharacterize() 238 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &rtcColorType)) { in isCompatible() 245 characterization.config() == rtc->colorSpaceInfo().config() && in isCompatible() 252 rtc->colorSpaceInfo().colorSpace()) && in isCompatible()
|
/external/skqp/src/core/ |
D | SkGlyphRunPainter.cpp | 85 const GrColorSpaceInfo& colorSpaceInfo) { in compute_scaler_context_flags() argument 89 if (colorSpaceInfo.isLinearlyBlended()) { in compute_scaler_context_flags() 101 : SkGlyphRunListPainter{rtc.surfaceProps(), rtc.colorSpaceInfo()} {} in SkGlyphRunListPainter() 494 SkPMColor4f generate_filtered_color(const SkPaint& paint, const GrColorSpaceInfo& colorSpaceInfo) { in generate_filtered_color() argument 496 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in generate_filtered_color() 501 colorSpaceInfo.colorSpace()); in generate_filtered_color() 515 SkPMColor4f filteredColor = generate_filtered_color(listPaint, target->colorSpaceInfo()); in drawGlyphRunList() 516 GrColor color = generate_filtered_color(listPaint, target->colorSpaceInfo()).toBytes_RGBA(); in drawGlyphRunList() 529 SkScalerContextFlags scalerContextFlags = ComputeScalerContextFlags(target->colorSpaceInfo()); in drawGlyphRunList() 891 SkPMColor4f filteredColor = generate_filtered_color(skPaint, rtc->colorSpaceInfo()); in createOp_TestingOnly() [all …]
|
D | SkSpecialSurface.cpp | 155 fRenderTargetContext->colorSpaceInfo().refColorSpace(), in onMakeImageSnapshot()
|
/external/skia/src/image/ |
D | SkSurface_Gpu.cpp | 187 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &ct)) { in onCharacterize() 197 rtc->colorSpaceInfo().refColorSpace()); in onCharacterize() 200 rtc->colorSpaceInfo().config(), rtc->fsaaType(), rtc->numStencilSamples(), in onCharacterize() 251 if (!GrPixelConfigToColorType(rtc->colorSpaceInfo().config(), &rtcColorType)) { in isCompatible() 258 characterization.config() == rtc->colorSpaceInfo().config() && in isCompatible() 265 rtc->colorSpaceInfo().colorSpace()) && in isCompatible()
|
/external/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 115 : SkGlyphRunListPainter{rtc.surfaceProps(), rtc.colorSpaceInfo()} {} in SkGlyphRunListPainter() 617 SkPMColor4f generate_filtered_color(const SkPaint& paint, const GrColorSpaceInfo& colorSpaceInfo) { in generate_filtered_color() argument 619 if (auto* xform = colorSpaceInfo.colorSpaceXformFromSRGB()) { in generate_filtered_color() 624 colorSpaceInfo.colorSpace()); in generate_filtered_color() 638 SkPMColor4f filteredColor = generate_filtered_color(listPaint, target->colorSpaceInfo()); in drawGlyphRunList() 639 GrColor color = generate_filtered_color(listPaint, target->colorSpaceInfo()).toBytes_RGBA(); in drawGlyphRunList() 652 SkScalerContextFlags scalerContextFlags = ComputeScalerContextFlags(target->colorSpaceInfo()); in drawGlyphRunList() 963 SkPMColor4f filteredColor = generate_filtered_color(skPaint, rtc->colorSpaceInfo()); in createOp_TestingOnly() 976 ComputeScalerContextFlags(rtc->colorSpaceInfo()); in createOp_TestingOnly()
|
D | SkSpecialSurface.cpp | 159 fRenderTargetContext->colorSpaceInfo().refColorSpace(), in onMakeImageSnapshot()
|
/external/skia/gm/ |
D | constcolorprocessor.cpp | 91 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()
|
/external/skqp/gm/ |
D | constcolorprocessor.cpp | 102 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()
|