Home
last modified time | relevance | path

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

12

/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()
/external/skia/src/gpu/
DSkGr.cpp262 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 …]
DSkGpuDevice.cpp119 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 …]
DGrContextPriv.cpp341 !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()
DSkGpuDevice_drawTexture.cpp179 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()
DGrSurfaceContext.h36 const GrColorSpaceInfo& colorSpaceInfo() const { return fColorSpaceInfo; } in colorSpaceInfo() function
DGrRenderTargetContext.cpp70 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/
DGrVkSecondaryCBDrawContext.cpp93 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/
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()
/external/skia/src/gpu/text/
DGrTextTarget.h31 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()
DGrTextContext.cpp74 const GrColorSpaceInfo& colorSpaceInfo) { in ComputeScalerContextFlags() argument
78 if (colorSpaceInfo.isLinearlyBlended()) { in ComputeScalerContextFlags()
/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()
/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()
/external/skia/src/image/
DSkSurface_Gpu.cpp187 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/
DSkGlyphRunPainter.cpp115 : 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()
DSkSpecialSurface.cpp159 fRenderTargetContext->colorSpaceInfo().refColorSpace(), in onMakeImageSnapshot()
/external/skia/gm/
Dconstcolorprocessor.cpp91 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()
/external/skqp/gm/
Dconstcolorprocessor.cpp102 SkAssertResult(SkPaintToGrPaint(context, renderTargetContext->colorSpaceInfo(), in onDraw()

12