Lines Matching full:texture
52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap);
53 if (!texture) return;
54 const AutoTexture autoCleanup(texture);
65 // calculate unclipped bounds, since they'll determine texture coordinates
82 .setFillTexturePaint(*texture, textureFillFlags, firstState.op->paint, firstState.alpha)
175 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(firstOp.bitmap);
176 if (!texture) return;
177 const AutoTexture autoCleanup(texture);
188 .setFillTexturePaint(*texture, textureFillFlags, firstOp.paint, firstState.alpha)
211 ShadowTexture* texture = renderer.caches().dropShadowCache.get(
213 // If the drop shadow exceeds the max texture size or couldn't be
215 if (!texture) return;
216 const AutoTexture autoCleanup(texture);
218 const float sx = op.x - texture->left + textShadow.dx;
219 const float sy = op.y - texture->top + textShadow.dy;
225 .setFillShadowTexturePaint(*texture, textShadow.color, *op.paint, textOpState.alpha)
227 .setModelViewMapUnitToRect(Rect(sx, sy, sx + texture->width(), sy + texture->height()))
375 float xOffset, float yOffset, PathTexture& texture, const SkPaint& paint) {
376 Rect dest(texture.width(), texture.height());
377 dest.translate(xOffset + texture.left - texture.offset,
378 yOffset + texture.top - texture.offset);
383 .setFillPathTexturePaint(texture, paint, state.alpha)
404 PathTexture* texture = renderer.caches().pathCache.getArc(
407 const AutoTexture holder(texture);
408 if (CC_LIKELY(holder.texture)) {
410 *texture, *(op.paint));
427 Texture* texture = renderer.getTexture(op.bitmap);
428 if (!texture) return;
429 const AutoTexture autoCleanup(texture);
436 .setMeshTexturedUnitQuad(texture->uvMapper)
437 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha)
439 .setModelViewMapUnitToRectSnap(Rect(texture->width(), texture->height()))
460 Texture* texture = renderer.renderState().assetAtlas().getEntryTexture(op.bitmap->pixelRef());
461 const UvMapper& mapper(texture && texture->uvMapper ? *texture->uvMapper : defaultUvMapper);
494 if (!texture) {
495 texture = renderer.caches().textureCache.get(op.bitmap);
496 if (!texture) {
500 const AutoTexture autoCleanup(texture);
511 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha)
519 Texture* texture = renderer.getTexture(op.bitmap);
520 if (!texture) return;
521 const AutoTexture autoCleanup(texture);
523 Rect uv(std::max(0.0f, op.src.left / texture->width()),
524 std::max(0.0f, op.src.top / texture->height()),
525 std::min(1.0f, op.src.right / texture->width()),
526 std::min(1.0f, op.src.bottom / texture->height()));
535 .setMeshTexturedUvQuad(texture->uvMapper, uv)
536 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha)
573 PathTexture* texture = renderer.caches().pathCache.getOval(
575 const AutoTexture holder(texture);
576 if (CC_LIKELY(holder.texture)) {
578 *texture, *(op.paint));
607 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(op.bitmap);
608 if (CC_LIKELY(texture)) {
609 const AutoTexture autoCleanup(texture);
614 .setFillTexturePaint(*texture, textureFillFlags, op.paint, state.alpha)
624 PathTexture* texture = renderer.caches().pathCache.get(op.path, op.paint);
625 const AutoTexture holder(texture);
626 if (CC_LIKELY(holder.texture)) {
629 renderPathTexture(renderer, state, 0, 0, *texture, *(op.paint));
651 PathTexture* texture = renderer.caches().pathCache.getRect(
653 const AutoTexture holder(texture);
654 if (CC_LIKELY(holder.texture)) {
656 *texture, *(op.paint));
685 PathTexture* texture = renderer.caches().pathCache.getRoundRect(
688 const AutoTexture holder(texture);
689 if (CC_LIKELY(holder.texture)) {
691 *texture, *(op.paint));
815 .setFillLayer(buffer->texture, op.colorFilter, layerAlpha, op.mode, Blend::ModeOrderSwap::NoSwap)
860 .setFillLayer(layer.texture, nullptr, 1.0f, mode, Blend::ModeOrderSwap::Swap)