Home
last modified time | relevance | path

Searched refs:origColor (Results 1 - 5 of 5) sorted by relevance

/third_party/skia/src/gpu/
H A DSkGr.cpp422 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), dstColorInfo); in skpaint_to_grpaint_impl() local
455 SkPMColor4f shaderInput = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl()
461 // We can ignore origColor here - alpha is unchanged by gamma in skpaint_to_grpaint_impl()
477 // Think of this as equivalent to (but faster than) putting origColor.premul() on in skpaint_to_grpaint_impl()
480 grPaint->setColor4f({origColor.fR, origColor.fG, origColor.fB, origColor.fA}); in skpaint_to_grpaint_impl()
486 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
502 grPaint->setColor4f(origColor in skpaint_to_grpaint_impl()
[all...]
/third_party/skia/src/core/
H A DSkSDFFilter.cpp96 SkPMColor4f origColor = paint.getColor4f(); in drawMaskSDFBlur() local
109 origColor.isOpaque() ? GrSkSLFP::OptFlags::kPreservesOpaqueInput : GrSkSLFP::OptFlags::kNone, in drawMaskSDFBlur()
110 "fp", std::move(inputFp), "colorPaint", origColor); in drawMaskSDFBlur()
H A DSkColorFilter.cpp393 SkPMColor4f onFilterColor4f(const SkPMColor4f& origColor,
404 SkPMColor4f color = origColor;
/third_party/skia/tests/
H A DSurfaceTest.cpp839 skiatest::Reporter* reporter, sk_sp<SkSurface> surface, SkColor origColor) { in test_surface_draw_partially()
843 const SkColor kRectColor = ~origColor | 0xFF000000; in test_surface_draw_partially()
853 readback.erase(~origColor); in test_surface_draw_partially()
858 SkPMColor origColorPM = SkPackARGB_as_RGBA(SkColorGetA(origColor), in test_surface_draw_partially()
859 SkColorGetR(origColor), in test_surface_draw_partially()
860 SkColorGetG(origColor), in test_surface_draw_partially()
861 SkColorGetB(origColor)); in test_surface_draw_partially()
838 test_surface_draw_partially( skiatest::Reporter* reporter, sk_sp<SkSurface> surface, SkColor origColor) test_surface_draw_partially() argument
H A DImageTest.cpp556 uint32_t origColor = *bmp.getAddr32(x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
557 int32_t origA = (origColor >> 24) & 0xff; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
559 int32_t origB = sk_float_round2int(((origColor >> 16) & 0xff) * a); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
560 int32_t origG = sk_float_round2int(((origColor >> 8) & 0xff) * a); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
561 int32_t origR = sk_float_round2int(((origColor >> 0) & 0xff) * a); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
574 *bmp.getAddr32(x, y), *premul.getAddr32(x, y), origColor, x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()

Completed in 8 milliseconds