Searched defs:shader (Results 1 - 25 of 513) sorted by last modified time

1234567891011>>

/external/skia/samplecode/
H A DSampleGradients.cpp149 SkShader* shader; local
150 shader = gGradMakers[j](pts, gGradData[i], (SkShader::TileMode)tm);
151 paint.setShader(shader)->unref();
H A DSampleRepeatTile.cpp40 SkShader* shader = SkShader::CreateBitmapShader(bm, tm, tm); local
41 paint->setShader(shader)->unref();
H A DSampleShaders.cpp42 SkShader* shader = new SkComposeShader(shaderB, shaderA, mode); local
47 return shader;
H A DSampleSlides.cpp232 SkShader* shader = gGradMakers[j](pts, gGradData[i], tm); local
233 paint.setShader(shader);
235 shader->unref();
H A DSampleTiling.cpp45 SkShader* shader = SkShader::CreateBitmapShader(bm, tmx, tmy); local
46 paint->setShader(shader)->unref();
/external/skia/src/animator/
H A DSkDrawPaint.h52 SkDrawShader* shader; member in class:SkDrawPaint
/external/skia/src/core/
H A DSkBitmapProcShader.cpp133 const SkBitmapProcShader& shader, const ContextRec& rec, SkBitmapProcState* state)
134 : INHERITED(shader, rec)
329 SkShader* shader; local
333 shader = SkNEW(SkEmptyShader);
335 shader = allocator->createT<SkEmptyShader>();
340 shader = SkNEW_ARGS(SkColorShader, (color));
342 shader = allocator->createT<SkColorShader>(color);
346 shader = SkNEW_ARGS(SkBitmapProcShader, (src, tmx, tmy, localMatrix));
348 shader = allocator->createT<SkBitmapProcShader>(src, tmx, tmy, localMatrix);
351 return shader;
132 BitmapProcShaderContext( const SkBitmapProcShader& shader, const ContextRec& rec, SkBitmapProcState* state) argument
[all...]
H A DSkBlitter_RGB16.cpp130 // used only if the shader can perform shadSpan16
715 // have the shader blit directly into the device the first time
824 // don't dither if the shader is really 16bit
1026 SkShader* shader = paint.getShader(); local
1029 // we require a shader if there is an xfermode, handled by our caller
1030 SkASSERT(NULL == mode || NULL != shader);
1032 if (shader) {
1043 // no shader, no xfermode, (and we always ignore colorfilter)
H A DSkComposeShader.cpp113 const SkComposeShader& shader, const ContextRec& rec,
115 : INHERITED(shader, rec)
112 ComposeShaderContext( const SkComposeShader& shader, const ContextRec& rec, SkShader::Context* contextA, SkShader::Context* contextB) argument
H A DSkDraw.cpp70 * Since we are providing the storage for the shader (to avoid the perf cost
72 * owners of the shader.
82 // we deliberately left the shader with an owner-count of 2
87 // since fAllocator will destroy shader, we insist that owners == 2
90 fPaint.setShader(NULL); // unref the shader by 1
94 // return the new paint that has the shader applied
100 // Stores the shader.
157 // todo: we can apply colorfilter up front if no shader, so we wouldn't
264 /* If we don't have a shader (i.e. we're just a solid color) we may
1183 // we manually build a shader an
2070 TriColorShaderContext(const SkTriColorShader& shader, const ContextRec& rec) argument
2153 SkShader* shader = p.getShader(); local
[all...]
H A DSkFilterShader.cpp16 SkFilterShader::SkFilterShader(SkShader* shader, SkColorFilter* filter) { argument
17 fShader = shader;
18 shader->ref();
47 // if the filter doesn't support 16bit, clear the matching bit in the shader
51 // if the filter might change alpha, clear the opaque flag in the shader
H A DSkPaint.cpp1528 // return true if the paint is just a single color (i.e. not a shader). If its
1529 // a shader, then we can't compute a const luminance for it :(
2274 SkShader* SkPaint::setShader(SkShader* shader) { argument
2275 GEN_ID_INC_EVAL(shader != fShader);
2276 SkRefCnt_SafeAssign(fShader, shader);
2277 fDirtyBits = set_mask(fDirtyBits, kShader_DirtyBit, shader != NULL);
2278 return shader;
2433 SkShader* shader = this->getShader(); local
2434 if (NULL != shader) {
2436 shader
[all...]
H A DSkPictureShader.cpp127 const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader) {
129 (shader, rec, bitmapShader));
138 const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader)
139 : INHERITED(shader, rec)
126 Create(void* storage, const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader) argument
137 PictureShaderContext( const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader) argument
H A DSkShader.cpp29 SkDebugf("+++ shader counter %d\n", prev + 1);
35 SkDebugf("--- shader counter %d\n", prev - 1);
103 SkShader::Context::Context(const SkShader& shader, const ContextRec& rec) argument
104 : fShader(shader), fCTM(*rec.fMatrix)
264 // V25_COMPATIBILITY_CODE We had a boolean to make the color shader inherit the paint's
293 SkColorShader::ColorShaderContext::ColorShaderContext(const SkColorShader& shader, argument
295 : INHERITED(shader, rec)
297 SkColor color = shader.fColor;
/external/skia/src/device/xps/
H A DSkXPSDevice.cpp977 const SkShader *shader = skPaint.getShader(); local
978 if (NULL == shader) {
988 SkShader::GradientType gradientType = shader->asAGradient(&info);
997 shader->asAGradient(&info);
1013 shader->asAGradient(&info);
1022 SkMatrix localMatrix = shader->getLocalMatrix();
1060 SkShader::BitmapType bitmapType = shader->asABitmap(&outTexture,
1068 SkMatrix localMatrix = shader->getLocalMatrix();
1483 //Draw the clip filling shader.
/external/skia/src/effects/
H A DSkPerlinNoiseShader.cpp445 const SkPerlinNoiseShader& shader, const ContextRec& rec)
446 : INHERITED(shader, rec)
449 newMatrix.preConcat(shader.getLocalMatrix());
629 SkShader* shader = random->nextBool() ? local
638 shader->asNewEffect(context, paint, NULL, &grColor, &effect);
640 SkDELETE(shader);
H A DSkTransparentShader.cpp24 const SkTransparentShader& shader, const ContextRec& rec)
25 : INHERITED(shader, rec)
23 TransparentShaderContext( const SkTransparentShader& shader, const ContextRec& rec) argument
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp255 const SkGradientShaderBase& shader, const ContextRec& rec)
256 : INHERITED(shader, rec)
257 , fCache(shader.refCache(getPaintAlpha()))
261 fDstToIndex.setConcat(shader.fPtsToUnit, inverse);
270 if (shader.fColorsAreOpaque && paintAlpha == 0xFF) {
275 if (shader.fColorsAreOpaque) {
281 U8CPU alpha, const SkGradientShaderBase& shader)
283 , fShader(shader)
981 // shader as thekBeforeIterp case). This same optimization applies to the 3 color case below.
1027 const SkGradientShaderBase& shader,
254 GradientShaderBaseContext( const SkGradientShaderBase& shader, const ContextRec& rec) argument
280 GradientShaderCache( U8CPU alpha, const SkGradientShaderBase& shader) argument
1026 GrGradientEffect(GrContext* ctx, const SkGradientShaderBase& shader, const SkMatrix& matrix, SkShader::TileMode tileMode) argument
[all...]
H A DSkLinearGradient.cpp84 const SkLinearGradient& shader, const ContextRec& rec)
85 : INHERITED(shader, rec)
484 const SkLinearGradient& shader,
487 AutoEffectUnref effect(SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm)));
502 const SkLinearGradient& shader,
505 : INHERITED(ctx, shader, matrix, tm) { }
527 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateLinear(points,
533 shader->asNewEffect(context, paint, NULL, &grColor, &effect);
83 LinearGradientContext( const SkLinearGradient& shader, const ContextRec& rec) argument
483 Create(GrContext* ctx, const SkLinearGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
501 GrLinearGradient(GrContext* ctx, const SkLinearGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
H A DSkRadialGradient.cpp169 const SkRadialGradient& shader, const ContextRec& rec)
170 : INHERITED(shader, rec) {}
493 const SkRadialGradient& shader,
496 AutoEffectUnref effect(SkNEW_ARGS(GrRadialGradient, (ctx, shader, matrix, tm)));
511 const SkRadialGradient& shader,
514 : INHERITED(ctx, shader, matrix, tm) {
538 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateRadial(center, radius,
544 shader->asNewEffect(context, paint, NULL, &grColor, &effect);
168 RadialGradientContext( const SkRadialGradient& shader, const ContextRec& rec) argument
492 Create(GrContext* ctx, const SkRadialGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
510 GrRadialGradient(GrContext* ctx, const SkRadialGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
H A DSkSweepGradient.cpp64 const SkSweepGradient& shader, const ContextRec& rec)
65 : INHERITED(shader, rec) {}
209 const SkSweepGradient& shader,
211 AutoEffectUnref effect(SkNEW_ARGS(GrSweepGradient, (ctx, shader, matrix)));
225 const SkSweepGradient& shader,
227 : INHERITED(ctx, shader, matrix, SkShader::kClamp_TileMode) { }
248 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateSweep(center.fX, center.fY,
253 shader->asNewEffect(context, paint, NULL, &grColor, &effect);
63 SweepGradientContext( const SkSweepGradient& shader, const ContextRec& rec) argument
208 Create(GrContext* ctx, const SkSweepGradient& shader, const SkMatrix& matrix) argument
224 GrSweepGradient(GrContext* ctx, const SkSweepGradient& shader, const SkMatrix& matrix) argument
H A DSkTwoPointConicalGradient.cpp214 // shader as opaque even if the gradient itself is opaque.
229 const SkTwoPointConicalGradient& shader, const ContextRec& rec)
230 : INHERITED(shader, rec)
228 TwoPointConicalGradientContext( const SkTwoPointConicalGradient& shader, const ContextRec& rec) argument
H A DSkTwoPointConicalGradient_gpu.cpp37 static void set_matrix_edge_conical(const SkTwoPointConicalGradient& shader, argument
41 const SkPoint& center1 = shader.getStartCenter();
42 const SkPoint& center2 = shader.getEndCenter();
63 const SkTwoPointConicalGradient& shader,
66 AutoEffectUnref effect(SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm)));
92 const SkTwoPointConicalGradient& shader,
95 : INHERITED(ctx, shader, matrix, tm),
96 fCenterX1(shader.getCenterX1()),
97 fRadius0(shader.getStartRadius()),
98 fDiffRadius(shader
62 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
91 Edge2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm) argument
306 set_matrix_focal_conical(const SkTwoPointConicalGradient& shader, SkMatrix* invLMatrix, SkScalar* focalX) argument
369 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument
396 FocalOutside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument
584 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument
609 FocalInside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, SkScalar focalX) argument
761 set_matrix_circle_conical(const SkTwoPointConicalGradient& shader, SkMatrix* invLMatrix, CircleConicalInfo* info) argument
818 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument
850 CircleInside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument
1031 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument
1067 CircleOutside2PtConicalEffect(GrContext* ctx, const SkTwoPointConicalGradient& shader, const SkMatrix& matrix, SkShader::TileMode tm, const CircleConicalInfo& info) argument
1288 Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, SkShader::TileMode tm, const SkMatrix* localMatrix) argument
[all...]
H A DSkTwoPointRadialGradient.cpp237 const SkTwoPointRadialGradient& shader, const ContextRec& rec)
238 : INHERITED(shader, rec)
438 const SkTwoPointRadialGradient& shader,
441 AutoEffectUnref effect(SkNEW_ARGS(GrRadial2Gradient, (ctx, shader, matrix, tm)));
470 const SkTwoPointRadialGradient& shader,
473 : INHERITED(ctx, shader, matrix, tm)
474 , fCenterX1(shader.getCenterX1())
475 , fRadius0(shader.getStartRadius())
476 , fPosRoot(shader.getDiffRadius() < 0) {
529 SkAutoTUnref<SkShader> shader(SkGradientShade
236 TwoPointRadialGradientContext( const SkTwoPointRadialGradient& shader, const ContextRec& rec) argument
[all...]
/external/skia/src/gpu/
H A DSkGr.cpp453 // in a shader.
511 SkShader* shader = skPaint.getShader(); local
512 if (NULL == shader) {
531 // setup the shader as the first color effect on the paint
534 if (shader->asNewEffect(context, skPaint, NULL, &grColor, &grEffect) && NULL != grEffect) {
542 // If the shader can be seen as an effect it returns true and adds its effect to the grpaint.

Completed in 2001 milliseconds

1234567891011>>