You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This morning I've be updating my Haze library to CMP 1.7.0-alpha01, which gives us access to the new GraphicsLayer APIs. My Android implementation already used RenderNode (which is basically the same), so I've moved that impl over to commonMain and now have a single implementation for all platforms.
It works as expected on Android, but on Skiko backed platforms it seems to have issues when you have multiple child layers drawing another layer. The first child layer is drawn fine, but others are not
I've also seen issues when a layer's position is outside the window bounds, the layer just doesn't draw anything.
Haze is a bit of a stress test for the graphics layers integration, so it might be worth investigating. The sample app is an easy way to see play around. chrisbanes/haze#250
The way Haze works is by drawing the main content into a graphics layer (and keeping that around), and then creating more graphics layers for each blurred area (which have the main content drawn into them). This works fine on Android, but on the Skiko platforms the layer stops drawing at certain positions. You can see the issue in the videos below.
My current code updates the layer's topLeft property, to tell it where to draw. If I stop setting the topLeft, and instead use GraphicsLayer.translationX/Y (or a Canvas translate when drawing the graphics layer) it works fine.
My guess is that somewhere in PictureRecorder (or below) is coercing or rejecting the bounds if they become too far out of the size?
Describe the bug
This morning I've be updating my Haze library to CMP 1.7.0-alpha01, which gives us access to the new GraphicsLayer APIs. My Android implementation already used RenderNode (which is basically the same), so I've moved that impl over to
commonMain
and now have a single implementation for all platforms.It works as expected on Android, but on Skiko backed platforms it seems to have issues when you have multiple child layers drawing another layer. The first child layer is drawn fine, but others are not
I've also seen issues when a layer's position is outside the window bounds, the layer just doesn't draw anything.
Haze is a bit of a stress test for the graphics layers integration, so it might be worth investigating. The sample app is an easy way to see play around. chrisbanes/haze#250
Affected platforms
Skiko-backed platforms (JVM, iOS, etc)
Versions
The text was updated successfully, but these errors were encountered: