Comments (1)
The way this interacts with buffer resizing is interesting. Depending on the backend, it may be able to grow or shrink a buffer while using the same memory. If height increased, it may only be necessary to draw the extra height. If width changed, everything needs to be shifted over.
It could return an age of None
here like a fresh buffer, but we'll have to be clear that this doesn't guarantee a zeroed buffer then (not that it matters, generally, since an application typically won't rely on the default value of the buffer).
from softbuffer.
Related Issues (20)
- Initial Window Size HOT 21
- Use a shared memory buffer for the X11 backend HOT 4
- Damage in presentation HOT 3
- Make softbuffer window contexts own the pixel buffers. HOT 17
- Should Wayland allow double buffering or just wait until the buffer is released. HOT 4
- GBM/KMS platform HOT 2
- iOS platform HOT 2
- Android platform HOT 8
- Supporting both Xlib and Xcb raw window handles HOT 3
- Wayland animation example fails on Gnome HOT 8
- `#![deny(unsafe_op_in_unsafe_fn)]` in the crate
- Fill in changelog for next release
- Handle scale factor change on macOS HOT 1
- Consider design of error type(s) HOT 3
- Lifetime of `Context` HOT 4
- README.md Example not working (outdated?) HOT 3
- A safe API wrapper interface HOT 4
- Investigate more optimal way to implement macOS backend HOT 16
- Pixel format API design HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from softbuffer.