Lines Matching refs:domain
22 static bool can_ignore_rect(GrTextureProxy* proxy, const SkRect& domain) { in can_ignore_rect() argument
26 return domain.contains(kFullRect); in can_ignore_rect()
32 static bool can_ignore_rect(GrTexture* tex, const SkRect& domain) { in can_ignore_rect() argument
39 return domain.contains(kFullRect); in can_ignore_rect()
42 GrTextureDomain::GrTextureDomain(GrTexture* tex, const SkRect& domain, Mode mode, int index) in GrTextureDomain() argument
50 if (kClamp_Mode == mode && can_ignore_rect(tex, domain)) { in GrTextureDomain()
60 SkASSERT(domain.fLeft <= domain.fRight); in GrTextureDomain()
61 SkASSERT(domain.fTop <= domain.fBottom); in GrTextureDomain()
62 fDomain.fLeft = SkScalarPin(domain.fLeft, 0.0f, kFullRect.fRight); in GrTextureDomain()
63 fDomain.fRight = SkScalarPin(domain.fRight, fDomain.fLeft, kFullRect.fRight); in GrTextureDomain()
64 fDomain.fTop = SkScalarPin(domain.fTop, 0.0f, kFullRect.fBottom); in GrTextureDomain()
65 fDomain.fBottom = SkScalarPin(domain.fBottom, fDomain.fTop, kFullRect.fBottom); in GrTextureDomain()
70 GrTextureDomain::GrTextureDomain(GrTextureProxy* proxy, const SkRect& domain, Mode mode, int index) in GrTextureDomain() argument
78 if (kClamp_Mode == mode && can_ignore_rect(proxy, domain)) { in GrTextureDomain()
88 SkASSERT(domain.fLeft <= domain.fRight); in GrTextureDomain()
89 SkASSERT(domain.fTop <= domain.fBottom); in GrTextureDomain()
90 fDomain.fLeft = SkScalarPin(domain.fLeft, 0.0f, kFullRect.fRight); in GrTextureDomain()
91 fDomain.fRight = SkScalarPin(domain.fRight, fDomain.fLeft, kFullRect.fRight); in GrTextureDomain()
92 fDomain.fTop = SkScalarPin(domain.fTop, 0.0f, kFullRect.fBottom); in GrTextureDomain()
93 fDomain.fBottom = SkScalarPin(domain.fBottom, fDomain.fTop, kFullRect.fBottom); in GrTextureDomain()
147 const char* domain = fDomainName.c_str(); in sampleTexture() local
165 domain, domain, domain); in sampleTexture()
167 domain, domain, domain); in sampleTexture()
173 domain); in sampleTexture()
175 domain); in sampleTexture()
208 SkScalarToFloat(textureDomain.domain().fLeft * wInv), in setData()
209 SkScalarToFloat(textureDomain.domain().fTop * hInv), in setData()
210 SkScalarToFloat(textureDomain.domain().fRight * wInv), in setData()
211 SkScalarToFloat(textureDomain.domain().fBottom * hInv) in setData()
249 const SkRect& domain, in Make() argument
253 (GrTextureDomain::kClamp_Mode == mode && can_ignore_rect(proxy.get(), domain))) { in Make()
260 matrix, domain, mode, filterMode)); in Make()
268 const SkRect& domain, in GrTextureDomainEffect() argument
273 , fTextureDomain(proxy.get(), domain, mode) { in GrTextureDomainEffect()
290 const GrTextureDomain& domain = tde.fTextureDomain; in onCreateGLSLInstance() local
299 domain, in onCreateGLSLInstance()
310 const GrTextureDomain& domain = tde.fTextureDomain; in onCreateGLSLInstance() local
311 fGLDomain.setData(pdman, domain, tde.textureSampler(0).texture()); in onCreateGLSLInstance()
339 SkRect domain; in TestCreate() local
340 domain.fLeft = d->fRandom->nextRangeScalar(0, proxy->width()); in TestCreate()
341 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, proxy->width()); in TestCreate()
342 domain.fTop = d->fRandom->nextRangeScalar(0, proxy->height()); in TestCreate()
343 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, proxy->height()); in TestCreate()
353 domain, in TestCreate()