Home | History | Annotate | Download | only in effects

Lines Matching refs:proxy

22 static bool can_ignore_rect(GrTextureProxy* proxy, const SkRect& domain) {
23 if (GrProxyProvider::IsFunctionallyExact(proxy)) {
24 const SkIRect kFullRect = SkIRect::MakeWH(proxy->width(), proxy->height());
32 GrTextureDomain::GrTextureDomain(GrTextureProxy* proxy, const SkRect& domain, Mode mode, int index)
40 if (kClamp_Mode == mode && can_ignore_rect(proxy, domain)) {
45 const SkRect kFullRect = SkRect::MakeIWH(proxy->width(), proxy->height());
162 GrSurfaceProxy* proxy) {
163 GrTexture* tex = proxy->priv().peekTexture();
182 if (kBottomLeft_GrSurfaceOrigin == proxy->origin()) {
208 sk_sp<GrTextureProxy> proxy,
214 (GrTextureDomain::kClamp_Mode == mode && can_ignore_rect(proxy.get(), domain))) {
215 return GrSimpleTextureEffect::Make(std::move(proxy), matrix, filterMode);
218 std::move(proxy), matrix, domain, mode, filterMode));
222 GrTextureDomainEffect::GrTextureDomainEffect(sk_sp<GrTextureProxy> proxy,
227 : INHERITED(kGrTextureDomainEffect_ClassID, OptFlags(proxy->config(), mode))
228 , fCoordTransform(matrix, proxy.get())
229 , fTextureDomain(proxy.get(), domain, mode)
230 , fTextureSampler(std::move(proxy), filterMode) {
276 GrSurfaceProxy* proxy = tde.textureSampler(0).proxy();
278 fGLDomain.setData(pdman, domain, proxy);
301 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx);
303 domain.fLeft = d->fRandom->nextRangeScalar(0, proxy->width());
304 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, proxy->width());
305 domain.fTop = d->fRandom->nextRangeScalar(0, proxy->height());
306 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, proxy->height());
312 std::move(proxy),
322 sk_sp<GrTextureProxy> proxy, const SkIRect& subset, const SkIPoint& deviceSpaceOffset) {
324 std::move(proxy), subset, deviceSpaceOffset));
328 sk_sp<GrTextureProxy> proxy, const SkIRect& subset, const SkIPoint& deviceSpaceOffset)
331 , fTextureSampler(proxy, GrSamplerState::ClampNearest())
332 , fTextureDomain(proxy.get(), GrTextureDomain::MakeTexelDomain(subset),
382 GrSurfaceProxy* proxy = dstdfp.textureSampler(0).proxy();
383 GrTexture* texture = proxy->priv().peekTexture();
385 fGLDomain.setData(pdman, dstdfp.fTextureDomain, proxy);
392 if (proxy->origin() == kBottomLeft_GrSurfaceOrigin) {
410 return dstdfp.fTextureSampler.proxy()->underlyingUniqueID() ==
411 fTextureSampler.proxy()->underlyingUniqueID() &&
425 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx);
427 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1);
428 subset.fRight = d->fRandom->nextRangeU(subset.fLeft, proxy->width());
429 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1);
430 subset.fBottom = d->fRandom->nextRangeU(subset.fTop, proxy->height());
434 return GrDeviceSpaceTextureDecalFragmentProcessor::Make(std::move(proxy), subset, pt);