Home
last modified time | relevance | path

Searched refs:origColor (Results 1 – 9 of 9) sorted by relevance

/external/skqp/src/gpu/
DSkGr.cpp380 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), colorSpaceInfo, in skpaint_to_grpaint_impl() local
412 SkPMColor4f shaderInput = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl()
433 SkPMColor4f origColorAsPM = { origColor.fR, origColor.fG, origColor.fB, origColor.fA }; in skpaint_to_grpaint_impl()
441 SkPMColor4f opaqueColor = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl()
463 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
472 colorFilter->filterColor4f(origColor, colorSpaceInfo.colorSpace()).premul()); in skpaint_to_grpaint_impl()
/external/skia/src/gpu/
DSkGr.cpp335 SkColor4f origColor = SkColor4fPrepForDst(skPaint.getColor4f(), dstColorInfo); in skpaint_to_grpaint_impl() local
343 fpArgs.fInputColorIsOpaque = origColor.isOpaque(); in skpaint_to_grpaint_impl()
369 SkPMColor4f shaderInput = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl()
383 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
389 SkPMColor4f opaqueColor = origColor.makeOpaque().premul(); in skpaint_to_grpaint_impl()
405 grPaint->setColor4f(origColor.premul()); in skpaint_to_grpaint_impl()
414 grPaint->setColor4f(colorFilter->filterColor4f(origColor, dstCS, dstCS).premul()); in skpaint_to_grpaint_impl()
/external/skqp/src/shaders/
DSkLights.cpp53 SkColor origColor = SkColorSetARGB(0xFF, in xform_color() local
57 SkColor xformedColor = xformer->apply(origColor); in xform_color()
/external/skqp/tests/
DSurfaceTest.cpp809 skiatest::Reporter* reporter, sk_sp<SkSurface> surface, uint32_t origColor) { in test_surface_draw_partially() argument
813 const SkColor kRectColor = ~origColor | 0xFF000000; in test_surface_draw_partially()
818 sk_memset32(pixels.get(), ~origColor, kW * kH); in test_surface_draw_partially()
823 SkPMColor origColorPM = SkPackARGB_as_RGBA((origColor >> 24 & 0xFF), in test_surface_draw_partially()
824 (origColor >> 0 & 0xFF), in test_surface_draw_partially()
825 (origColor >> 8 & 0xFF), in test_surface_draw_partially()
826 (origColor >> 16 & 0xFF)); in test_surface_draw_partially()
DImageTest.cpp555 uint32_t origColor = SkPreMultiplyColor(*bmp.getAddr32(x, y)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
556 int32_t origA = (origColor >> 24) & 0xff; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
557 int32_t origB = (origColor >> 16) & 0xff; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
558 int32_t origG = (origColor >> 8) & 0xff; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
559 int32_t origR = (origColor >> 0) & 0xff; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tests/
DSurfaceTest.cpp841 skiatest::Reporter* reporter, sk_sp<SkSurface> surface, SkColor origColor) { in test_surface_draw_partially() argument
845 const SkColor kRectColor = ~origColor | 0xFF000000; in test_surface_draw_partially()
855 readback.erase(~origColor); in test_surface_draw_partially()
860 SkPMColor origColorPM = SkPackARGB_as_RGBA(SkColorGetA(origColor), in test_surface_draw_partially()
861 SkColorGetR(origColor), in test_surface_draw_partially()
862 SkColorGetG(origColor), in test_surface_draw_partially()
863 SkColorGetB(origColor)); in test_surface_draw_partially()
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()
/external/skia/src/core/
DSkColorFilter.cpp384 SkPMColor4f onFilterColor4f(const SkPMColor4f& origColor, in onFilterColor4f()
395 SkPMColor4f color = origColor; in onFilterColor4f()
/external/skqp/src/effects/imagefilters/
DSkLightingImageFilter.cpp828 SkColor origColor = SkColorSetRGB(SkScalarRoundToInt(color.fX), in xform_color() local
831 return xformer->apply(origColor); in xform_color()