Home
last modified time | relevance | path

Searched refs:pixelColor (Results 1 – 3 of 3) sorted by relevance

/external/webkit/WebCore/platform/graphics/cairo/
DImageBufferCairo.cpp131 Color pixelColor = colorFromPremultipliedARGB(*pixel); in platformTransformColorSpace() local
132 pixelColor = Color(lookUpTable[pixelColor.red()], in platformTransformColorSpace()
133 lookUpTable[pixelColor.green()], in platformTransformColorSpace()
134 lookUpTable[pixelColor.blue()], in platformTransformColorSpace()
135 lookUpTable[pixelColor.alpha()]); in platformTransformColorSpace()
136 *pixel = premultipliedARGBFromColor(pixelColor); in platformTransformColorSpace()
183 Color pixelColor = colorFromPremultipliedARGB(*pixel); in getImageData() local
184 destRows[basex] = pixelColor.red(); in getImageData()
185 destRows[basex + 1] = pixelColor.green(); in getImageData()
186 destRows[basex + 2] = pixelColor.blue(); in getImageData()
[all …]
DImageCairo.cpp225 unsigned* pixelColor = reinterpret_cast<unsigned*>(cairo_image_surface_get_data(frameSurface)); in checkForSolidColor() local
226 m_solidColor = colorFromPremultipliedARGB(*pixelColor); in checkForSolidColor()
/external/webkit/WebCore/platform/graphics/
DColor.cpp359 Color colorFromPremultipliedARGB(unsigned pixelColor) in colorFromPremultipliedARGB() argument
363 if (unsigned alpha = (pixelColor & 0xFF000000) >> 24) { in colorFromPremultipliedARGB()
364 rgba = makeRGBA(((pixelColor & 0x00FF0000) >> 16) * 255 / alpha, in colorFromPremultipliedARGB()
365 ((pixelColor & 0x0000FF00) >> 8) * 255 / alpha, in colorFromPremultipliedARGB()
366 (pixelColor & 0x000000FF) * 255 / alpha, in colorFromPremultipliedARGB()
369 rgba = pixelColor; in colorFromPremultipliedARGB()
376 unsigned pixelColor; in premultipliedARGBFromColor() local
379 pixelColor = alpha << 24 | in premultipliedARGBFromColor()
384 pixelColor = color.rgb(); in premultipliedARGBFromColor()
386 return pixelColor; in premultipliedARGBFromColor()