--
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+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
Well it's with GPU enabled that the discrepancy occurs.
--
Well it's with GPU enabled that the discrepancy occurs.
--
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.
The reason I ask, is that I might know the answer.During the rasterization process, there are two types of alpha. The opacity specified along with the color (alpha) and the opacity based on anti aliasing. I think the second one is called "shape(?)"
It may be that the hardware, or the software driver, are batching the drawing of several shapes together. Storing and resolving alpha seperate from shape. Until it commits the batch. In this strategy, there would be no pink halo because the white pixels would completely replace the red pixels. Since the white pixels had an alpha of 1.0. This would be done without consideration of opacity due to shape. That consideration would be implemented afterwards. Blending the white with the background blue.This is done to remove the crack problem illustrated in the fiddle I posted.If ganesh doesn't get rid of the crack, then my guess could be wrong.
On Tuesday, August 29, 2017 at 5:20:21 AM UTC-7, Corey Lucier wrote:Can someone enlighten as to why we see a difference in the following scenario between Ganesh and CPU rendering backends?Setup:Render a white rectangle on top of a red rectangle and scale the canvas such that the rectangles would be placed off-pixel.Ensure the white rectangle and red rectangle are identical in height and y position.As expected since both are off-pixel the semi-transparent AA pixels of the off-pixel edges for both the white and red rectangle are visible. Note the hairline "pink" edges where the white rectangle overlaps the red. While this is sub-optimal it's the "expected" behavior of most vector renderers in this situation - a fact of life if you will. Obviously if pixel snapped the hairlines aren't visible.If instead you render with Ganesh you don't see the artifact, and oddly you see the white rectangle's AA pixels blending directly with the background pixels, in this case I've made the background blue and zoomed in with a loupe ... so the red rectangle behind seems to be full occluded before rasterization.Basically this is only a problem because switching between raster and GPU Skia shouldn't suddenly make artifacts disappear/re-appear in this scenario - but perhaps another "fact of life" ?-C
--
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+unsubscribe@googlegroups.com.
During the rasterization process, there are two types of alpha. The opacity specified along with the color (alpha) and the opacity based on anti aliasing. I think the second one is called "shape(?)"
--
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 unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.