/external/skia/tests/ |
D | GradientTest.cpp | 41 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 …]
|
D | GifTest.cpp | 222 options.fColorCount = colorCountPtr; in DEF_TEST()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 95 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 …]
|
D | Sk4fGradientBase.cpp | 134 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()
|
D | SkGradientShaderPriv.h | 233 int fColorCount; variable
|
D | SkLinearGradient.cpp | 118 int count = shader.fColorCount; in LinearGradientContext()
|
/external/skia/src/pdf/ |
D | SkPDFShader.cpp | 135 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 …]
|
D | SkPDFDevice.cpp | 2125 gradientInfo.fColorCount = 1; in populateGraphicStateEntryFromPaint()
|
/external/skia/include/codec/ |
D | SkAndroidCodec.h | 140 , fColorCount(nullptr) in AndroidOptions() 177 int* fColorCount; member
|
/external/skia/src/svg/ |
D | SkSVGDevice.cpp | 420 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/ |
D | SkSampledCodec.cpp | 83 options.fColorPtr, options.fColorCount); in onGetAndroidPixels() 109 scaledSize.height()), &codecOptions, options.fColorPtr, options.fColorCount); in onGetAndroidPixels() 180 options.fColorPtr, options.fColorCount); in sampledDecode()
|
D | SkRawAdapterCodec.cpp | 29 options.fColorCount); in onGetAndroidPixels()
|
D | SkWebpAdapterCodec.cpp | 44 options.fColorCount); in onGetAndroidPixels()
|
/external/skia/src/core/ |
D | SkShader.cpp | 323 if (info->fColors && info->fColorCount >= 1) { in asAGradient() 326 info->fColorCount = 1; in asAGradient()
|
/external/skia/src/device/xps/ |
D | SkXPSDevice.cpp | 862 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/ |
D | SkBitmapRegionCodec.cpp | 126 options.fColorCount = colorCountPtr; in decodeRegion()
|
/external/skia/include/core/ |
D | SkShader.h | 254 int fColorCount; //!< In-out parameter, specifies passed size member
|
/external/skia/src/utils/ |
D | SkLua.cpp | 1268 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/ |
D | DMSrcSink.cpp | 705 options.fColorCount = colorCountPtr; in draw()
|