Home
last modified time | relevance | path

Searched refs:colorSpaceInfo (Results 1 – 22 of 22) sorted by relevance

/external/skqp/src/gpu/
DSkGr.cpp260 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 …]
DSkGpuDevice.cpp124 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 …]
DGrContext.cpp433 !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()
DSkGpuDevice_drawTexture.cpp114 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()
DGrSurfaceContext.h36 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function
DGrRenderTargetContext.cpp65 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()
DGrBlurUtils.cpp455 if (!SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), paint, viewMatrix, in drawShapeWithMaskFilter()
/external/skqp/src/gpu/text/
DGrTextTarget.h30 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()
DGrTextContext.cpp74 const GrColorSpaceInfo& colorSpaceInfo) { in ComputeScalerContextFlags() argument
78 if (colorSpaceInfo.isLinearlyBlended()) { in ComputeScalerContextFlags()
DGrTextBlob.cpp180 target->colorSpaceInfo().isLinearlyBlended(), in makeOp()
/external/skqp/src/image/
DSkSurface_Gpu.cpp178 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()
DSkImage_Gpu.cpp213 renderTargetContext->colorSpaceInfo().refColorSpace()); in ConvertYUVATexturesToRGB()
/external/skqp/src/core/
DSkGlyphRunPainter.cpp85 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 …]
DSkSpecialSurface.cpp155 fRenderTargetContext->colorSpaceInfo().refColorSpace(), in onMakeImageSnapshot()
DSkImageFilter.cpp272 renderTargetContext->colorSpaceInfo().refColorSpace()); in DrawWithFP()
/external/skqp/gm/
Dconstcolorprocessor.cpp102 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()
Ddrawquadset.cpp66 SkPaintToGrPaint(rtc->surfPriv().getContext(), rtc->colorSpaceInfo(), paint, view, in draw_gradient_tiles()
/external/skqp/tests/
DTessellatingPathRendererTests.cpp631 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/
DSkXfermodeImageFilter.cpp345 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()
DSkArithmeticImageFilter.cpp386 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()
DSkDisplacementMapEffect.cpp324 renderTargetContext->colorSpaceInfo().refColorSpace()); in onFilterImage()
DSkLightingImageFilter.cpp522 renderTargetContext->colorSpaceInfo().refColorSpace()); in filterImageGPU()