Lines Matching refs:proxy

22 static bool can_ignore_rect(GrTextureProxy* proxy, const SkRect& domain) {  in can_ignore_rect()  argument
23 if (GrResourceProvider::IsFunctionallyExact(proxy)) { in can_ignore_rect()
24 const SkIRect kFullRect = SkIRect::MakeWH(proxy->width(), proxy->height()); in can_ignore_rect()
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()
83 const SkRect kFullRect = SkRect::MakeIWH(proxy->width(), proxy->height()); in GrTextureDomain()
246 sk_sp<GrTextureProxy> proxy, in Make() argument
253 (GrTextureDomain::kClamp_Mode == mode && can_ignore_rect(proxy.get(), domain))) { in Make()
254 return GrSimpleTextureEffect::Make(resourceProvider, std::move(proxy), in Make()
258 new GrTextureDomainEffect(resourceProvider, std::move(proxy), in Make()
265 sk_sp<GrTextureProxy> proxy, in GrTextureDomainEffect() argument
271 : GrSingleTextureEffect(resourceProvider, OptFlags(proxy->config(), mode), proxy, in GrTextureDomainEffect()
273 , fTextureDomain(proxy.get(), domain, mode) { in GrTextureDomainEffect()
338 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx); 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()
350 std::move(proxy), in TestCreate()
363 sk_sp<GrTextureProxy> proxy, in Make() argument
367 resourceProvider, std::move(proxy), subset, deviceSpaceOffset)); in Make()
372 sk_sp<GrTextureProxy> proxy, in GrDeviceSpaceTextureDecalFragmentProcessor() argument
376 , fTextureSampler(resourceProvider, proxy, GrSamplerParams::ClampNoFilter()) in GrDeviceSpaceTextureDecalFragmentProcessor()
377 , fTextureDomain(proxy.get(), GrTextureDomain::MakeTexelDomain(subset), in GrDeviceSpaceTextureDecalFragmentProcessor()
453 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx); in TestCreate() local
455 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1); in TestCreate()
456 subset.fRight = d->fRandom->nextRangeU(subset.fLeft, proxy->width()); in TestCreate()
457 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1); in TestCreate()
458 subset.fBottom = d->fRandom->nextRangeU(subset.fTop, proxy->height()); in TestCreate()
463 std::move(proxy), subset, pt); in TestCreate()