Home
last modified time | relevance | path

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

/third_party/skia/samplecode/
DSampleCamera.cpp21 SkTArray<sk_sp<SkShader>> fShaders; member in __anon9e5486e10111::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()
/third_party/flutter/skia/samplecode/
DSampleCamera.cpp20 SkTArray<sk_sp<SkShader>> fShaders; member in __anonbc3ab4760111::CameraView
40 fShaders.push_back(bm.makeShader(&matrix)); in onOnceBeforeDraw()
47 if (fShaders.count() > 0) { in onDrawContent()
58 fShaderIndex = (fShaderIndex + 1) % fShaders.count(); in onDrawContent()
63 paint.setShader(fShaders[fShaderIndex]); in onDrawContent()
/third_party/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.cpp81 fShaders.push_back(SkString(shader)); in compileError()
86 fShaders.reset(); in reset()
90 SkTArray<SkString> fShaders; member in CapturingShaderErrorHandler
2738 SkSL::String sksl(gShaderErrorHandler.fShaders[i].c_str()); in drawImGui()
/third_party/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
/third_party/flutter/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.cpp98 fShaders.push_back(mandrill->makeShader(&lm)); in onOnceBeforeDraw()
106 fShaders.push_back(SkGradientShader::MakeSweep(kWheelSize / 2, kWheelSize / 2, in onOnceBeforeDraw()
129 for (const auto& shader : fShaders) { in onDraw()
182 std::vector<sk_sp<SkShader>> fShaders; member in HSLColorFilterGM
/third_party/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()
/third_party/flutter/skia/bench/
DAlternatingColorPatternBench.cpp89 sk_sp<SkShader> fShaders[NUM_DRAWS]; member in AlternatingColorPatternBench
134 fShaders[count] = fPattern1.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
137 fShaders[count] = fPattern2.fIsBitmap ? fBmShader : nullptr; in onDelayedSetup()
152 paint.setShader(fShaders[j]); in onDraw()
/third_party/skia/src/gpu/
DGrGeometryProcessor.h185 return fShaders & (kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag); in willUseTessellationShaders()
245 fShaders |= kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag; in setWillUseTessellationShaders()
266 GrShaderFlags fShaders = kVertex_GrShaderFlag | kFragment_GrShaderFlag; variable
/third_party/skia/experimental/graphite/src/
DContext.cpp61 for (auto& shaderCombo: paintCombo.fShaders) { in preCompile()
/third_party/skia/experimental/graphite/include/
DContext.h47 std::vector<ShaderCombo> fShaders; member
/third_party/flutter/skia/tools/viewer/
DViewer.cpp58 fShaders.push_back(SkString(shader)); in compileError()
63 fShaders.reset(); in reset()
67 SkTArray<SkString> fShaders; member in CapturingShaderErrorHandler
2111 ImGui::TextWrapped("%s", gShaderErrorHandler.fShaders[i].c_str()); in drawImGui()