Home
last modified time | relevance | path

Searched refs:setShader (Results 1 – 25 of 162) sorted by relevance

1234567

/external/skia/samplecode/
DSampleShaders.cpp104 paint.setShader(fShader); in onDrawContent()
115 paint.setShader(NULL); in onDrawContent()
117 paint.setShader(make_bitmapfade(fBitmap))->unref(); in onDrawContent()
120 paint.setShader(new SkTransparentShader)->unref(); in onDrawContent()
DSampleGradients.cpp26 p.setShader(setgrad(r, 0xFF00FF00, 0x0000FF00))->unref(); in test_alphagradients()
31 p.setShader(setgrad(r, 0xFF00FF00, 0x00000000))->unref(); in test_alphagradients()
36 p.setShader(setgrad(r, 0xFF00FF00, 0x00FF0000))->unref(); in test_alphagradients()
151 paint.setShader(shader)->unref(); in onDrawContent()
DSamplePatch.cpp285 paint.setShader(fShader0); in onDrawContent()
297 paint.setShader(NULL); in onDrawContent()
305 paint.setShader(fShader1); in onDrawContent()
310 paint.setShader(s)->unref(); in onDrawContent()
316 paint.setShader(s)->unref(); in onDrawContent()
DSampleAll.cpp402 paint.setShader(SkShader::CreateBitmapShader(fTx, in drawPicture()
421 paint.setShader(linear)->unref(); in drawPicture()
431 paint.setShader(transparentShader)->unref(); in drawPicture()
440 paint.setShader(radial)->unref(); in drawPicture()
444 paint.setShader(NULL); in drawPicture()
455 paint.setShader(shaderTest())->unref(); // test compose shader in drawPicture()
457 paint.setShader(NULL); in drawPicture()
DSampleVertices.cpp98 paint.setShader(NULL); in onDrawContent()
105 paint.setShader(fShader0); in onDrawContent()
112 paint.setShader(fShader1); in onDrawContent()
/external/skia/gm/
Dgradients.cpp139 paint.setShader(shader); in onDraw()
193 paint.setShader(shader); in onDraw()
278 paint.setShader(s)->unref(); in onDraw()
316 paint.setShader(shader); in onDraw()
358 paint.setShader(shader)->unref(); in onDraw()
416 paint1.setShader(sweep); in onDraw()
417 paint2.setShader(radial1); in onDraw()
418 paint3.setShader(radial2); in onDraw()
454 paint.setShader(fShader); in onDraw()
Dgradtext.cpp59 paint.setShader(make_chrome_solid())->unref(); in onDraw()
87 paint.setShader(make_chrome_solid())->unref(); in onDraw()
143 paint.setShader(make_grad(SkIntToScalar(80)))->unref(); in onDraw()
148 paint.setShader(make_grad2(SkIntToScalar(80)))->unref(); in onDraw()
Dxfermodes2.cpp54 p.setShader(fBG); in onDraw()
60 p.setShader(fDst); in onDraw()
62 p.setShader(fSrc); in onDraw()
70 p.setShader(NULL); in onDraw()
Dgammatext.cpp56 paint.setShader(s)->unref(); in drawGrad()
119 paint->setShader(NULL); in draw_pair()
121 paint->setShader(SkShader::CreateColorShader(paint->getColor()))->unref(); in draw_pair()
123 paint->setShader(shader); in draw_pair()
Dpatch.cpp133 paint.setShader(shader); in onDraw()
135 paint.setShader(NULL); in onDraw()
138 paint.setShader(shader); in onDraw()
140 paint.setShader(NULL); in onDraw()
Dcomposeshader.cpp66 paint.setShader(fShader); in onDraw()
105 paint.setShader(NULL); in onDraw()
109 paint.setShader(shader); in onDraw()
Dshadertext3.cpp29 paint.setShader(SkGradientShader::CreateLinear(kPts0, kColors0, kPos, in makebm()
32 paint.setShader(SkGradientShader::CreateLinear(kPts1, kColors1, kPos, in makebm()
113 fillPaint.setShader(shader); in onDraw()
Dbadpaint.cpp35 fPaints.back().setShader(SkShader::CreateBitmapShader(emptyBmp, SkShader::kClamp_TileMode, in onOnceBeforeDraw()
40 fPaints.back().setShader(SkShader::CreateBitmapShader(blueBmp, SkShader::kClamp_TileMode, in onOnceBeforeDraw()
Dcolortypexfermode.cpp41 paint.setShader(s)->unref(); in ColorTypeXfermodeGM()
136 p.setShader(s); in onDraw()
141 p.setShader(NULL); in onDraw()
Dtexturedomaineffect.cpp51 paint.setShader(SkGradientShader::CreateSweep(65.f, 75.f, colors1, in onOnceBeforeDraw()
57 paint.setShader(SkGradientShader::CreateSweep(45.f, 55.f, colors2, NULL, in onOnceBeforeDraw()
64 paint.setShader(SkGradientShader::CreateSweep(25.f, 35.f, colors3, NULL, in onOnceBeforeDraw()
Dalphagradients.cpp33 paint.setShader(s)->unref(); in draw_grad()
36 paint.setShader(NULL); in draw_grad()
Dperlinnoise.cpp46 paint.setShader(shader)->unref(); in test()
118 paint->setShader(shader)->unref(); in install()
157 paint.setShader(SkShader::CreateLocalMatrixShader(paint.getShader(), lm))->unref(); in onDraw()
Dtransparency.cpp38 p.setShader(shader); in make_transparency()
57 paint.setShader(create_checkerboard_shader(c1, c2, size))->unref(); in checkerboard()
Dbitmapshader.cpp39 paint->setShader(shader); in adopt_shader()
87 paint.setShader(NULL); in onDraw()
Dshaderbounds.cpp65 paint.setShader(MakeShader(559, 387, false))->unref(); in onDraw()
71 paint.setShader(MakeShader(101, 151, true))->unref(); in onDraw()
Dxfermodes3.cpp98 modePaint.setShader(fBmpShader); in onDraw()
159 bgPaint.setShader(fBGShader); in drawMode()
205 bmpPaint.setShader(SkGradientShader::CreateRadial(kCenter, in onOnceBeforeDraw()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DXYPlotWithBgImgActivity.java34 plot.getGraphWidget().getGridBackgroundPaint().setShader(WHITE_SHADER); in onCreate()
123 plot.getGraphWidget().getGridBackgroundPaint().setShader( in onGraphStyleToggle()
126 plot.getGraphWidget().getGridBackgroundPaint().setShader(WHITE_SHADER); in onGraphStyleToggle()
/external/skia/bench/
DAlternatingColorPatternBench.cpp53 paint.setShader(SkGradientShader::CreateLinear(kPts0, kColors0, kPos, in makebm()
56 paint.setShader(SkGradientShader::CreateLinear(kPts1, kColors1, kPos, in makebm()
157 paint.setShader(fShaders[j]); in onDraw()
/external/skia/src/views/
DSkProgressView.cpp96 p.setShader(fOnShader); in onDraw()
100 p.setShader(fOffShader); in onDraw()
/external/skia/example/
DHelloWorld.cpp116 paint.setShader(shader); in drawContents()
122 paint.setShader(NULL); in drawContents()

1234567