Lines Matching refs:color

723  * is drawn with the rgba color (0,0,0,alpha). The alpha value offered by the
1489 // The last parameter is important: we are not drawing in the color buffer
1610 void OpenGLRenderer::setupDrawColor(int color, int alpha) {
1612 mColorR = mColorA * ((color >> 16) & 0xFF) / 255.0f;
1613 mColorG = mColorA * ((color >> 8) & 0xFF) / 255.0f;
1614 mColorB = mColorA * ((color ) & 0xFF) / 255.0f;
1619 void OpenGLRenderer::setupDrawAlpha8Color(int color, int alpha) {
1621 mColorR = mColorA * ((color >> 16) & 0xFF) / 255.0f;
1622 mColorG = mColorA * ((color >> 8) & 0xFF) / 255.0f;
1623 mColorB = mColorA * ((color ) & 0xFF) / 255.0f;
1671 // When the blending mode is kClear_Mode, we need to use a modulate color
1682 // When the blending mode is kClear_Mode, we need to use a modulate color
1768 SkColor color;
1770 if (filter->asColorMode(&color, &mode)) {
1771 const int alpha = SkColorGetA(color);
1773 const GLfloat r = a * SkColorGetR(color) / 255.0f;
1774 const GLfloat g = a * SkColorGetG(color) / 255.0f;
1775 const GLfloat b = a * SkColorGetB(color) / 255.0f;
1934 int color = paint != NULL ? paint->getColor() : 0;
2339 int color = paint->getColor();
2345 setupDrawColor(color, ((color >> 24) & 0xFF) * mSnapshot->alpha);
2397 * translucency of the color from its position, we simply use a varying parameter to define how far
2454 status_t OpenGLRenderer::drawColor(int color, SkXfermode::Mode mode) {
2462 paint.setColor(color);
2642 const int shadowAlpha = ((textShadow.color >> 24) & 0xFF) * mSnapshot->alpha;
2644 textShadow.color = SK_ColorWHITE;
2649 setupDrawAlpha8Color(textShadow.color, shadowAlpha < 255 ? shadowAlpha : alpha);
3178 int color = paint->getColor();
3181 color |= 0x00ffffff;
3215 setupDrawColor(color, ((color >> 24) & 0xFF) * currentSnapshot()->alpha);
3238 int color = paint->getColor();
3241 color |= 0x00ffffff;
3246 setupDrawColor(color, ((color >> 24) & 0xFF) * currentSnapshot()->alpha);
3356 int color = paint != NULL ? paint->getColor() : 0;
3364 setupDrawAlpha8Color(color, alpha);