Searched defs:colors (Results 151 - 175 of 207) sorted by relevance

123456789

/external/skia/src/effects/gradients/
H A DSkLinearGradient.cpp98 // colors have alpha), and if we are not dithering (which obviously
122 // only 2 colors - but it's cheap.
128 // If colors change sharply across the gradient, dithering is
535 SkColor colors[kMaxRandomGradientColors]; local
539 int colorCount = RandomGradientParams(random, colors, &stops, &tm);
541 colors, stops, colorCount,
H A DSkSweepGradient.cpp253 SkColor colors[kMaxRandomGradientColors]; local
257 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored);
259 colors, stops, colorCount));
H A DSkTwoPointConicalGradient.cpp355 SkColor* colors = desc.mutableColors(); local
360 SkTSwap(colors[i], colors[last - i]);
H A DSkGradientShader.cpp95 // check if we need to add in dummy start and/or end position/colors
116 // Now copy over the colors, adding the dummies as needed
230 SkGradientShaderBase::GpuColorType SkGradientShaderBase::getGpuColorType(SkColor colors[3]) const {
232 memcpy(colors, fOrigColors, fColorCount * sizeof(SkColor));
305 // now convert our colors in to PMColors
312 // we can do span16 as long as our individual colors are opaque,
340 /** We take the original colors, not our premultiplied PMColors, since we can
341 build a 16bit table as long as the original colors are opaque, even if the
615 * colors and positions. Note: we don't try to flatten the fMapper, so if one
623 // build our key: [numColors + colors[]
739 valid_grad(const SkColor colors[], const SkScalar pos[], int count, unsigned tileMode) argument
755 desc_init(SkGradientShaderBase::Descriptor* desc, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
766 CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
785 CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
804 CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int colorCount, SkShader::TileMode mode, uint32_t flags, const SkMatrix* localMatrix) argument
855 CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int colorCount, uint32_t flags, const SkMatrix* localMatrix) argument
1162 RandomGradientParams(SkRandom* random, SkColor colors[], SkScalar** stops, SkShader::TileMode* tm) argument
[all...]
H A DSkRadialGradient.cpp509 SkColor colors[kMaxRandomGradientColors]; local
513 int colorCount = RandomGradientParams(random, colors, &stops, &tm);
515 colors, stops, colorCount,
H A DSkTwoPointConicalGradient_gpu.cpp207 SkColor colors[kMaxRandomGradientColors]; local
211 int colorCount = RandomGradientParams(random, colors, &stops, &tm);
214 colors, stops, colorCount,
493 SkColor colors[kMaxRandomGradientColors]; local
497 int colorCount = RandomGradientParams(random, colors, &stops, &tm);
500 colors, stops, colorCount,
714 SkColor colors[kMaxRandomGradientColors]; local
718 int colorCount = RandomGradientParams(random, colors, &stops, &tm);
721 colors, stops, colorCount,
969 SkColor colors[kMaxRandomGradientColor local
1209 SkColor colors[kMaxRandomGradientColors]; local
[all...]
/external/skia/src/images/
H A DSkImageDecoder_libwebp.cpp114 * If the caller wants unpremultiplied colors, that is respected.
621 const SkPMColor* colors = bm.getColorTable() ? bm.getColorTable()->readColors() : NULL; local
630 pic.width, colors);
H A DSkImageDecoder_libpng.cpp425 const SkPMColor* colors = colorTable ? colorTable->readColors() : NULL; local
426 if (!sampler.begin(decodedBitmap, sc, *this, colors)) {
627 // colors, the only supported colortype is 8888.
692 // colortype is unpremultiplied, the color table will store unpremultiplied colors.
905 const SkPMColor* colors = colorTable ? colorTable->readColors() : NULL; local
906 if (!sampler.begin(&decodedBitmap, sc, *this, colors)) {
1048 /* Pack palette[] with the corresponding colors, and if hasAlpha is true, also
1053 have alpha in the colortable, since png doesn't support premul colors
1058 const SkPMColor* SK_RESTRICT colors = ctable ? ctable->readColors() : NULL; local
1066 reorder the indices and ctable so that all non-opaque colors cam
[all...]
/external/skia/src/utils/
H A DSkLuaCanvas.cpp302 const SkColor colors[], SkXfermode* xmode,
300 onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
H A DSkNWayCanvas.cpp285 const SkColor colors[], SkXfermode* xmode,
290 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode,
295 void SkNWayCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
300 iter->drawPatch(cubics, colors, texCoords, xmode, paint);
283 onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
H A DSkDumpCanvas.cpp465 const SkColor colors[], SkXfermode* xmode,
473 void SkDumpCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
476 //dumps corner points and colors in clockwise order starting on upper-left corner
488 colors[0], colors[1], colors[2], colors[3],
463 onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
/external/skia/src/utils/android/
H A DSkAndroidSDKCanvas.cpp167 const SkPoint texs[], const SkColor colors[], SkXfermode* xMode,
171 fProxyTarget->drawVertices(vMode, vertexCount, vertices, texs, colors,
222 const SkColor colors[4],
227 fProxyTarget->drawPatch(cubics, colors, texCoords, xmode, filteredPaint);
164 onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xMode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
221 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) argument
/external/skia/src/utils/debugger/
H A DSkDrawCommand.cpp641 SkDrawPatchCommand::SkDrawPatchCommand(const SkPoint cubics[12], const SkColor colors[4], argument
646 memcpy(fColors, colors, sizeof(fColors));
792 const SkColor colors[], SkXfermode* xfermode,
810 if (colors) {
812 memcpy(fColors, colors, vertexCount * sizeof(SkColor));
790 SkDrawVerticesCommand(SkCanvas::VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xfermode, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
H A DSkDebugCanvas.cpp517 void SkDebugCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
520 this->addDrawCommand(new SkDrawPatchCommand(cubics, colors, texCoords, xmode, paint));
524 const SkPoint texs[], const SkColor colors[],
528 texs, colors, NULL, indices, indexCount, paint));
523 onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
/external/skia/tests/
H A DDeferredCanvasTest.cpp368 const SkColor colors[2] = {SK_ColorWHITE, SK_ColorWHITE}; local
371 pt1, r1, pt2, r2, colors, pos, 2, SkShader::kClamp_TileMode);
H A DImageFilterTest.cpp338 SkColor colors[2]; local
339 colors[0] = SK_ColorWHITE;
340 colors[1] = SK_ColorBLACK;
342 SkGradientShader::CreateRadial(SkPoint::Make(x, y), radius, colors, NULL, 2,
/external/deqp/modules/gles3/functional/
H A Des3fDrawTests.cpp715 std::vector<tcu::Vec4> colors; local
718 colors.push_back(((x + y) % 2 == 0) ? (green) : (yellow));
736 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW);
H A Des3fShaderBuiltinVarTests.cpp708 void renderReference (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, const tcu::Vec4* const positions, const tcu::Vec4* const colors);
794 // Set colors (in dynamic memory to save static data space).
932 void VertexIDCase::renderReference (const tcu::PixelBufferAccess& dst, const int numVertices, const deUint16* const indices, const tcu::Vec4* const positions, const tcu::Vec4* const colors) argument
950 attribs[1].pointer = colors;
/external/deqp/modules/gles31/functional/
H A Des31fDrawTests.cpp107 // of these colors.
847 std::vector<tcu::Vec4> colors; local
850 colors.push_back(((x + y) % 2 == 0) ? (green) : (yellow));
871 ctx.bufferData(GL_ARRAY_BUFFER, colors.size() * sizeof(tcu::Vec4), &colors[0], GL_STATIC_DRAW);
1438 // Elements are indexed by index buffer. Interleave color. Two vertices per position since 2 colors
/external/libpng/contrib/libtests/
H A Dmakepng.c30 * 1 channel: a square image with a diamond, the least luminous colors are on
138 image_size_of_type(int color_type, int bit_depth, unsigned int *colors) argument
140 if (*colors)
171 png_const_bytep gamma_table, unsigned int *colors)
182 switch (colors[0])
185 fprintf(stderr, "makepng: --colors=...: invalid count %u\n",
186 colors[0]);
190 set_color(palette+0, trans+0, colors[1], colors[1], colors[
170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, png_const_bytep gamma_table, unsigned int *colors) argument
310 generate_row(png_bytep row, size_t rowbytes, unsigned int y, int color_type, int bit_depth, png_const_bytep gamma_table, double conv, unsigned int *colors) argument
555 write_png(const char **name, FILE *fp, int color_type, int bit_depth, volatile png_fixed_point gamma, chunk_insert * volatile insert, unsigned int filters, unsigned int *colors) argument
1239 parse_color(char *arg, unsigned int *colors) argument
1283 unsigned int colors[5]; local
[all...]
/external/skia/bench/
H A Dnanobench.cpp697 SkPMColor colors[256]; local
700 info, storage.get(), rowBytes, NULL, colors,
/external/skia/samplecode/
H A DSampleSlides.cpp329 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE, SK_ColorRED }; local
330 return SkGradientShader::CreateLinear(pts, colors, NULL,
331 SK_ARRAY_COUNT(colors), SkShader::kMirror_TileMode);
/external/skia/src/core/
H A DSkPictureRecord.cpp714 const SkColor colors[], SkXfermode* xfer,
721 if (colors) {
740 size += vertexCount * sizeof(SkColor); // + vert colors
761 fWriter.writeMul4(colors, vertexCount * sizeof(SkColor));
775 void SkPictureRecord::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument
778 // op + paint index + patch 12 control points + flag + patch 4 colors + 4 texture coordinates
781 if (colors) {
804 if (colors) {
805 fWriter.write(colors, SkPatchUtils::kNumCorners * sizeof(SkColor));
712 onDrawVertices(VertexMode vmode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode* xfer, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
/external/skia/third_party/etc1/
H A Detc1.cpp387 int r1, g1, b1, r2, g2, b2; // 8 bit base colors for sub-blocks
494 etc1_byte colors[6]; local
496 etc_average_colors_subblock(pIn, inMask, colors, false, false);
497 etc_average_colors_subblock(pIn, inMask, colors + 3, false, true);
502 etc_encode_block_helper(pIn, inMask, colors, &a, false);
/external/deqp/modules/egl/
H A DteglRenderTests.cpp121 vector<Vec4> colors; member in struct:deqp::egl::__anon3133::DrawPrimitiveOp
170 drawOp.colors.resize(drawOp.count*3);
180 tcu::Vec4& color = drawOp.colors[triNdx*3 + coordNdx];
434 attributes[1].pointer = &drawOp->colors[0];
585 gl.vertexAttribPointer(gles2Program.getColorLoc(), 4, GL_FLOAT, GL_FALSE, 0, &drawOp.colors[0]);

Completed in 555 milliseconds

123456789