Home
last modified time | relevance | path

Searched refs:SkColor (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/external/skia/src/effects/gradients/
DSkGradientShaderPriv.h92 const SkColor* fColors;
109 SkColor* mutableColors() { return const_cast<SkColor*>(fColors); } in mutableColors()
116 SkColor fColorStorage[kStorageCount];
161 static void Build16bitCache(uint16_t[], SkColor c0, SkColor c1, int count, bool dither);
162 static void Build32bitCache(SkPMColor[], SkColor c0, SkColor c1, int count,
219 GpuColorType getGpuColorType(SkColor colors[3]) const;
244 bool onAsLuminanceColor(SkColor*) const override;
253 static void FlipGradientColors(SkColor* colorDst, Rec* recDst,
254 SkColor* colorSrc, Rec* recSrc,
261 kStorageSize = kColorStorageCount * (sizeof(SkColor) + sizeof(SkScalar) + sizeof(Rec))
[all …]
DSkGradientShader.cpp36 size_t allocSize = (sizeof(SkColor) + sizeof(SkScalar)) * fCount; in unflatten()
38 fColors = (SkColor*)fDynamicStorage.get(); in unflatten()
45 if (!buffer.readColorArray(const_cast<SkColor*>(fColors), fCount)) { in unflatten()
106 size_t size = sizeof(SkColor) + sizeof(Rec); in SkGradientShaderBase()
110 fOrigColors = reinterpret_cast<SkColor*>( in SkGradientShaderBase()
119 SkColor* origColors = fOrigColors; in SkGradientShaderBase()
123 memcpy(origColors, desc.fColors, desc.fCount * sizeof(SkColor)); in SkGradientShaderBase()
231 SkGradientShaderBase::GpuColorType SkGradientShaderBase::getGpuColorType(SkColor colors[3]) const { in getGpuColorType()
233 memcpy(colors, fOrigColors, fColorCount * sizeof(SkColor)); in getGpuColorType()
248 void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst, in FlipGradientColors()
[all …]
/external/skia/include/core/
DSkColor.h27 typedef uint32_t SkColor; typedef
31 static inline SkColor SkColorSetARGBInline(U8CPU a, U8CPU r, U8CPU g, U8CPU b) in SkColorSetARGBInline()
39 static_cast<SkColor>( \
69 static inline SkColor SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA()
113 static inline void SkColorToHSV(SkColor color, SkScalar hsv[3]) { in SkColorToHSV()
126 SK_API SkColor SkHSVToColor(U8CPU alpha, const SkScalar hsv[3]);
136 static inline SkColor SkHSVToColor(const SkScalar hsv[3]) { in SkHSVToColor()
155 SK_API SkPMColor SkPreMultiplyColor(SkColor c);
185 static SkColor4f FromColor(SkColor);
DSkColorFilter.h34 virtual bool asColorMode(SkColor* color, SkXfermode::Mode* mode) const;
97 SkColor filterColor(SkColor) const;
113 static SkColorFilter* CreateModeFilter(SkColor c, SkXfermode::Mode mode);
/external/skia/include/effects/
DSkGradientShader.h46 const SkColor colors[], const SkScalar pos[], int count,
51 const SkColor colors[], const SkScalar pos[], int count, in CreateLinear()
73 const SkColor colors[], const SkScalar pos[], int count,
78 const SkColor colors[], const SkScalar pos[], int count, in CreateRadial()
91 const SkColor colors[], const SkScalar pos[], int count,
97 const SkColor colors[], const SkScalar pos[], int count, in CreateTwoPointConical()
119 const SkColor colors[], const SkScalar pos[], int count,
123 const SkColor colors[], const SkScalar pos[], int count) { in CreateSweep()
DSkLightingImageFilter.h21 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
24 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
28 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
31 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
34 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
38 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
DSkBlurDrawLooper.h38 static SkDrawLooper* Create(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
53 SkBlurDrawLooper(SkColor color, SkScalar sigma, SkScalar dx, SkScalar dy,
64 SkColor fBlurColor;
84 void init(SkScalar sigma, SkScalar dx, SkScalar dy, SkColor color, uint32_t flags);
/external/skia/tools/
Dsk_tool_utils.h34 SkColor color_to_565(SkColor color);
95 SkShader* create_checkerboard_shader(SkColor c1, SkColor c2, int size);
100 SkColor color1,
101 SkColor color2,
106 SkColor c1, SkColor c2,
114 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y,
/external/skia/gm/
Dtransparency.cpp18 const SkColor kColors[] = { in make_transparency()
31 SkColor shaderColors[2]; in make_transparency()
44 static SkShader* create_checkerboard_shader(SkColor c1, SkColor c2, int size) { in create_checkerboard_shader()
55 static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { in checkerboard()
Dshallowgradient.cpp11 typedef SkShader* (*MakeShaderProc)(const SkColor[], int count, const SkSize&);
13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear()
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial()
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical()
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep()
57 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), in onDraw()
Dalphagradients.cpp26 SkColor c0, SkColor c1, bool doPreMul) { in draw_grad()
27 SkColor colors[] = { c0, c1 }; in draw_grad()
43 SkColor fColor0; in onDraw()
44 SkColor fColor1; in onDraw()
Dselftest.cpp19 SelfTestGM(const char name[], SkColor color) : in SelfTestGM()
40 const SkColor fColor;
48 static SkColor kTranslucentGreen = 0x7700EE00;
49 static SkColor kTranslucentBlue = 0x770000DD;
Dpathopsinverse.cpp25 SkColor blendColor = blend(oneColor, twoColor); in onOnceBeforeDraw()
37 SkColor blend(SkColor one, SkColor two) { in blend()
44 return *(SkColor*) pixels; in blend()
47 void makePaint(SkPaint* paint, SkColor color) { in makePaint()
Dgradients_no_texture.cpp14 const SkColor* fColors;
18 static const SkColor gColors[] = {
131 SkColor* fColors;
141 void construct(const SkColor colors[], const SkScalar pos[], int count) { in construct()
142 fColors = new SkColor[count]; in construct()
143 memcpy(fColors, colors, count * sizeof(SkColor)); in construct()
162 const SkColor colors[] = { in make0()
184 const SkColor colors[] = { in make1()
193 const SkColor colors[] = { in make2()
207 const SkColor colors[] = { in make3()
Droundrects.cpp21 static SkColor gen_color(SkRandom* rand) { in gen_color()
170 SkColor color = gen_color(&rand); in onDraw()
195 SkColor color = gen_color(&rand); in onDraw()
215 SkColor color = gen_color(&rand); in onDraw()
234 SkColor color = gen_color(&rand); in onDraw()
253 SkColor color = gen_color(&rand); in onDraw()
262 SkColor colors[] = { SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN }; in onDraw()
278 SkColor color = gen_color(&rand); in onDraw()
313 SkColor color = gen_color(&rand); in onDraw()
334 const SkColor color = gen_color(&rand); in onDraw()
Dverylargebitmap.cpp15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in draw()
26 static SkImage* make_raster_image(int width, int height, SkColor colors[2]) { in make_raster_image()
32 static SkImage* make_picture_image(int width, int height, SkColor colors[2]) { in make_picture_image()
40 typedef SkImage* (*ImageMakerProc)(int width, int height, SkColor colors[2]);
42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], in show_image()
95 SkColor colors[2]; in onDraw()
Dgradients.cpp16 const SkColor* fColors;
20 static const SkColor gColors[] = {
30 static const SkColor gColorClamp[] = {
282 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorGREEN, SK_ColorRED }; in onDraw()
376 const SkColor colors[] = { 0x7f7f7f7f, 0x7f7f7f7f, 0xb2000000 }; in onDraw()
417 const SkColor sweep_colors[] = in onDraw()
419 const SkColor colors1[] = { 0xFFFFFFFF, 0x00000000 }; in onDraw()
420 const SkColor colors2[] = { 0xFF000000, 0x00000000 }; in onDraw()
485 const SkColor gColors[] = { 0xFFFFFFFF, 0xFF000000 }; in onOnceBeforeDraw()
520 const SkColor colors[] = { SK_ColorRED, SK_ColorRED, SK_ColorWHITE, SK_ColorWHITE, in onOnceBeforeDraw()
[all …]
Dovals.cpp129 SkColor genColor(SkRandom* rand) { in genColor()
167 SkColor color = genColor(&rand); in onDraw()
189 SkColor color = genColor(&rand); in onDraw()
206 SkColor color = genColor(&rand); in onDraw()
222 SkColor color = genColor(&rand); in onDraw()
238 SkColor color = genColor(&rand); in onDraw()
247 SkColor colors[] = { SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN }; in onDraw()
263 SkColor color = genColor(&rand); in onDraw()
Dgammatext.cpp15 const SkColor bw[] = { SK_ColorBLACK, SK_ColorWHITE }; in make_heatGradient()
66 const SkColor fg[] = { in onDraw()
104 static SkShader* make_gradient(SkColor c) {
106 SkColor colors[2];
131 SkColor fColors[3];
135 const SkColor colors[] = { SK_ColorBLACK, SK_ColorRED, SK_ColorBLUE }; in GammaShaderTextGM()
/external/skia/src/core/
DSkModeColorFilter.h16 static SkColorFilter* Create(SkColor color, SkXfermode::Mode mode) { in Create()
20 SkColor getColor() const { return fColor; } in getColor()
24 bool asColorMode(SkColor*, SkXfermode::Mode*) const override;
39 SkModeColorFilter(SkColor color, SkXfermode::Mode mode) { in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
48 SkColor fColor;
/external/skia/src/opts/
DSkColorCubeFilter_opts.h20 const SkColor* colorCube) { in color_cube_filter_span()
28 const SkColor source = SkUnPreMultiply::PMColorToColor(input); in color_cube_filter_span()
57 const SkColor lutColor00 = colorCube[ix + i00]; in color_cube_filter_span()
58 const SkColor lutColor01 = colorCube[ix + i01]; in color_cube_filter_span()
59 const SkColor lutColor10 = colorCube[ix + i10]; in color_cube_filter_span()
60 const SkColor lutColor11 = colorCube[ix + i11]; in color_cube_filter_span()
/external/skia/experimental/DrawingBoard/
DSkColorPalette.h16 SkColor getColor() { return fCurrColor; } in getColor()
25 SkColor selectColorFromGradient(SkPoint& cursorPosition);
29 SkColor fCurrColor;
30 SkColor fColors[PaletteSlots];
/external/skia/tests/
DBitmapGetColorTest.cpp16 SkColor fInColor; in DEF_TEST()
17 SkColor fOutColor; in DEF_TEST()
32 const SkColor initColor = 0xFF0000FF; in DEF_TEST()
45 SkColor c = bm.getColor(1, 1); in DEF_TEST()
DColorTest.cpp22 SkColor c0 = SkColorSetARGB(a, x, x, x); in test_premul()
25 SkColor c1 = SkUnPreMultiply::PMColorToColor(p0); in test_premul()
69 SkColor colorSrc = r.nextU(); in test_fast_interp()
70 SkColor colorDst = r.nextU(); in test_fast_interp()
/external/skia/src/effects/
DSkAvoidXfermode.cpp14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { in SkAvoidXfermode()
25 const SkColor color = buffer.readColor(); in CreateProc()
186 static const GrFragmentProcessor* Create(SkColor opColor, uint8_t tolerance, in Create()
204 SkColor opColor() const { return fOpColor; } in opColor()
225 AvoidFP(SkColor opColor, uint8_t tolerance, in AvoidFP()
235 SkColor fOpColor;
336 SkColor opColor = d->fRandom->nextU(); in TestCreate()
354 SkColor opColor, uint8_t tolerance, SkAvoidXfermode::Mode mode) in AvoidXP()
366 SkColor opColor() const { return fOpColor; } in opColor()
388 SkColor fOpColor;
[all …]

12345678910>>...15