/external/skqp/src/gpu/gradients/ |
D | GrUnrolledBinaryGradientColorizer.cpp | 185 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 190 pdman.set4fv(fScale0_1Var, 1, (_outer.scale0_1()).vec()); in onSetData() 192 pdman.set4fv(fScale2_3Var, 1, (_outer.scale2_3()).vec()); in onSetData() 195 pdman.set4fv(fScale4_5Var, 1, (_outer.scale4_5()).vec()); in onSetData() 198 pdman.set4fv(fScale6_7Var, 1, (_outer.scale6_7()).vec()); in onSetData() 201 pdman.set4fv(fScale8_9Var, 1, (_outer.scale8_9()).vec()); in onSetData() 204 pdman.set4fv(fScale10_11Var, 1, (_outer.scale10_11()).vec()); in onSetData() 207 pdman.set4fv(fScale12_13Var, 1, (_outer.scale12_13()).vec()); in onSetData() 210 pdman.set4fv(fScale14_15Var, 1, (_outer.scale14_15()).vec()); in onSetData() 212 pdman.set4fv(fBias0_1Var, 1, (_outer.bias0_1()).vec()); in onSetData() [all …]
|
D | GrDualIntervalGradientColorizer.cpp | 58 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 66 pdman.set4fv(fScale01Var, 1, scale01Value.vec()); in onSetData() 71 pdman.set4fv(fBias01Var, 1, bias01Value.vec()); in onSetData() 76 pdman.set4fv(fScale23Var, 1, scale23Value.vec()); in onSetData() 81 pdman.set4fv(fBias23Var, 1, bias23Value.vec()); in onSetData() 86 pdman.set1f(fThresholdVar, thresholdValue); in onSetData()
|
D | GrSingleIntervalGradientColorizer.cpp | 41 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 49 pdman.set4fv(fStartVar, 1, startValue.vec()); in onSetData() 54 pdman.set4fv(fEndVar, 1, endValue.vec()); in onSetData()
|
/external/skia/src/gpu/gradients/ |
D | GrUnrolledBinaryGradientColorizer.cpp | 185 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 190 pdman.set4fv(fScale0_1Var, 1, (_outer.scale0_1()).vec()); in onSetData() 192 pdman.set4fv(fScale2_3Var, 1, (_outer.scale2_3()).vec()); in onSetData() 195 pdman.set4fv(fScale4_5Var, 1, (_outer.scale4_5()).vec()); in onSetData() 198 pdman.set4fv(fScale6_7Var, 1, (_outer.scale6_7()).vec()); in onSetData() 201 pdman.set4fv(fScale8_9Var, 1, (_outer.scale8_9()).vec()); in onSetData() 204 pdman.set4fv(fScale10_11Var, 1, (_outer.scale10_11()).vec()); in onSetData() 207 pdman.set4fv(fScale12_13Var, 1, (_outer.scale12_13()).vec()); in onSetData() 210 pdman.set4fv(fScale14_15Var, 1, (_outer.scale14_15()).vec()); in onSetData() 212 pdman.set4fv(fBias0_1Var, 1, (_outer.bias0_1()).vec()); in onSetData() [all …]
|
D | GrDualIntervalGradientColorizer.cpp | 58 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 66 pdman.set4fv(fScale01Var, 1, scale01Value.vec()); in onSetData() 71 pdman.set4fv(fBias01Var, 1, bias01Value.vec()); in onSetData() 76 pdman.set4fv(fScale23Var, 1, scale23Value.vec()); in onSetData() 81 pdman.set4fv(fBias23Var, 1, bias23Value.vec()); in onSetData() 86 pdman.set1f(fThresholdVar, thresholdValue); in onSetData()
|
D | GrSingleIntervalGradientColorizer.cpp | 40 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 48 pdman.set4fv(fStartVar, 1, startValue.vec()); in onSetData() 53 pdman.set4fv(fEndVar, 1, endValue.vec()); in onSetData()
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLColorSpaceXformHelper.h | 46 void setData(const GrGLSLProgramDataManager& pdman, const GrColorSpaceXform* colorSpaceXform) { in setData() argument 48 pdman.set1fv(fSrcTFVar, kNumTransferFnCoeffs, &colorSpaceXform->fSteps.srcTF.g); in setData() 51 pdman.setMatrix3f(fGamutXformVar, colorSpaceXform->fSteps.src_to_dst_matrix); in setData() 54 pdman.set1fv(fDstTFVar, kNumTransferFnCoeffs, &colorSpaceXform->fSteps.dstTFInv.g); in setData()
|
/external/skqp/src/gpu/glsl/ |
D | GrGLSLColorSpaceXformHelper.h | 46 void setData(const GrGLSLProgramDataManager& pdman, const GrColorSpaceXform* colorSpaceXform) { in setData() argument 48 pdman.set1fv(fSrcTFVar, kNumTransferFnCoeffs, &colorSpaceXform->fSteps.srcTF.g); in setData() 51 pdman.setMatrix3f(fGamutXformVar, colorSpaceXform->fSteps.src_to_dst_matrix); in setData() 54 pdman.set1fv(fDstTFVar, kNumTransferFnCoeffs, &colorSpaceXform->fSteps.dstTFInv.g); in setData()
|
/external/skia/src/gpu/effects/ |
D | GrMagnifierEffect.cpp | 74 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 78 pdman.set1f(fXInvZoomVar, (_outer.xInvZoom())); in onSetData() 79 pdman.set1f(fYInvZoomVar, (_outer.yInvZoom())); in onSetData() 80 pdman.set1f(fXInvInsetVar, (_outer.xInvInset())); in onSetData() 81 pdman.set1f(fYInvInsetVar, (_outer.yInvInset())); in onSetData() 112 pdman.set2f(offset, srcRect.x() * invW, y); in onSetData() 121 pdman.set4f(boundsUniform, in onSetData()
|
D | GrBezierEffect.cpp | 28 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 36 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 40 pdman.set4fv(fColorUniform, 1, ce.color().vec()); in setData() 45 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(ce.coverageScale())); in setData() 48 this->setTransformDataHelper(ce.localMatrix(), pdman, &transformIter); in setData() 279 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 287 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 291 pdman.set4fv(fColorUniform, 1, qe.color().vec()); in setData() 296 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(qe.coverageScale())); in setData() 299 this->setTransformDataHelper(qe.localMatrix(), pdman, &transformIter); in setData()
|
D | GrRRectEffect.cpp | 292 void GLCircularRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 365 pdman.set4f(fInnerRectUniform, rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in onSetData() 367 pdman.set2f(fRadiusPlusHalfUniform, radius, 1.f / radius); in onSetData() 599 void GLEllipticalRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 615 pdman.set2f(fInvRadiiSqdUniform, 1.f, (r0.fX * r0.fX) / (r0.fY * r0.fY)); in onSetData() 616 pdman.set2f(fScaleUniform, r0.fX, 1.f / r0.fX); in onSetData() 618 pdman.set2f(fInvRadiiSqdUniform, (r0.fY * r0.fY) / (r0.fX * r0.fX), 1.f); in onSetData() 619 pdman.set2f(fScaleUniform, r0.fY, 1.f / r0.fY); in onSetData() 622 pdman.set2f(fInvRadiiSqdUniform, 1.f / (r0.fX * r0.fX), in onSetData() 637 pdman.set4f(fInvRadiiSqdUniform, scaleSqd / (r0.fX * r0.fX), in onSetData() [all …]
|
D | GrEllipseEffect.cpp | 63 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 87 pdman.set2f(scale, radii.fX, 1.f / radii.fX); in onSetData() 91 pdman.set2f(scale, radii.fY, 1.f / radii.fY); in onSetData() 97 pdman.set4f(ellipse, center.fX, center.fY, invRXSqd, invRYSqd); in onSetData()
|
D | GrDistanceFieldGeoProc.cpp | 165 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc, in setData() argument 173 pdman.set1f(fDistanceAdjustUni, distanceAdjust); in setData() 181 pdman.set2f(fAtlasSizeInvUniform, 1.0f / atlasSize.fWidth, 1.0f / atlasSize.fHeight); in setData() 184 this->setTransformDataHelper(dfa8gp.localMatrix(), pdman, &transformIter); in setData() 462 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc, in setData() argument 471 pdman.setMatrix3f(fMatrixUniform, matrix); in setData() 477 pdman.set2f(fAtlasSizeInvUniform, 1.0f / atlasSize.fWidth, 1.0f / atlasSize.fHeight); in setData() 482 this->setTransformDataHelper(SkMatrix::I(), pdman, &transformIter); in setData() 484 this->setTransformDataHelper(dfpgp.matrix(), pdman, &transformIter); in setData() 784 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& processor, in setData() argument [all …]
|
D | GrTextureDomain.cpp | 180 void GrTextureDomain::GLDomain::setData(const GrGLSLProgramDataManager& pdman, in setData() argument 203 pdman.set3f(fDecalUni, 1.f, 1.f, decalFilterWeight); in setData() 211 pdman.set3f(fDecalUni, tex->width(), tex->height(), decalFilterWeight); in setData() 245 pdman.set4fv(fDomainUni, 1, values); in setData() 331 void onSetData(const GrGLSLProgramDataManager& pdman, in onCreateGLSLInstance() argument 337 fGLDomain.setData(pdman, domain, proxy, tde.textureSampler(0).samplerState()); in onCreateGLSLInstance() 443 void onSetData(const GrGLSLProgramDataManager& pdman, in onCreateGLSLInstance() argument 450 fGLDomain.setData(pdman, dstdfp.fTextureDomain, proxy, in onCreateGLSLInstance() 462 pdman.set4fv(fScaleAndTranslateUni, 1, scaleAndTransData); in onCreateGLSLInstance()
|
D | GrRRectBlurEffect.cpp | 101 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 104 { pdman.set1f(fCornerRadiusVar, (_outer.cornerRadius())); } in onSetData() 120 pdman.set1f(blurRadius, blurRadiusValue); in onSetData() 124 pdman.set4f(proxyRect, outset.fLeft, outset.fTop, outset.fRight, outset.fBottom); in onSetData()
|
/external/skqp/src/gpu/effects/ |
D | GrMagnifierEffect.cpp | 76 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 80 pdman.set1f(fXInvZoomVar, (_outer.xInvZoom())); in onSetData() 81 pdman.set1f(fYInvZoomVar, (_outer.yInvZoom())); in onSetData() 82 pdman.set1f(fXInvInsetVar, (_outer.xInvInset())); in onSetData() 83 pdman.set1f(fYInvInsetVar, (_outer.yInvInset())); in onSetData() 114 pdman.set2f(offset, srcRect.x() * invW, y); in onSetData() 123 pdman.set4f(boundsUniform, in onSetData()
|
D | GrBezierEffect.cpp | 28 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 36 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 40 pdman.set4fv(fColorUniform, 1, ce.color().vec()); in setData() 45 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(ce.coverageScale())); in setData() 48 this->setTransformDataHelper(ce.localMatrix(), pdman, &transformIter); in setData() 279 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 287 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 291 pdman.set4fv(fColorUniform, 1, qe.color().vec()); in setData() 296 pdman.set1f(fCoverageScaleUniform, GrNormalizeByteToFloat(qe.coverageScale())); in setData() 299 this->setTransformDataHelper(qe.localMatrix(), pdman, &transformIter); in setData()
|
D | GrRRectEffect.cpp | 292 void GLCircularRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 365 pdman.set4f(fInnerRectUniform, rect.fLeft, rect.fTop, rect.fRight, rect.fBottom); in onSetData() 367 pdman.set2f(fRadiusPlusHalfUniform, radius, 1.f / radius); in onSetData() 599 void GLEllipticalRRectEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 615 pdman.set2f(fInvRadiiSqdUniform, 1.f, (r0.fX * r0.fX) / (r0.fY * r0.fY)); in onSetData() 616 pdman.set2f(fScaleUniform, r0.fX, 1.f / r0.fX); in onSetData() 618 pdman.set2f(fInvRadiiSqdUniform, (r0.fY * r0.fY) / (r0.fX * r0.fX), 1.f); in onSetData() 619 pdman.set2f(fScaleUniform, r0.fY, 1.f / r0.fY); in onSetData() 622 pdman.set2f(fInvRadiiSqdUniform, 1.f / (r0.fX * r0.fX), in onSetData() 637 pdman.set4f(fInvRadiiSqdUniform, scaleSqd / (r0.fX * r0.fX), in onSetData() [all …]
|
D | GrEllipseEffect.cpp | 62 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 86 pdman.set2f(scale, radii.fX, 1.f / radii.fX); in onSetData() 90 pdman.set2f(scale, radii.fY, 1.f / radii.fY); in onSetData() 96 pdman.set4f(ellipse, center.fX, center.fY, invRXSqd, invRYSqd); in onSetData()
|
D | GrDistanceFieldGeoProc.cpp | 165 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc, in setData() argument 173 pdman.set1f(fDistanceAdjustUni, distanceAdjust); in setData() 181 pdman.set2f(fAtlasSizeInvUniform, 1.0f / atlasSize.fWidth, 1.0f / atlasSize.fHeight); in setData() 184 this->setTransformDataHelper(dfa8gp.localMatrix(), pdman, &transformIter); in setData() 462 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& proc, in setData() argument 471 pdman.setMatrix3f(fMatrixUniform, matrix); in setData() 477 pdman.set2f(fAtlasSizeInvUniform, 1.0f / atlasSize.fWidth, 1.0f / atlasSize.fHeight); in setData() 482 this->setTransformDataHelper(SkMatrix::I(), pdman, &transformIter); in setData() 484 this->setTransformDataHelper(dfpgp.matrix(), pdman, &transformIter); in setData() 783 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& processor, in setData() argument [all …]
|
D | GrTextureDomain.cpp | 180 void GrTextureDomain::GLDomain::setData(const GrGLSLProgramDataManager& pdman, in setData() argument 203 pdman.set3f(fDecalUni, 1.f, 1.f, decalFilterWeight); in setData() 211 pdman.set3f(fDecalUni, tex->width(), tex->height(), decalFilterWeight); in setData() 245 pdman.set4fv(fDomainUni, 1, values); in setData() 331 void onSetData(const GrGLSLProgramDataManager& pdman, in onCreateGLSLInstance() argument 337 fGLDomain.setData(pdman, domain, proxy, tde.textureSampler(0).samplerState()); in onCreateGLSLInstance() 443 void onSetData(const GrGLSLProgramDataManager& pdman, in onCreateGLSLInstance() argument 450 fGLDomain.setData(pdman, dstdfp.fTextureDomain, proxy, in onCreateGLSLInstance() 462 pdman.set4fv(fScaleAndTranslateUni, 1, scaleAndTransData); in onCreateGLSLInstance()
|
D | GrRRectBlurEffect.cpp | 100 void onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 103 { pdman.set1f(fCornerRadiusVar, (_outer.cornerRadius())); } in onSetData() 119 pdman.set1f(blurRadius, blurRadiusValue); in onSetData() 123 pdman.set4f(proxyRect, outset.fLeft, outset.fTop, outset.fRight, outset.fBottom); in onSetData()
|
/external/skia/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 50 static void setUniformPoint3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformPoint3() argument 53 pdman.set3fv(uni, 1, &point.fX); in setUniformPoint3() 56 static void setUniformNormal3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformNormal3() argument 58 setUniformPoint3(pdman, uni, point); in setUniformNormal3() 1916 void GrGLLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 1927 pdman.set2f(fImageIncrementUni, 1.0f / texture->width(), ySign / texture->height()); in onSetData() 1928 pdman.set1f(fSurfaceScaleUni, lighting.surfaceScale()); in onSetData() 1931 fDomain.setData(pdman, lighting.domain(), proxy, lighting.textureSampler(0).samplerState()); in onSetData() 1932 fLight->setData(pdman, transformedLight.get()); in onSetData() 1961 void GrGLDiffuseLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument [all …]
|
/external/skqp/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 48 static void setUniformPoint3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformPoint3() argument 51 pdman.set3fv(uni, 1, &point.fX); in setUniformPoint3() 54 static void setUniformNormal3(const GrGLSLProgramDataManager& pdman, UniformHandle uni, in setUniformNormal3() argument 56 setUniformPoint3(pdman, uni, point); in setUniformNormal3() 1914 void GrGLLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument 1925 pdman.set2f(fImageIncrementUni, 1.0f / texture->width(), ySign / texture->height()); in onSetData() 1926 pdman.set1f(fSurfaceScaleUni, lighting.surfaceScale()); in onSetData() 1929 fDomain.setData(pdman, lighting.domain(), proxy, lighting.textureSampler(0).samplerState()); in onSetData() 1930 fLight->setData(pdman, transformedLight.get()); in onSetData() 1959 void GrGLDiffuseLightingEffect::onSetData(const GrGLSLProgramDataManager& pdman, in onSetData() argument [all …]
|
/external/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.cpp | 180 void setData(const GrGLSLProgramDataManager& pdman, in setData() argument 189 pdman.setMatrix3f(fViewMatrixUniform, viewMatrix); in setData() 193 pdman.set4fv(fColorUniform, 1, dgp.color().vec()); in setData() 198 pdman.set1f(fCoverageUniform, GrNormalizeByteToFloat(dgp.coverage())); in setData() 201 this->setTransformDataHelper(dgp.fLocalMatrix, pdman, &transformIter); in setData() 203 fColorSpaceHelper.setData(pdman, dgp.fColorSpaceXform.get()); in setData()
|