servo / rust-layers Goto Github PK
View Code? Open in Web Editor NEWA GPU-accelerated 2D animation library for Rust
License: Other
A GPU-accelerated 2D animation library for Rust
License: Other
When creating a Linux surface XCreatePixmap is called with an invalid depth.
This is in order to complete servo/servo#140.
So, I've forked the repo, and made some changes, but whenever I try to build I get an error saying "can't find crate for 'geom'." I'm rather new to rust, and can't seem to get geom to install with rustpkg--as there is no main.rs/lib.rs/etc file.
Does there exist documentation on contributing to servo submodules?
Also, anyone have any objections to me importing azure, and having the background_color field just be a AzColor?
Help would be greatly appreciated!
git clone https://github.com/servo/rust-layers && cd rust-layers
cargo build
Produces following error code output:
Updating registry `https://github.com/rust-lang/crates.io-index`
Updating git repository `https://github.com/servo/skia`
Updating git repository `https://github.com/servo/rust-azure`
Updating git repository `https://github.com/servo/rust-glx`
Updating git repository `https://github.com/servo/io-surface-rs`
Updating git repository `https://github.com/servo/rust-egl`
no matching package named `skia` found (required by `layers`)
location searched: https://github.com/servo/skia
version required: *
I am new to rust so it's also likely I'm doing something wrong, but not sure what because the location https://github.com/servo/skia does exist. Do you get the same error?
NativeCompositingGraphicsContext::compositor_visual_info does only choose RGBA GL visuals, but NVidida drivers include visuals that support RGBA in OpenGL, but not in their associated X11 visuals. This means that the Pixmaps created using these visual do not have a corresponding alpha channel. When using data from these Pixmaps, a missing alpha channel can be interpreted as 0 alpha everywhere, leading to invisible layers.
There's a lot of platform-specific code here; we should test on all of them.
Documentation link is broken.
I’m in the middle of replacing uint
with usize
. But when it’s for geometry, maybe it should be u32
instead?
There is exactly one call to glGetError and it's in the linux port. This is useless, as an error could have occurred literally anywhere and would only be detected here, giving a false positive about what may have occurred.
All the types for which we derive HeapSizeOf could just use known_heap_size!(0, ...);
.
Multi-OS support is not public on Travis, so we'd be limited to linux. That said, I think it's better than nothing; it would have prevented #171
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.