do Rect, RRect, Circle support passing texture into them and texture them with it?

16 views
Skip to first unread message

nil

unread,
Feb 4, 2026, 11:21:32 AM (3 days ago) Feb 4
to skia-discuss
do Rect, RRect, Circle support passing texture into them and texture them with it?

Greg Daniel

unread,
Feb 4, 2026, 11:27:39 AM (3 days ago) Feb 4
to skia-d...@googlegroups.com
Here is an example of using an image shader with a drawCircle, https://fiddle.skia.org/c/de22d563882da2b5f3c15f8370aa7442

On Wed, Feb 4, 2026 at 11:21 AM nil <niel...@gmail.com> wrote:
do Rect, RRect, Circle support passing texture into them and texture them with it?

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/skia-discuss/927ca468-0cd8-44c7-936c-d854b995c4f1n%40googlegroups.com.

nil

unread,
Feb 4, 2026, 9:16:30 PM (3 days ago) Feb 4
to skia-discuss
Thanks! what's the Op inside skia when use this method? and if use this method draw many same circle, will they be combined into 1 Op and 1 drawCall? Thanks!

Greg Daniel

unread,
Feb 4, 2026, 9:18:50 PM (3 days ago) Feb 4
to skia-d...@googlegroups.com
Its not easy to say specifically how we will draw these, it depends on a lot of combinations of factors on how we'll draw things internally. But as a user of Skia just know that we'll try to do the best balance of shader options, batching, memory usage, etc.

Reply all
Reply to author
Forward
0 new messages