gecko-dev/gfx/wr/examples
Dzmitry Malyshau 681ee8a0d0 Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw
The gist of the problem I introduced with the framebuffer coordinate system is that we provided the window rect (effectively) twice:
  1. when computing the document rectangle (and Y-inverting it)
  2. when rendering

If between these points the window got resized (during scene building), we end up with our document aligned to bottom left corner.
The user expects content to still be aligned to the top left, so that's what is visible as a bug.

The change here switched scene building to only care about device coordinate space, restraining the framebuffer coordinates to be mostly
an implementation detail of the renderer/device (the way it was originally meant to be, when introduced). This way the current window size
is only considered once during rendering.

Differential Revision: https://phabricator.services.mozilla.com/D28731

--HG--
extra : moz-landing-system : lando
2019-04-25 13:02:47 +00:00
..
common Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
alpha_perf.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
animation.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
basic.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
blob.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
Cargo.toml Bug 1521920 - Remove conditional compilation around debug_renderer. r=emilio 2019-01-22 21:29:24 +00:00
document.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
frame_output.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
iframe.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
image_resize.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
multiwindow.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
README.md
scrolling.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
texture_cache_stress.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00
yuv.rs Bug 1546371 - Switch render backend and API away from FramebufferPixel r=gw 2019-04-25 13:02:47 +00:00

Examples

This directory contains a collection of examples which uses the WebRender API.

To run an example e.g. basic, try:

cargo run --bin basic