/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()
|
D | GrBlurUtils.cpp | 455 if (!SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), paint, viewMatrix, in drawShapeWithMaskFilter()
|
/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()
|
D | GrTextBlob.cpp | 180 target->colorSpaceInfo().isLinearlyBlended(), in makeOp()
|
/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()
|
D | SkImage_Gpu.cpp | 213 renderTargetContext->colorSpaceInfo().refColorSpace()); in ConvertYUVATexturesToRGB()
|
/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()
|
D | SkImageFilter.cpp | 272 renderTargetContext->colorSpaceInfo().refColorSpace()); in DrawWithFP()
|
/external/skqp/gm/ |
D | constcolorprocessor.cpp | 102 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()
|
D | drawquadset.cpp | 66 SkPaintToGrPaint(rtc->surfPriv().getContext(), rtc->colorSpaceInfo(), paint, view, in draw_gradient_tiles()
|
/external/skqp/tests/ |
D | TessellatingPathRendererTests.cpp | 631 GrColorSpaceInfo colorSpaceInfo(nullptr, kRGBA_8888_GrPixelConfig); in create_linear_gradient_processor() local 632 GrFPArgs args(ctx, &SkMatrix::I(), SkFilterQuality::kLow_SkFilterQuality, &colorSpaceInfo); in create_linear_gradient_processor()
|
/external/skqp/src/effects/imagefilters/ |
D | SkXfermodeImageFilter.cpp | 345 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()
|
D | SkArithmeticImageFilter.cpp | 386 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()
|
D | SkDisplacementMapEffect.cpp | 324 renderTargetContext->colorSpaceInfo().refColorSpace()); in onFilterImage()
|
D | SkLightingImageFilter.cpp | 522 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()
|