Home
last modified time | relevance | path

Searched refs:fShader (Results 1 – 25 of 55) sorted by relevance

123

/external/skia/src/core/
DSkFilterShader.cpp17 fShader = shader; in SkFilterShader()
26 fShader = buffer.readShader(); in SkFilterShader()
32 fShader->unref(); in ~SkFilterShader()
37 buffer.writeFlattenable(fShader); in flatten()
42 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in getFlags()
60 SkShader::Context* shaderContext = fShader->createContext(rec, shaderContextStorage); in onCreateContext()
68 return sizeof(FilterShaderContext) + fShader->contextSize(); in contextSize()
82 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in shadeSpan()
89 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in shadeSpan16()
103 fShader->toString(str); in toString()
DSkFilterShader.h54 SkShader* fShader;
/external/chromium_org/third_party/skia/src/core/
DSkFilterShader.cpp17 fShader = shader; in SkFilterShader()
26 fShader = buffer.readShader(); in SkFilterShader()
33 fShader->unref(); in ~SkFilterShader()
46 buffer.writeFlattenable(fShader); in flatten()
51 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in getFlags()
69 SkShader::Context* shaderContext = fShader->createContext(rec, shaderContextStorage); in onCreateContext()
77 return sizeof(FilterShaderContext) + fShader->contextSize(); in contextSize()
91 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in shadeSpan()
98 const SkFilterShader& filterShader = static_cast<const SkFilterShader&>(fShader); in shadeSpan16()
112 fShader->toString(str); in toString()
DSkFilterShader.h56 SkShader* fShader;
/external/skia/src/effects/
DSkRectShaderImageFilter.cpp33 , fShader(s) { in SkRectShaderImageFilter()
40 fShader = buffer.readShader(); in SkRectShaderImageFilter()
46 buffer.writeFlattenable(fShader); in flatten()
50 SkSafeUnref(fShader); in ~SkRectShaderImageFilter()
73 paint.setShader(SkShader::CreateLocalMatrixShader(fShader, matrix))->unref(); in onFilterImage()
/external/skia/samplecode/
DSampleAvoid.cpp17 SkShader* fShader; member in AvoidView
29 fShader = SkGradientShader::CreateLinear(pts, colors, NULL, in AvoidView()
34 fShader = SkGradientShader::CreateRadial(pts[0], SkIntToScalar(H)/5, in AvoidView()
42 fShader->unref(); in ~AvoidView()
60 paint.setShader(fShader); in onDrawContent()
DSampleShaders.cpp52 SkShader* fShader; member in ShaderView
75 fShader = new SkComposeShader(shaderA, shaderB, mode); in ShaderView()
81 SkSafeUnref(fShader); in ~ShaderView()
104 paint.setShader(fShader); in onDrawContent()
DSampleColorFilter.cpp127 SkShader* fShader; member in ColorFilterView
134 fShader = createChecker(); in ColorFilterView()
142 fShader->unref(); in ~ColorFilterView()
157 paint.setShader(fShader); in onDrawBackground()
/external/chromium_org/third_party/skia/samplecode/
DSampleAvoid.cpp17 SkShader* fShader; member in AvoidView
29 fShader = SkGradientShader::CreateLinear(pts, colors, NULL, in AvoidView()
34 fShader = SkGradientShader::CreateRadial(pts[0], SkIntToScalar(H)/5, in AvoidView()
42 fShader->unref(); in ~AvoidView()
60 paint.setShader(fShader); in onDrawContent()
DSampleShaders.cpp52 SkShader* fShader; member in ShaderView
75 fShader = new SkComposeShader(shaderA, shaderB, mode); in ShaderView()
81 SkSafeUnref(fShader); in ~ShaderView()
104 paint.setShader(fShader); in onDrawContent()
DSampleColorFilter.cpp127 SkShader* fShader; member in ColorFilterView
134 fShader = createChecker(); in ColorFilterView()
142 fShader->unref(); in ~ColorFilterView()
157 paint.setShader(fShader); in onDrawBackground()
/external/chromium_org/third_party/skia/gm/
Dsamplerstress.cpp23 , fShader(NULL) in SamplerStressGM()
74 if (fShader.get()) { in createShader()
80 fShader.reset(SkShader::CreateBitmapShader(fTexture, in createShader()
106 paint.setShader(fShader.get()); in onDraw()
146 SkAutoTUnref<SkShader> fShader; member in skiagm::SamplerStressGM
Dvertices.cpp29 SkShader* fShader; member in VerticesGM
33 VerticesGM(unsigned alpha) : fShader(NULL), fAlpha(alpha) { in VerticesGM()
37 SkSafeUnref(fShader); in ~VerticesGM()
60 fShader = make_shader(w, h); in onOnceBeforeDraw()
103 paint.setShader(fShader); in onDraw()
Dcomposeshader.cpp44 fShader = make_shader(SkXfermode::kDstIn_Mode); in ComposeShaderGM()
48 SkSafeUnref(fShader); in ~ComposeShaderGM()
66 paint.setShader(fShader); in onDraw()
71 SkShader* fShader; member in ComposeShaderGM
Dtextblobshader.cpp69 fShader.reset(SkGradientShader::CreateRadial(SkPoint::Make(SkIntToScalar(sz.width() / 2), in onOnceBeforeDraw()
91 p.setShader(fShader); in onDraw()
109 SkAutoTUnref<SkShader> fShader; member in TextBlobShaderGM
/external/skia/gm/
Dsamplerstress.cpp23 , fShader(NULL) in SamplerStressGM()
74 if (NULL != fShader.get()) { in createShader()
80 fShader.reset(SkShader::CreateBitmapShader(fTexture, in createShader()
105 paint.setShader(fShader.get()); in onDraw()
145 SkAutoTUnref<SkShader> fShader; member in skiagm::SamplerStressGM
Dvertices.cpp29 SkShader* fShader; member in VerticesGM
33 VerticesGM(unsigned alpha) : fShader(NULL), fAlpha(alpha) { in VerticesGM()
37 SkSafeUnref(fShader); in ~VerticesGM()
60 fShader = make_shader(w, h); in onOnceBeforeDraw()
103 paint.setShader(fShader); in onDraw()
Dcomposeshader.cpp44 fShader = make_shader(SkXfermode::kDstIn_Mode); in ComposeShaderGM()
48 SkSafeUnref(fShader); in ~ComposeShaderGM()
70 paint.setShader(fShader); in onDraw()
75 SkShader* fShader; member in ComposeShaderGM
/external/chromium_org/third_party/skia/src/effects/
DSkRectShaderImageFilter.cpp34 , fShader(s) { in SkRectShaderImageFilter()
42 fShader = buffer.readShader(); in SkRectShaderImageFilter()
54 buffer.writeFlattenable(fShader); in flatten()
58 SkSafeUnref(fShader); in ~SkRectShaderImageFilter()
81 paint.setShader(SkShader::CreateLocalMatrixShader(fShader, matrix))->unref(); in onFilterImage()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp283 , fShader(shader) in GradientShaderCache()
502 if (cache->fShader.fColorCount == 2) { in initCache16()
503 Build16bitCache(cache->fCache16, cache->fShader.fOrigColors[0], in initCache16()
504 cache->fShader.fOrigColors[1], kCache16Count); in initCache16()
506 Rec* rec = cache->fShader.fRecs; in initCache16()
508 for (int i = 1; i < cache->fShader.fColorCount; i++) { in initCache16()
513 Build16bitCache(cache->fCache16 + prevIndex, cache->fShader.fOrigColors[i-1], in initCache16()
514 cache->fShader.fOrigColors[i], nextIndex - prevIndex + 1); in initCache16()
537 if (cache->fShader.fColorCount == 2) { in initCache32()
538 Build32bitCache(cache->fCache32, cache->fShader.fOrigColors[0], in initCache32()
[all …]
/external/chromium_org/third_party/skia/src/effects/gradients/
DSkGradientShader.cpp380 , fShader(shader) in GradientShaderCache()
599 if (cache->fShader.fColorCount == 2) { in initCache16()
600 Build16bitCache(cache->fCache16, cache->fShader.fOrigColors[0], in initCache16()
601 cache->fShader.fOrigColors[1], kCache16Count); in initCache16()
603 Rec* rec = cache->fShader.fRecs; in initCache16()
605 for (int i = 1; i < cache->fShader.fColorCount; i++) { in initCache16()
610 Build16bitCache(cache->fCache16 + prevIndex, cache->fShader.fOrigColors[i-1], in initCache16()
611 cache->fShader.fOrigColors[i], nextIndex - prevIndex + 1); in initCache16()
631 if (cache->fShader.fColorCount == 2) { in initCache32()
632 Build32bitCache(cache->fCache32, cache->fShader.fOrigColors[0], in initCache32()
[all …]
/external/chromium_org/third_party/skia/bench/
DGradientBench.cpp205 SkShader* fShader; member in GradientBench
240 fShader = this->makeShader(gradType, data, tm, scale); in GradientBench()
254 fShader = this->makeShader(gradType, data, SkShader::kClamp_TileMode, 1.0f); in GradientBench()
259 fShader->unref(); in ~GradientBench()
271 paint.setShader(fShader); in onDraw()
/external/skia/bench/
DGradientBench.cpp205 SkShader* fShader; member in GradientBench
241 fShader = this->makeShader(gradType, data, tm, scale); in GradientBench()
255 fShader = this->makeShader(gradType, data, SkShader::kClamp_TileMode, 1.0f); in GradientBench()
260 fShader->unref(); in ~GradientBench()
272 paint.setShader(fShader); in onDraw()
/external/skia/include/effects/
DSkRectShaderImageFilter.h45 SkShader* fShader; variable
/external/chromium_org/third_party/skia/include/effects/
DSkRectShaderImageFilter.h47 SkShader* fShader; variable

123