mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
Disarm frame generation across a Surface resize, re-arm after
With the session activity resizable the fold works — with frame generation off. With an engine on the picture still came back stretched: its ring, effects chain and multi-present pacing were built against the old extent. The engine is now disarmed before the window is rebound and re-armed once the new swapchain has settled, so everything on its side is built again for the new size.
This commit is contained in:
1 parent
357ba28b6a
commit
565987edae
2 files changed
+10
-2
No files matched your search
@@ -235,7 +235,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
||||
surfaceH = height
|
||||
if (resized) {
|
||||
Log.i(TAG, "surface resized to ${width}x$height — rebinding the compositor")
|
||||
CompositorHost.resize(holder.surface)
|
||||
CompositorHost.resize(holder.surface) { applyFrameGen() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user