paths and blendmode multiply

23 views
Skip to first unread message

Shawn Riordan

unread,
May 26, 2023, 9:02:04 AM5/26/23
to skia-discuss
- Skia m104
- Draw paths (not text) with blendmode when using kNativeGL
- kScreen works fine, but kMultiply doesn't render anything
- Draws correctly with the kRaster backend:
Untitled.png

But several blendmodes don't draw at all, with kNativeGL.
Any ideas?

John Stiles

unread,
May 26, 2023, 9:08:01 AM5/26/23
to skia-d...@googlegroups.com
Can you please put together a fiddle demonstrating the issue?

--
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 on the web visit https://groups.google.com/d/msgid/skia-discuss/242e168f-6bc7-4061-9b6e-6b8213460b22n%40googlegroups.com.

Shawn Riordan

unread,
May 26, 2023, 9:49:36 AM5/26/23
to skia-discuss
It doesn't seem to happen in the newest version:

But it is happening in m104.
I was wondering if someone remembered a bug back in the day.
Like "OpenGL fragment shader for some blendmodes not working."

Robert Phillips

unread,
May 26, 2023, 10:00:29 AM5/26/23
to skia-d...@googlegroups.com
If I had to guess I would say it was:

https://skia-review.googlesource.com/c/skia/+/571277 (Flush color writing in GrGLGpu::flushBlendAndColorWrite for advanced blend modes).

It is a one line change so should be simple enough to patch in and verify.

   Rob

Reply all
Reply to author
Forward
0 new messages