Home
last modified time | relevance | path

Searched refs:fColorCount (Results 1 – 19 of 19) sorted by relevance

/external/skia/tests/
DGradientTest.cpp41 int fColorCount; member
51 SkAutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck()
52 SkAutoTMalloc<SkScalar> posStorage(fColorCount); in gradCheck()
54 info->fColorCount = fColorCount; in gradCheck()
59 REPORTER_ASSERT(reporter, info->fColorCount == fColorCount); in gradCheck()
61 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck()
63 !memcmp(info->fColorOffsets, fPos, fColorCount * sizeof(SkScalar))); in gradCheck()
80 info.fColorCount = 0; in color_gradproc()
82 REPORTER_ASSERT(reporter, 1 == info.fColorCount); in color_gradproc()
89 rec.fColorCount, in linear_gradproc()
[all …]
DGifTest.cpp222 options.fColorCount = colorCountPtr; in DEF_TEST()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp95 fColorCount = desc.fCount; in SkGradientShaderBase()
102 fColorCount += dummyFirst + dummyLast; in SkGradientShaderBase()
105 if (fColorCount > kColorStorageCount) { in SkGradientShaderBase()
111 sk_malloc_throw(size * fColorCount)); in SkGradientShaderBase()
130 if (desc.fPos && fColorCount) { in SkGradientShaderBase()
131 fOrigPos = (SkScalar*)(fOrigColors + fColorCount); in SkGradientShaderBase()
132 fRecs = (Rec*)(fOrigPos + fColorCount); in SkGradientShaderBase()
135 fRecs = (Rec*)(fOrigColors + fColorCount); in SkGradientShaderBase()
138 if (fColorCount > 2) { in SkGradientShaderBase()
194 SkASSERT(2 == fColorCount); in SkGradientShaderBase()
[all …]
DSk4fGradientBase.cpp134 SkASSERT(shader.fColorCount > 1); in GradientShaderBase4fContext()
139 int last_index = shader.fColorCount - 1; in GradientShaderBase4fContext()
183 const SkScalar dt = direction * SK_Scalar1 / (shader.fColorCount - 1); in GradientShaderBase4fContext()
DSkGradientShaderPriv.h233 int fColorCount; variable
DSkLinearGradient.cpp118 int count = shader.fColorCount; in LinearGradientContext()
/external/skia/src/pdf/
DSkPDFShader.cpp135 SkAutoSTMalloc<4, ColorTuple> colorDataAlloc(info.fColorCount); in gradientFunctionCode()
138 for (int i = 0; i < info.fColorCount; i++) { in gradientFunctionCode()
155 for (int i = 1 ; i < info.fColorCount; i++) { in gradientFunctionCode()
176 result->appendScalar(colorData[info.fColorCount - 1][0]); in gradientFunctionCode()
178 result->appendScalar(colorData[info.fColorCount - 1][1]); in gradientFunctionCode()
180 result->appendScalar(colorData[info.fColorCount - 1][2]); in gradientFunctionCode()
1054 if (fInfo.fColorCount != b.fInfo.fColorCount || in operator ==()
1056 sizeof(SkColor) * fInfo.fColorCount) != 0 || in operator ==()
1058 sizeof(SkScalar) * fInfo.fColorCount) != 0 || in operator ==()
1096 fInfo.fColorCount = 0; in State()
[all …]
DSkPDFDevice.cpp2125 gradientInfo.fColorCount = 1; in populateGraphicStateEntryFromPaint()
/external/skia/include/codec/
DSkAndroidCodec.h140 , fColorCount(nullptr) in AndroidOptions()
177 int* fColorCount; member
/external/skia/src/svg/
DSkSVGDevice.cpp420 grInfo.fColorCount = 0; in addShaderResources()
427 SkAutoSTArray<16, SkColor> grColors(grInfo.fColorCount); in addShaderResources()
428 SkAutoSTArray<16, SkScalar> grOffsets(grInfo.fColorCount); in addShaderResources()
434 SkASSERT(grInfo.fColorCount <= grColors.count()); in addShaderResources()
435 SkASSERT(grInfo.fColorCount <= grOffsets.count()); in addShaderResources()
489 SkASSERT(info.fColorCount >= 2); in addLinearGradientDef()
490 for (int i = 0; i < info.fColorCount; ++i) { in addLinearGradientDef()
/external/skia/src/codec/
DSkSampledCodec.cpp83 options.fColorPtr, options.fColorCount); in onGetAndroidPixels()
109 scaledSize.height()), &codecOptions, options.fColorPtr, options.fColorCount); in onGetAndroidPixels()
180 options.fColorPtr, options.fColorCount); in sampledDecode()
DSkRawAdapterCodec.cpp29 options.fColorCount); in onGetAndroidPixels()
DSkWebpAdapterCodec.cpp44 options.fColorCount); in onGetAndroidPixels()
/external/skia/src/core/
DSkShader.cpp323 if (info->fColors && info->fColorCount >= 1) { in asAGradient()
326 info->fColorCount = 1; in asAGradient()
/external/skia/src/device/xps/
DSkXPSDevice.cpp862 transform_offsets(info.fColorOffsets, info.fColorCount, in createXpsLinearGradient()
894 for (int i = 2; i < info.fColorCount; ++i) { in createXpsLinearGradient()
971 for (int i = 2; i < info.fColorCount; ++i) { in createXpsRadialGradient()
1001 info.fColorCount = 0; in createXpsBrush()
1010 SkASSERT(1 == info.fColorCount); in createXpsBrush()
1019 if (info.fColorCount == 0) { in createXpsBrush()
1025 SkAutoTArray<SkColor> colors(info.fColorCount); in createXpsBrush()
1026 SkAutoTArray<SkScalar> colorOffsets(info.fColorCount); in createXpsBrush()
1031 if (1 == info.fColorCount) { in createXpsBrush()
/external/skia/src/android/
DSkBitmapRegionCodec.cpp126 options.fColorCount = colorCountPtr; in decodeRegion()
/external/skia/include/core/
DSkShader.h254 int fColorCount; //!< In-out parameter, specifies passed size member
/external/skia/src/utils/
DSkLua.cpp1268 info.fColorCount = 3; in lshader_asAGradient()
1277 setfield_number(L, "colorCount", info.fColorCount); in lshader_asAGradient()
1280 if (info.fColorCount == 3){ in lshader_asAGradient()
/external/skia/dm/
DDMSrcSink.cpp705 options.fColorCount = colorCountPtr; in draw()