Home
last modified time | relevance | path

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

/external/skia/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/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/gm/
Dgammatext.cpp110 sk_sp<SkShader> fShaders[3]; member in GammaShaderTextGM
116 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in GammaShaderTextGM()
131 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onOnceBeforeDraw()
132 fShaders[i] = make_gradient(fColors[i]); in onOnceBeforeDraw()
142 for (size_t i = 0; i < SK_ARRAY_COUNT(fShaders); ++i) { in onDraw()
143 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/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/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/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()