Searched refs:colorCount (Results 1 – 5 of 5) sorted by relevance
/external/skia/src/effects/ |
D | SkGradientShader.cpp | 84 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper); 152 int colorCount, SkShader::TileMode mode, SkUnitMapper* mapper) { in Gradient_Shader() argument 153 SkASSERT(colorCount > 1); in Gradient_Shader() 179 fColorCount = colorCount; in Gradient_Shader() 185 dummyLast = pos[colorCount - 1] != SK_Scalar1; in Gradient_Shader() 204 memcpy(origColors, colors, colorCount * sizeof(SkColor)); in Gradient_Shader() 206 origColors += colorCount; in Gradient_Shader() 207 *origColors = colors[colorCount - 1]; in Gradient_Shader() 227 int count = colorCount + dummyLast; in Gradient_Shader() 231 if (i == colorCount) { // we're really at the dummyLast in Gradient_Shader() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder_libgif.cpp | 130 static int find_transpIndex(const SavedImage& image, int colorCount) { in find_transpIndex() argument 138 if (transpIndex >= colorCount) { in find_transpIndex() 214 int colorCount = 0; in onDecode() local 221 colorCount = cmap->ColorCount; in onDecode() 222 SkColorTable* ctable = SkNEW_ARGS(SkColorTable, (colorCount)); in onDecode() 224 for (int index = 0; index < colorCount; index++) in onDecode() 230 transpIndex = find_transpIndex(temp_save, colorCount); in onDecode() 269 static_cast<unsigned>(colorCount)) { in onDecode()
|
D | SkImageDecoder_libico.cpp | 154 int colorCount = readByte(buf, 8 + choice*16); in onDecode() local 175 colorCount = 2; in onDecode() 179 colorCount = 16; in onDecode() 183 colorCount = 256; in onDecode() 187 colorCount = 0; in onDecode() 191 colorCount = 0; in onDecode() 211 if (colorCount) in onDecode() 213 colors = new SkPMColor[colorCount]; in onDecode() 214 for (int j = 0; j < colorCount; j++) in onDecode() 229 int xorOffset = begin + colorCount*4; //beginning of the color bitmap in onDecode()
|
D | SkImageDecoder_libpng.cpp | 345 int colorCount = num_palette + (num_palette < 256); in onDecode() local 347 colorTable = SkNEW_ARGS(SkColorTable, (colorCount)); in onDecode() 638 static int computeBitDepth(int colorCount) { in computeBitDepth() argument 640 int bits = SkNextLog2(colorCount); in computeBitDepth()
|
/external/webkit/WebCore/platform/image-decoders/ico/ |
D | ICOImageDecoder.cpp | 321 uint8_t colorCount = m_data->data()[m_decodedOffset + 2]; in readDirectoryEntry() local 322 if (colorCount) { in readDirectoryEntry() 323 for (--colorCount; colorCount; colorCount >>= 1) in readDirectoryEntry()
|