Home
last modified time | relevance | path

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

12

/external/skia/tests/
DShaderOpacityTest.cpp65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
74 colors[0] = SkColorSetARGB(0, 0, 0, 0); in test_gradient()
75 colors[1] = SkColorSetARGB(0, 0, 0, 0); in test_gradient()
82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient()
90 colors[0] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient()
91 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient()
100 SkColorShader colorShader1(SkColorSetARGB(0,0,0,0)); in test_color()
102 SkColorShader colorShader2(SkColorSetARGB(0xFF,0,0,0)); in test_color()
[all …]
DGpuColorFilterTest.cpp62 const SkColor c1 = SkColorSetARGB(200, 200, 200, 200); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
63 const SkColor c2 = SkColorSetARGB(60, 60, 60, 60); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
82 …{ kRGBA, gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kSrcOver_Mode, kRGBA, GrCo… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
84 …{ kA , gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kSrcOver_Mode, kA , GrCo… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
86 …{ kRGB , gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kSrcOver_Mode, kRGB, GrCol… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
89 …{ kRGBA, gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kDstOver_Mode, kRGBA, GrCo… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
91 …{ kA , gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kDstOver_Mode, kA , GrCo… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
93 …{ kRGB , gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kDstOver_Mode, 0 , gr_b… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
96 …{ kR|kA , gr_whiteTrans, SkColorSetARGB(128, 200, 200, 200), SkXfermode::kModulate_Mode, kR|kA, Gr… in DEF_GPUTEST_FOR_ALL_CONTEXTS()
DColorTest.cpp22 SkColor c0 = SkColorSetARGB(a, x, x, x); in test_premul()
DColorMatrixTest.cpp78 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); in test_colorMatrixCTS()
DPremulAlphaRoundTripTest.cpp57 pixels[r] = proc(SkColorSetARGB(a, r, 0, 0)); in fillCanvas()
/external/skia/gm/
Dmodecolorfilters.cpp27 return make_color_shader(SkColorSetARGB(0xFF, 0x42, 0x82, 0x21)); in make_solid_shader()
31 return make_color_shader(SkColorSetARGB(0x80, 0x10, 0x70, 0x20)); in make_transparent_shader()
93 SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF), in onDraw()
94 SkColorSetARGB(0xFF, 0x00, 0x00, 0x00), in onDraw()
95 SkColorSetARGB(0x00, 0x00, 0x00, 0x00), in onDraw()
96 SkColorSetARGB(0xFF, 0x10, 0x20, 0x42), in onDraw()
97 SkColorSetARGB(0xA0, 0x20, 0x30, 0x90), in onDraw()
Drecordopts.cpp61 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence()
89 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence()
115 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence()
151 SkColor shapeColor = SkColorSetARGB(255, 0, 255, 0);
182 SkColorSetARGB(255, 0, kDetectorGreenValue, 0),
183 SkColorSetARGB(255, 0, (kDetectorGreenValue + 1), 0) // This tests that detectors work.
Ddstreadshuffle.cpp23 this->setBGColor(SkColorSetARGB(0xff, 0xff, 0, 0xff)); in DstReadShuffle()
114 color = SkColorSetARGB(0xff, in GetColor()
121 color = SkColorSetARGB(alpha, in GetColor()
Daaxfermodes.cpp27 static const SkColor kBGColor = SkColorSetARGB(200, 210, 184, 135);
30 SkColorSetARGB(130, 255, 0, 128), // input color unknown
31 SkColorSetARGB(255, 0, 255, 255) // input color opaque
Dlumafilter.cpp15 static SkColor kColor1 = SkColorSetARGB(0xff, 0xff, 0xff, 0);
16 static SkColor kColor2 = SkColorSetARGB(0xff, 0x82, 0xff, 0);
Dcomposeshader.cpp32 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in make_shader()
157 colors[1] = SkColorSetARGB(0, 0, 0, 0xFF); in make_linear_gradient_shader()
Dcolorcube.cpp89 SkColorSetARGB(0xFF, in make_3Dlut()
/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp411 return SkColorSetARGB(a, (r + b) >> 1, (g + b) >> 1, b); in blue_contract()
433 endpoints[0] = SkColorSetARGB(v6, v[0], v[2], v[4]); in decode_rgba_direct()
434 endpoints[1] = SkColorSetARGB(v7, v[1], v[3], v[5]); in decode_rgba_direct()
456 endpoints[0] = SkColorSetARGB(v4, in decode_rgba_basescale()
460 endpoints[1] = SkColorSetARGB(v5, v[0], v[1], v[2]); in decode_rgba_basescale()
512 endpoints[0] = SkColorSetARGB(clamp_byte(c[0][0]), in decode_rgba_baseoffset()
517 endpoints[1] = SkColorSetARGB(clamp_byte(c[1][0]), in decode_rgba_baseoffset()
1016 return SkColorSetARGB( in interpolate_endpoints()
1065 return SkColorSetARGB(a, r, g, b); in interpolate_dual_endpoints()
1238 endpoints[i][0] = SkColorSetARGB(0xFF, v[0], v[0], v[0]); in colorEndpoints()
[all …]
/external/skia/include/core/
DSkColor.h50 #define SkColorSetARGB(a, r, g, b) SkColorSetARGBMacro(a, r, g, b) macro
52 #define SkColorSetARGB(a, r, g, b) SkColorSetARGBInline(a, r, g, b) macro
58 #define SkColorSetRGB(r, g, b) SkColorSetARGB(0xFF, r, g, b)
/external/skia/src/animator/
DSkDrawColor.cpp88 return SkColorSetARGB(SkColorGetA(color), SkScalarRoundToInt(red), in HSV_to_RGB()
230 color = SkColorSetARGB(alpha, SkColorGetR(color), in setProperty()
235 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
240 color = SkColorSetARGB(SkColorGetA(color), SkColorGetR(color), in setProperty()
249 color = SkColorSetARGB(SkColorGetA(color), SkToU8((U8CPU) scalar), in setProperty()
/external/skia/samplecode/
DSampleShaders.cpp32 colors[1] = SkColorSetARGB(0, 0, 0, 0); in make_bitmapfade()
68 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); in ShaderView()
/external/skia/tools/skiaserve/urlhandlers/
DClipAlphaHandler.cpp35 request->fDebugCanvas->setClipVizColor(SkColorSetARGB(alpha, 0, 0, 0)); in handle()
DBreakHandler.cpp29 SkColor result = SkColorSetARGB(start[3], start[0], start[1], start[2]); in GetPixel()
/external/skia/src/core/
DSkColor.cpp80 return SkColorSetARGB(a, v, v, v); in SkHSVToColor()
101 return SkColorSetARGB(a, r, g, b); in SkHSVToColor()
DSkUnPreMultiply.cpp14 return SkColorSetARGB(a, in PMColorToColor()
/external/skia/bench/
DPremulAndUnpremulAlphaOpsBench.cpp39 *fBmp1.getAddr32(w, h) = SkColorSetARGB(h & 0xFF, w & 0xFF, w & 0xFF, w & 0xFF); in onDelayedSetup()
DColorCubeBench.cpp91 SkColorSetARGB(0xFF, lut[r], lut[g], lut[b]); in makeCubeData()
/external/skia/src/gpu/
DGrSWMaskHelper.h72 fPixels.erase(SkColorSetARGB(alpha, 0xFF, 0xFF, 0xFF)); in clear()
DGrSWMaskHelper.cpp114 paint.setColor(SkColorSetARGB(alpha, alpha, alpha, alpha)); in draw()
157 paint.setColor(SkColorSetARGB(alpha, alpha, alpha, alpha)); in draw()
/external/skia/src/effects/
DSkAlphaThresholdFilter.cpp385 output_color = SkColorSetARGB(innerThreshold, in onFilterImageDeprecated()
393 output_color = SkColorSetARGB(outerThreshold, in onFilterImageDeprecated()

12