Home | History | Annotate | Download | only in effects

Lines Matching refs:domain

57     const char* domain;
59 kVec4f_GrSLType, "TexDom", &domain);
63 coords, domain, domain);
74 builder->fFSCode.appendf("\toutside.xy = lessThan(%s, %s.xy);\n", coords, domain);
75 builder->fFSCode.appendf("\toutside.zw = greaterThan(%s, %s.zw);\n", coords, domain);
84 const GrRect& domain = effect.domain();
87 SkScalarToFloat(domain.left()),
88 SkScalarToFloat(domain.top()),
89 SkScalarToFloat(domain.right()),
90 SkScalarToFloat(domain.bottom())
124 const GrRect& domain,
128 if (kClamp_WrapMode == wrapMode && domain.contains(kFullRect)) {
133 // It is OK if the domain rect is a line or point, but it should not be inverted. We do not
135 GrAssert(domain.fLeft <= domain.fRight);
136 GrAssert(domain.fTop <= domain.fBottom);
137 clippedDomain.fLeft = SkMaxScalar(domain.fLeft, kFullRect.fLeft);
138 clippedDomain.fRight = SkMinScalar(domain.fRight, kFullRect.fRight);
139 clippedDomain.fTop = SkMaxScalar(domain.fTop, kFullRect.fTop);
140 clippedDomain.fBottom = SkMinScalar(domain.fBottom, kFullRect.fBottom);
156 const GrRect& domain,
161 , fTextureDomain(domain) {
194 GrRect domain;
195 domain.fLeft = random->nextUScalar1();
196 domain.fRight = random->nextRangeScalar(domain.fLeft, SK_Scalar1);
197 domain.fTop = random->nextUScalar1();
198 domain.fBottom = random->nextRangeScalar(domain.fTop, SK_Scalar1);
201 return GrTextureDomainEffect::Create(textures[texIdx], matrix, domain, wrapMode);