/third_party/flutter/skia/include/core/ |
D | SkColor.h | 33 typedef uint32_t SkColor; typedef 45 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() 78 static constexpr inline SkColor SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA() 95 constexpr SkColor SK_ColorTRANSPARENT = SkColorSetARGB(0x00, 0x00, 0x00, 0x00); 99 constexpr SkColor SK_ColorBLACK = SkColorSetARGB(0xFF, 0x00, 0x00, 0x00); 104 constexpr SkColor SK_ColorDKGRAY = SkColorSetARGB(0xFF, 0x44, 0x44, 0x44); 109 constexpr SkColor SK_ColorGRAY = SkColorSetARGB(0xFF, 0x88, 0x88, 0x88); 114 constexpr SkColor SK_ColorLTGRAY = SkColorSetARGB(0xFF, 0xCC, 0xCC, 0xCC); 118 constexpr SkColor SK_ColorWHITE = SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF); 122 constexpr SkColor SK_ColorRED = SkColorSetARGB(0xFF, 0xFF, 0x00, 0x00); [all …]
|
D | SkColorFilter.h | 37 bool asColorMode(SkColor* color, SkBlendMode* mode) const { in asColorMode() 45 bool asAColorMode(SkColor* color, SkBlendMode* mode) const { in asAColorMode() 69 SkColor filterColor(SkColor) const; 121 virtual bool onAsAColorMode(SkColor* color, SkBlendMode* bmode) const; 145 static sk_sp<SkColorFilter> Blend(SkColor c, SkBlendMode mode);
|
/third_party/skia/include/core/ |
D | SkColor.h | 35 typedef uint32_t SkColor; typedef 47 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() 80 static constexpr inline SkColor SK_WARN_UNUSED_RESULT SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA() 97 constexpr SkColor SK_ColorTRANSPARENT = SkColorSetARGB(0x00, 0x00, 0x00, 0x00); 101 constexpr SkColor SK_ColorBLACK = SkColorSetARGB(0xFF, 0x00, 0x00, 0x00); 106 constexpr SkColor SK_ColorDKGRAY = SkColorSetARGB(0xFF, 0x44, 0x44, 0x44); 111 constexpr SkColor SK_ColorGRAY = SkColorSetARGB(0xFF, 0x88, 0x88, 0x88); 116 constexpr SkColor SK_ColorLTGRAY = SkColorSetARGB(0xFF, 0xCC, 0xCC, 0xCC); 120 constexpr SkColor SK_ColorWHITE = SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF); 124 constexpr SkColor SK_ColorRED = SkColorSetARGB(0xFF, 0xFF, 0x00, 0x00); [all …]
|
/third_party/skia/experimental/sktext/editor/ |
D | Defaults.h | 15 const SkColor DEFAULT_TEXT_FOREGROUND = SK_ColorBLACK; 16 const SkColor DEFAULT_TEXT_BACKGROUND = SK_ColorWHITE; 17 const SkColor DEFAULT_STATUS_FOREGROUND = SK_ColorRED; 18 const SkColor DEFAULT_STATUS_BACKGROUND = SK_ColorLTGRAY; 20 const SkColor DEFAULT_CURSOR_COLOR = SK_ColorGRAY; 21 const SkColor DEFAULT_SELECTION_COLOR = SK_ColorCYAN;
|
/third_party/flutter/skia/include/utils/ |
D | SkShadowUtils.h | 41 SkColor ambientColor, SkColor spotColor, 52 static void ComputeTonalColors(SkColor inAmbientColor, SkColor inSpotColor, 53 SkColor* outAmbientColor, SkColor* outSpotColor);
|
/third_party/skia/include/utils/ |
D | SkShadowUtils.h | 46 SkColor ambientColor, SkColor spotColor, 81 static void ComputeTonalColors(SkColor inAmbientColor, SkColor inSpotColor, 82 SkColor* outAmbientColor, SkColor* outSpotColor);
|
/third_party/skia/experimental/sorttoy/ |
D | Fake.h | 23 constexpr SkColor SK_ColorUNUSED = SkColorSetARGB(0x00, 0xFF, 0xFF, 0xFF); 140 FakePaint(SkColor c) in FakePaint() 146 void setColor(SkColor c) { in setColor() 151 SkColor getColor() const { in getColor() 156 void setLinear(SkColor c0, SkColor c1) { in setLinear() 162 void setRadial(SkColor c0, SkColor c1) { in setRadial() 168 SkColor c0() const { return fColor0; } in c0() 169 SkColor c1() const { return fColor1; } in c1() 182 SkColor evalColor(int x, int y) const; 194 SkColor fColor0 = SK_ColorBLACK; [all …]
|
/third_party/skia/tests/ |
D | GradientTest.cpp | 25 const SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; in test_big_grad() 46 const SkColor* fColors; 55 SkAutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck() 65 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 145 SkColor colors[] = { SK_ColorBLUE, SK_ColorBLUE }; in TestConstantGradient() 164 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders() 205 static const SkColor gC_00[] = { 0xff000000, 0xff000000 }; in TestGradientOptimization() 206 static const SkColor gC_01[] = { 0xff000000, 0xffffffff }; in TestGradientOptimization() 207 static const SkColor gC_11[] = { 0xffffffff, 0xffffffff }; in TestGradientOptimization() 208 static const SkColor gC_001[] = { 0xff000000, 0xff000000, 0xffffffff }; in TestGradientOptimization() [all …]
|
D | ColorTest.cpp | 19 SkColor c0 = SkColorSetARGB(a, x, x, x); in DEF_TEST() 22 SkColor c1 = SkUnPreMultiply::PMColorToColor(p0); in DEF_TEST() 48 SkColor colorSrc = r.nextU(); in DEF_TEST() 49 SkColor colorDst = r.nextU(); in DEF_TEST() 66 SkColor colorSrc = r.nextU(); in DEF_TEST() 67 SkColor colorDst = r.nextU(); in DEF_TEST()
|
/third_party/flutter/skia/tests/ |
D | GradientTest.cpp | 22 const SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; in test_big_grad() 43 const SkColor* fColors; 52 SkAutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck() 62 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck() 142 SkColor colors[] = { SK_ColorBLUE, SK_ColorBLUE }; in TestConstantGradient() 161 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders() 202 static const SkColor gC_00[] = { 0xff000000, 0xff000000 }; in TestGradientOptimization() 203 static const SkColor gC_01[] = { 0xff000000, 0xffffffff }; in TestGradientOptimization() 204 static const SkColor gC_11[] = { 0xffffffff, 0xffffffff }; in TestGradientOptimization() 205 static const SkColor gC_001[] = { 0xff000000, 0xff000000, 0xffffffff }; in TestGradientOptimization() [all …]
|
D | ColorTest.cpp | 19 SkColor c0 = SkColorSetARGB(a, x, x, x); in DEF_TEST() 22 SkColor c1 = SkUnPreMultiply::PMColorToColor(p0); in DEF_TEST() 48 SkColor colorSrc = r.nextU(); in DEF_TEST() 49 SkColor colorDst = r.nextU(); in DEF_TEST() 66 SkColor colorSrc = r.nextU(); in DEF_TEST() 67 SkColor colorDst = r.nextU(); in DEF_TEST()
|
/third_party/flutter/skia/site/user/api/ |
D | SkColor_Reference.md | 1 SkColor Reference 7 typedef uint32_t <a href='SkColor_Reference#SkColor'>SkColor</a>; 9 static constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SkColor… 16 …Color_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SkColorSetA'>SkColorSetA</a>(<a hr… 19 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorTRANSP… 20 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorBLACK'… 21 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorDKGRAY… 22 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorGRAY'>… 23 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorLTGRAY… 24 constexpr <a href='SkColor_Reference#SkColor'>SkColor</a> <a href='SkColor_Reference#SK_ColorWHITE'… [all …]
|
/third_party/skia/docs/examples/ |
D | radial_gradient_test.cpp | 8 const SkColor preColor = 0xFFFF0000; // clamp color before start in draw() 9 const SkColor postColor = 0xFF0000FF; // clamp color after end in draw() 10 const SkColor color0 = 0xFF000000; in draw() 11 const SkColor color1 = 0xFF00FF00; in draw() 13 SkColor cs[] = {preColor, color0, color1, postColor}; in draw()
|
/third_party/skia/tools/ |
D | ToolUtils.h | 55 SkColor color_to_565(SkColor color); 95 sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size); 99 void draw_checkerboard(SkCanvas* canvas, SkColor color1, SkColor color2, int checkSize); 102 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize); 104 sk_sp<SkImage> create_checkerboard_image(int w, int h, SkColor c1, SkColor c2, int checkSize); 111 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str); 112 sk_sp<SkImage> create_string_image(int w, int h, SkColor c, int x, int y, int textSize, const char*…
|
/third_party/skia/samplecode/ |
D | SampleShadowColor.cpp | 110 SkColor ambientColor = SkColorSetARGB(ambientAlpha*255, 0, 0, 0); in drawShadowedPath() 116 SkColor color = paint.getColor(); in drawShadowedPath() 125 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath() 133 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath() 138 SkColor color = paint.getColor(); in drawShadowedPath() 139 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath() 142 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath() 145 SkColor tonalAmbient, tonalSpot; in drawShadowedPath() 170 const SkColor kColors[30] = { in onDrawContent()
|
/third_party/flutter/skia/samplecode/ |
D | SampleShadowColor.cpp | 110 SkColor ambientColor = SkColorSetARGB(ambientAlpha*255, 0, 0, 0); in drawShadowedPath() 116 SkColor color = paint.getColor(); in drawShadowedPath() 125 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath() 133 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath() 138 SkColor color = paint.getColor(); in drawShadowedPath() 139 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath() 142 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath() 145 SkColor tonalAmbient, tonalSpot; in drawShadowedPath() 170 const SkColor kColors[30] = { in onDrawContent()
|
/third_party/flutter/engine/flutter/flow/layers/ |
D | physical_shape_layer.h | 14 PhysicalShapeLayer(SkColor color, 15 SkColor shadow_color, 25 SkColor color, 39 SkColor color_; 40 SkColor shadow_color_;
|
/third_party/flutter/skia/gm/ |
D | transparency.cpp | 27 const SkColor kColors[] = { in make_transparency() 40 SkColor shaderColors[2]; in make_transparency() 50 static sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size) { in create_checkerboard_shader() 60 static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { in checkerboard()
|
D | gammatext.cpp | 27 const SkColor bw[] = { SK_ColorBLACK, SK_ColorWHITE }; in make_heatGradient() 64 const SkColor fg[] = { in onDraw() 99 static sk_sp<SkShader> make_gradient(SkColor c) { 101 SkColor colors[2]; 107 static void draw_pair(SkCanvas* canvas, const SkFont& font, SkColor color, in draw_pair() 121 SkColor fColors[3]; 125 const SkColor colors[] = { SK_ColorBLACK, SK_ColorRED, SK_ColorBLUE }; in GammaShaderTextGM()
|
D | shallowgradient.cpp | 22 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&); 24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() 29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() 35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() 41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() 62 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw()
|
/third_party/skia/gm/ |
D | transparency.cpp | 27 const SkColor kColors[] = { in make_transparency() 40 SkColor shaderColors[2]; in make_transparency() 50 static sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size) { in create_checkerboard_shader() 60 static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { in checkerboard()
|
D | gammatext.cpp | 27 const SkColor bw[] = { SK_ColorBLACK, SK_ColorWHITE }; in make_heatGradient() 64 const SkColor fg[] = { in onDraw() 99 static sk_sp<SkShader> make_gradient(SkColor c) { 101 SkColor colors[2]; 107 static void draw_pair(SkCanvas* canvas, const SkFont& font, SkColor color, in draw_pair() 121 SkColor fColors[3]; 125 const SkColor colors[] = { SK_ColorBLACK, SK_ColorRED, SK_ColorBLUE }; in GammaShaderTextGM()
|
D | shallowgradient.cpp | 22 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&); 24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear() 29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial() 35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical() 41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep() 62 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw()
|
/third_party/flutter/skia/include/effects/ |
D | SkLightingImageFilter.h | 20 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 23 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 27 SkColor lightColor, SkScalar surfaceScale, SkScalar kd, 30 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, 33 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, 37 SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess,
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | gradient.cc | 46 static_assert(sizeof(SkColor) == sizeof(int32_t), in initLinear() 57 reinterpret_cast<const SkColor*>(colors.data()), color_stops.data(), in initLinear() 71 static_assert(sizeof(SkColor) == sizeof(int32_t), in initRadial() 82 reinterpret_cast<const SkColor*>(colors.data()), color_stops.data(), in initRadial() 97 static_assert(sizeof(SkColor) == sizeof(int32_t), in initSweep() 107 center_x, center_y, reinterpret_cast<const SkColor*>(colors.data()), in initSweep() 126 static_assert(sizeof(SkColor) == sizeof(int32_t), in initTwoPointConical() 138 reinterpret_cast<const SkColor*>(colors.data()), color_stops.data(), in initTwoPointConical()
|