/external/skia/src/gpu/glsl/ |
D | GrGLSLGeometryProcessor.h | 27 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 30 this->setTransformDataMatrix(SkMatrix::I(), pdman, index, transforms); in setTransformData() 36 const GrGLSLProgramDataManager& pdman, in setTransformDataHelper() argument 40 this->setTransformDataMatrix(gp.localMatrix(), pdman, index, transforms); in setTransformDataHelper() 100 const GrGLSLProgramDataManager& pdman, in setTransformDataMatrix() argument 109 pdman.setSkMatrix(procTransforms[t].fHandle.toIndex(), transform); in setTransformDataMatrix()
|
D | GrGLSLFragmentProcessor.cpp | 14 void GrGLSLFragmentProcessor::setData(const GrGLSLProgramDataManager& pdman, in setData() argument 16 this->onSetData(pdman, processor); in setData() 19 fChildProcessors[i]->setData(pdman, processor.childProcessor(i)); in setData()
|
/external/skia/src/gpu/effects/ |
D | GrYUVEffect.cpp | 121 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 126 pdman.setMatrix4f(fMatrixUni, kJPEGConversionMatrix); in onSetData() 129 pdman.setMatrix4f(fMatrixUni, kRec601ConversionMatrix); in onSetData() 132 pdman.setMatrix4f(fMatrixUni, kRec709ConversionMatrix); in onSetData() 273 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 293 pdman.set4fv(fRGBToYUVUni, 3, matrix); in onSetData() 296 pdman.set4fv(fRGBToYUVUni, 2, matrix + 4); in onSetData() 299 pdman.set4fv(fRGBToYUVUni, 1, matrix); in onSetData() 302 pdman.set4fv(fRGBToYUVUni, 1, matrix + 4); in onSetData() 305 pdman.set4fv(fRGBToYUVUni, 1, matrix + 8); in onSetData()
|
D | GrConvolutionEffect.cpp | 24 void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor&) override; 93 void GrGLConvolutionEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 110 pdman.set2fv(fImageIncrementUni, 1, imageIncrement); in onSetData() 115 pdman.set2f(fBoundsUni, 1.0f - bounds[1], 1.0f - bounds[0]); in onSetData() 117 pdman.set2f(fBoundsUni, bounds[0], bounds[1]); in onSetData() 122 pdman.set1fv(fKernelUni, width, conv.kernel()); in onSetData()
|
D | GrBezierEffect.cpp | 28 void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 36 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 42 pdman.set4fv(fColorUniform, 1, c); in setData() 47 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(ce.coverageScale())); in setData() 53 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 56 this->setTransformDataHelper<GrConicEffect>(primProc, pdman, index, transforms); in setTransformData() 302 void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 310 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 316 pdman.set4fv(fColorUniform, 1, c); in setData() 321 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(qe.coverageScale())); in setData() [all …]
|
D | GrRRectEffect.cpp | 295 void GLCircularRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 368 pdman.set4f(fInnerRectUniform, rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in onSetData() 370 pdman.set2f(fRadiusPlusHalfUniform, radius, 1.f / radius); in onSetData() 611 void GLEllipticalRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 627 pdman.set2f(fInvRadiiSqdUniform, 1.f, (r0.fX * r0.fX) / (r0.fY * r0.fY)); in onSetData() 628 pdman.set2f(fScaleUniform, r0.fX, 1.f / r0.fX); in onSetData() 630 pdman.set2f(fInvRadiiSqdUniform, (r0.fY * r0.fY) / (r0.fX * r0.fX), 1.f); in onSetData() 631 pdman.set2f(fScaleUniform, r0.fY, 1.f / r0.fY); in onSetData() 634 pdman.set2f(fInvRadiiSqdUniform, 1.f / (r0.fX * r0.fX), in onSetData() 649 pdman.set4f(fInvRadiiSqdUniform, scaleSqd / (r0.fX * r0.fX), in onSetData() [all …]
|
D | GrMatrixConvolutionEffect.cpp | 122 void GrGLMatrixConvolutionEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 131 pdman.set2fv(fImageIncrementUni, 1, imageIncrement); in onSetData() 132 pdman.set2fv(fKernelOffsetUni, 1, conv.kernelOffset()); in onSetData() 133 pdman.set1fv(fKernelUni, conv.kernelSize().width() * conv.kernelSize().height(), conv.kernel()); in onSetData() 134 pdman.set1f(fGainUni, conv.gain()); in onSetData() 135 pdman.set1f(fBiasUni, conv.bias()); in onSetData() 136 fDomain.setData(pdman, conv.domain(), texture.origin()); in onSetData()
|
D | GrBitmapTextGeoProc.cpp | 87 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& gp) override { in setData() argument 92 pdman.set4fv(fColorUniform, 1, c); in setData() 98 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 101 this->setTransformDataHelper<GrBitmapTextGeoProc>(primProc, pdman, index, transforms); in setTransformData()
|
D | GrOvalEffect.cpp | 154 void GLCircleEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 164 pdman.set4f(fCircleUniform, ce.getCenter().fX, ce.getCenter().fY, radius, in onSetData() 351 void GLEllipseEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 364 pdman.set2f(fScaleUniform, ee.getRadii().fX, 1.f / ee.getRadii().fX); in onSetData() 369 pdman.set2f(fScaleUniform, ee.getRadii().fY, 1.f / ee.getRadii().fY); in onSetData() 375 pdman.set4f(fEllipseUniform, ee.getCenter().fX, ee.getCenter().fY, invRXSqd, invRYSqd); in onSetData()
|
D | GrBicubicEffect.cpp | 115 void GrGLBicubicEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 122 pdman.set2fv(fImageIncrementUni, 1, imageIncrement); in onSetData() 123 pdman.setMatrix4f(fCoefficientsUni, bicubicEffect.coefficients()); in onSetData() 124 fDomain.setData(pdman, bicubicEffect.domain(), texture.origin()); in onSetData()
|
D | GrDistanceFieldGeoProc.cpp | 151 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc) override { in setData() argument 156 pdman.set1f(fDistanceAdjustUni, distanceAdjust); in setData() 166 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 372 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc) override { in setData() argument 379 pdman.set2f(fTextureSizeUni, in setData() 390 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 637 void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 644 pdman.set3f(fDistanceAdjustUni, in setData() 655 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData()
|
D | GrConvexPolyEffect.cpp | 141 void GLAARectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 146 pdman.set4f(fRectUniform, rect.fLeft + 0.5f, rect.fTop + 0.5f, in onSetData() 219 void GrGLConvexPolyEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 224 pdman.set3fv(fEdgeUniform, cpe.getEdgeCount(), cpe.getEdges()); in onSetData()
|
D | GrTextureDomain.cpp | 148 void GrTextureDomain::GLDomain::setData(const GrGLSLProgramDataManager& pdman, in setData() argument 168 pdman.set4fv(fDomainUni, 1, values); in setData() 207 void GrGLTextureDomainEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 211 fGLDomain.setData(pdman, domain, processor.texture(0)->origin()); in onSetData()
|
/external/skia/src/effects/ |
D | SkLightingImageFilter.cpp | 46 void setUniformPoint3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformPoint3() argument 49 pdman.set3fv(uni, 1, &point.fX); in setUniformPoint3() 52 void setUniformNormal3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformNormal3() argument 54 setUniformPoint3(pdman, uni, point); in setUniformNormal3() 1835 void GrGLLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 1844 pdman.set2f(fImageIncrementUni, 1.0f / texture->width(), ySign / texture->height()); in onSetData() 1845 pdman.set1f(fSurfaceScaleUni, lighting.surfaceScale()); in onSetData() 1848 fDomain.setData(pdman, lighting.domain(), texture->origin()); in onSetData() 1849 fLight->setData(pdman, transformedLight); in onSetData() 1880 void GrGLDiffuseLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument [all …]
|
D | SkMagnifierImageFilter.cpp | 167 void GrGLMagnifierEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 170 pdman.set2f(fOffsetVar, zoom.x_offset(), zoom.y_offset()); in onSetData() 171 pdman.set2f(fInvZoomVar, zoom.x_inv_zoom(), zoom.y_inv_zoom()); in onSetData() 172 pdman.set2f(fInvInsetVar, zoom.x_inv_inset(), zoom.y_inv_inset()); in onSetData() 173 pdman.set4f(fBoundsVar, zoom.bounds().x(), zoom.bounds().y(), in onSetData()
|
D | SkPixelXorXfermode.cpp | 191 void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override { in onSetData() argument 193 pdman.set3f(fOpColorUni, in onSetData() 294 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 297 pdman.set3f(fOpColorUni, in onSetData()
|
D | SkArithmeticMode_gpu.cpp | 74 void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override { in onSetData() argument 76 pdman.set4f(fKUni, arith.k1(), arith.k2(), arith.k3(), arith.k4()); in onSetData() 217 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 220 pdman.set4f(fKUni, arith.k1(), arith.k2(), arith.k3(), arith.k4()); in onSetData()
|
D | SkColorCubeFilter.cpp | 289 void GrColorCubeEffect::GLSLProcessor::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 293 pdman.set1f(fColorCubeSizeUni, SkScalarToFloat(size)); in onSetData() 294 pdman.set1f(fColorCubeInvSizeUni, SkScalarToFloat(SkScalarInvert(size))); in onSetData()
|
D | SkAvoidXfermode.cpp | 310 void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override { in onSetData() argument 312 pdman.set4f(fColorAndTolUni, in onSetData() 438 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 441 pdman.set4f(fColorAndTolUni, in onSetData()
|
/external/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.cpp | 158 void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 166 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 172 pdman.set4fv(fColorUniform, 1, c); in setData() 178 pdman.set1f(fCoverageUniform, GrNormalizeByteToFloat(dgp.coverage())); in setData() 184 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 187 this->setTransformDataHelper<DefaultGeoProc>(primProc, pdman, index, transforms); in setTransformData()
|
D | GrPathProcessor.cpp | 96 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 114 pdman.setPathFragmentInputTransform(transforms[t].fHandle, components, transform); in setTransformData()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 946 static inline void set_color_uni(const GrGLSLProgramDataManager& pdman, in set_color_uni() argument 949 pdman.set4f(uni, in set_color_uni() 956 static inline void set_mul_color_uni(const GrGLSLProgramDataManager& pdman, in set_mul_color_uni() argument 961 pdman.set4f(uni, in set_mul_color_uni() 968 void GrGLGradientEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 977 set_mul_color_uni(pdman, fColorStartUni, e.getColors(0)); in onSetData() 978 set_mul_color_uni(pdman, fColorEndUni, e.getColors(1)); in onSetData() 980 set_color_uni(pdman, fColorStartUni, e.getColors(0)); in onSetData() 981 set_color_uni(pdman, fColorEndUni, e.getColors(1)); in onSetData() 987 set_mul_color_uni(pdman, fColorStartUni, e.getColors(0)); in onSetData() [all …]
|
D | SkTwoPointConicalGradient_gpu.cpp | 287 void GLEdge2PtConicalEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 289 INHERITED::onSetData(pdman, processor); in onSetData() 303 pdman.set1fv(fParamUni, 3, values); in onSetData() 561 void GLFocalOutside2PtConicalEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 563 INHERITED::onSetData(pdman, processor); in onSetData() 576 pdman.set1fv(fParamUni, 2, values); in onSetData() 751 void GLFocalInside2PtConicalEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 753 INHERITED::onSetData(pdman, processor); in onSetData() 758 pdman.set1f(fFocalUni, SkScalarToFloat(focal)); in onSetData() 1018 void GLCircleInside2PtConicalEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument [all …]
|
/external/skia/src/gpu/batches/ |
D | GrPLSPathRenderer.cpp | 394 virtual void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 399 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 402 this->setTransformDataHelper<PLSAATriangleEffect>(primProc, pdman, index, transforms); in setTransformData() 583 virtual void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 588 const GrGLSLProgramDataManager& pdman, in setTransformData() argument 591 this->setTransformDataHelper<PLSQuadEdgeEffect>(primProc, pdman, index, transforms); in setTransformData() 718 virtual void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 721 pdman.set1f(fUseEvenOdd, fe.fUseEvenOdd); in setData() 725 pdman.set4fv(fColorUniform, 1, c); in setData() 731 const GrGLSLProgramDataManager& pdman, in setTransformData() argument [all …]
|
/external/skia/src/core/ |
D | SkLightingShader.cpp | 246 void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override { in onSetData() argument 251 pdman.set3fv(fLightDirUni, 1, &lightDir.fX); in onSetData() 257 pdman.set3fv(fLightColorUni, 1, &lightColor.fX); in onSetData() 263 pdman.set3fv(fAmbientColorUni, 1, &ambientColor.fX); in onSetData() 269 pdman.set2fv(fXformUni, 1, &invNormRotation.fX); in onSetData()
|