Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove BufferStream::resize() #767

Merged
merged 4 commits into from Mar 21, 2019
Merged

Remove BufferStream::resize() #767

merged 4 commits into from Mar 21, 2019

Conversation

wmww
Copy link
Contributor

@wmww wmww commented Mar 21, 2019

A BufferStream's size is now just the size of the most recent buffer (or the initial size sent to the constructor, if there is no buffer yet). This simplifies the code, fixes #604, and the non-atomic resize problem noted in a TODO in wl_surface.cpp.

@wmww
Copy link
Contributor Author

wmww commented Mar 21, 2019

It should be noted that window resize still isn't perfect. When resizing from the top left there is a slight jitter in lower and right edges. This is due Mir moving, clipping and rendering the buffer slightly faster than the client can respond with a resized buffer. The fix would probably be something like having the surface ask the client to resize without actually performing the resize on itself.

Copy link
Contributor

@AlanGriffiths AlanGriffiths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a logical consequence of changes that were in flight before we changed course two years ago. I was surprised that this is no longer used. But you're right: we don't needed.

bors r+

bors bot added a commit that referenced this pull request Mar 21, 2019
767: Remove `BufferStream::resize()` r=AlanGriffiths a=wmww

A `BufferStream`'s size is now just the size of the most recent buffer (or the initial size sent to the constructor, if there is no buffer yet). This simplifies the code, fixes #604, and the non-atomic resize problem noted in a TODO in wl_surface.cpp.

Co-authored-by: William Wold <wm@wmww.sh>
@bors
Copy link
Contributor

bors bot commented Mar 21, 2019

Build succeeded

@bors bors bot merged commit 19628a1 into master Mar 21, 2019
@bors bors bot deleted the clean-up-buffer-size branch March 21, 2019 10:55
@wmww wmww restored the clean-up-buffer-size branch March 21, 2019 14:25
@wmww wmww deleted the clean-up-buffer-size branch March 21, 2019 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Window resizing isn't smooth
2 participants