Home
last modified time | relevance | path

Searched refs:fShaders (Results 1 – 13 of 13) sorted by relevance

/external/skia/samplecode/
DSampleCamera.cpp21 SkTArray<sk_sp<SkShader>> fShaders; member in __anon5a244cb70111::CameraView
39 fShaders.push_back(bm.makeShader(SkSamplingOptions(SkFilterMode::kLinear), in onOnceBeforeDraw()
47 if (fShaders.count() > 0) { in onDrawContent()
58 fShaderIndex = (fShaderIndex + 1) % fShaders.count(); in onDrawContent()
63 paint.setShader(fShaders[fShaderIndex]); in onDrawContent()
/external/skqp/samplecode/
DSampleCamera.cpp23 SkTArray<sk_sp<SkShader>> fShaders; member in CameraView
42 fShaders.push_back(SkShader::MakeBitmapShader(bm, in CameraView()
71 if (fShaders.count() > 0) { in onDrawContent()
75 fShaderIndex = (fShaderIndex + 1) % fShaders.count(); in onDrawContent()
79 paint.setShader(fShaders[fShaderIndex]); in onDrawContent()
/external/skia/tools/viewer/
DSkSLSlide.cpp58 fShaders.push_back(std::make_pair("Null", nullptr)); in load()
61 fShaders.push_back(std::make_pair("Linear Gradient", shader)); in load()
65 fShaders.push_back(std::make_pair("Radial Gradient", shader)); in load()
68 fShaders.push_back(std::make_pair("Sweep Gradient", shader)); in load()
71 fShaders.push_back(std::make_pair("Mandrill", shader)); in load()
80 fShaders.reset(); in unload()
222 std::find_if(fShaders.begin(), fShaders.end(), [tgt = fChildren[c.index]](auto p) { in draw()
225 SkASSERT(curShader != fShaders.end()); in draw()
228 for (const auto& namedShader : fShaders) { in draw()
DSkSLSlide.h56 SkTArray<std::pair<const char*, sk_sp<SkShader>>> fShaders; variable
DViewer.cpp76 fShaders.push_back(SkString(shader)); in compileError()
81 fShaders.reset(); in reset()
85 SkTArray<SkString> fShaders; member in CapturingShaderErrorHandler
2564 SkSL::String sksl(gShaderErrorHandler.fShaders[i].c_str()); in drawImGui()
/external/skia/gm/
Dgammatext.cpp120 sk_sp<SkShader> fShaders[3]; member in GammaShaderTextGM
126 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM()
141 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onOnceBeforeDraw()
142 fShaders[i] = make_gradient(fColors[i]); in onOnceBeforeDraw()
152 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
153 draw_pair(canvas, font, fColors[i], fShaders[i]); in onDraw()
Dpictureshadertile.cpp137 fShaders[i] = pictureRef->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in onOnceBeforeDraw()
148 for (unsigned i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
149 paint.setShader(fShaders[i]); in onDraw()
160 sk_sp<SkShader> fShaders[SK_ARRAY_COUNT(tiles)]; member in PictureShaderTileGM
Dcolorfilters.cpp96 fShaders.push_back(mandrill->makeShader(SkSamplingOptions(), &lm)); in onOnceBeforeDraw()
104 fShaders.push_back(SkGradientShader::MakeSweep(kWheelSize / 2, kWheelSize / 2, in onOnceBeforeDraw()
127 for (const auto& shader : fShaders) { in onDraw()
180 std::vector<sk_sp<SkShader>> fShaders; member in HSLColorFilterGM
/external/skqp/gm/
Dgammatext.cpp112 sk_sp<SkShader> fShaders[3]; member in GammaShaderTextGM
118 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM()
133 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onOnceBeforeDraw()
134 fShaders[i] = make_gradient(fColors[i]); in onOnceBeforeDraw()
144 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
145 draw_pair(canvas, font, fColors[i], fShaders[i]); in onDraw()
Dpictureshadertile.cpp127 fShaders[i] = SkShader::MakePictureShader(pictureRef, SkShader::kRepeat_TileMode, in onOnceBeforeDraw()
139 for (unsigned i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
140 paint.setShader(fShaders[i]); in onDraw()
151 sk_sp<SkShader> fShaders[SK_ARRAY_COUNT(tiles)]; member in PictureShaderTileGM
/external/skia/bench/
DAlternatingColorPatternBench.cpp89 sk_sp<SkShader> fShaders[NUM_DRAWS]; member in AlternatingColorPatternBench
135 fShaders[count] = fPattern1.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
138 fShaders[count] = fPattern2.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
152 paint.setShader(fShaders[j]); in onDraw()
/external/skqp/bench/
DAlternatingColorPatternBench.cpp89 sk_sp<SkShader> fShaders[NUM_DRAWS]; member in AlternatingColorPatternBench
136 fShaders[count] = fPattern1.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
139 fShaders[count] = fPattern2.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
154 paint.setShader(fShaders[j]); in onDraw()
/external/skia/src/gpu/
DGrGeometryProcessor.h172 return fShaders & (kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag); in willUseTessellationShaders()
176 return fShaders & kGeometry_GrShaderFlag; in willUseGeoShader()
238 fShaders |= kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag; in setWillUseTessellationShaders()
240 void setWillUseGeoShader() { fShaders |= kGeometry_GrShaderFlag; } in setWillUseGeoShader()
260 GrShaderFlags fShaders = kVertex_GrShaderFlag | kFragment_GrShaderFlag; variable