Lines Matching defs:proxy
24 GrTextureDomain::GrTextureDomain(GrTextureProxy* proxy, const SkRect& domain, Mode modeX,
30 if (!proxy) {
35 const SkRect kFullRect = SkRect::MakeIWH(proxy->width(), proxy->height());
182 GrTextureProxy* proxy,
184 GrTexture* tex = proxy->peekTexture();
197 if (proxy->textureType() == GrTextureType::kRectangle) {
222 if (proxy->textureType() == GrTextureType::kRectangle) {
223 SkASSERT(values[0] >= 0.0f && values[0] <= proxy->height());
224 SkASSERT(values[1] >= 0.0f && values[1] <= proxy->height());
225 SkASSERT(values[2] >= 0.0f && values[2] <= proxy->height());
226 SkASSERT(values[3] >= 0.0f && values[3] <= proxy->height());
235 if (kBottomLeft_GrSurfaceOrigin == proxy->origin()) {
254 sk_sp<GrTextureProxy> proxy,
259 return Make(std::move(proxy), matrix, domain, mode, mode,
264 sk_sp<GrTextureProxy> proxy,
272 // with the sampler modes and the proxy is the same size as the domain. It's a lot easier for
275 std::move(proxy), matrix, domain, modeX, modeY, sampler));
278 GrTextureDomainEffect::GrTextureDomainEffect(sk_sp<GrTextureProxy> proxy,
285 ModulateForSamplerOptFlags(proxy->config(),
287 , fCoordTransform(matrix, proxy.get())
288 , fTextureDomain(proxy.get(), domain, modeX, modeY)
289 , fTextureSampler(std::move(proxy), sampler) {
335 GrTextureProxy* proxy = tde.textureSampler(0).proxy();
337 fGLDomain.setData(pdman, domain, proxy
360 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx);
362 domain.fLeft = d->fRandom->nextRangeScalar(0, proxy->width());
363 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, proxy->width());
364 domain.fTop = d->fRandom->nextRangeScalar(0, proxy->height());
365 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, proxy->height());
374 std::move(proxy),
386 sk_sp<GrTextureProxy> proxy, const SkIRect& subset, const SkIPoint& deviceSpaceOffset) {
388 std::move(proxy), subset, deviceSpaceOffset));
392 sk_sp<GrTextureProxy> proxy, const SkIRect& subset, const SkIPoint& deviceSpaceOffset)
395 , fTextureSampler(proxy, GrSamplerState::ClampNearest())
396 , fTextureDomain(proxy.get(),
447 GrTextureProxy* proxy = dstdfp.textureSampler(0).proxy();
448 GrTexture* texture = proxy->peekTexture();
450 fGLDomain.setData(pdman, dstdfp.fTextureDomain, proxy,
458 if (proxy->origin() == kBottomLeft_GrSurfaceOrigin) {
476 return dstdfp.fTextureSampler.proxy()->underlyingUniqueID() ==
477 fTextureSampler.proxy()->underlyingUniqueID() &&
491 sk_sp<GrTextureProxy> proxy = d->textureProxy(texIdx);
493 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1);
494 subset.fRight = d->fRandom->nextRangeU(subset.fLeft, proxy->width());
495 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1);
496 subset.fBottom = d->fRandom->nextRangeU(subset.fTop, proxy->height());
500 return GrDeviceSpaceTextureDecalFragmentProcessor::Make(std::move(proxy), subset, pt);