Commits on Source (7)
-
Pekka Paalanen authored
This step prepares to share the coordinate computations between draw_output_borders() and output_get_border_damage(). The use of weston_output is replaced with gl_output_state, so that when sharing the code in a new function, it does not need a weston_output. This stops the function from accessing output->current_mode and use the gl-renderer tracked frambuffer size and compositing area instead. Not using current_mode is a small step towards allowing gl-renderer to render for other targets than an output. No behavioral changes, all the values are still the same. See the diagram in gl-renderer.h for the border areas. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
7e49d1ad -
Pekka Paalanen authored
This moves the identical code from draw_output_borders() and output_get_border_damage() into a new shared function. Reduces code duplication. This is a pure refactoring, all the computations stay the same. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
fccb21f1 -
Pekka Paalanen authored
Compute the border area from the framebuffer size and composited area only. Now the border textures can be freely sized while they will be stretched to fill the respective border areas. In fact, this was already made use of by having left/right image height=1 as special cases. Now all the texture dimensions behave the same. No change in behavior, the values are the same, just computed differently. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
5b82324b -
Pekka Paalanen authored
Pure refactoring to make the code easier to read. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
326a762e -
Pekka Paalanen authored
Pure refactoring to make the code easier to read. Also drop the redundant all-clean check. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
39a9b654 -
Pekka Paalanen authored
Do not use border texture size when we have the area stored. This decouples border texture size further. We also have buffer_height available directly from fb_size, so do not reverse-engineer it. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
02879a93 -
Pekka Paalanen authored
Replace all the remaining weston_output::current_mode and borders[] uses with the fb_size and the compositing area. The result is the same, but we stop depending on weston_output, and border texture sizes which may not be the same as border sizes. This is more correct, semantically. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
db47898f