Commits on Source (7)
-
clip_simple() isn't used anymore outside of the clipper. This commit removes it to simplify the clipper API. Its implementation is moved straight to the axis-aligned quad clipping path of clip_transformed(). Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
aac11c88 -
Pass a clip_vertex struct and a size to clip_transformed() instead of a polygon8 struct to simplify the clipper API by sticking to a common vertex representation. Simmplify vertex-clip test since clip_transformed() now works on a copy of the polygon (commit edd5d1cc). Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
b8063dbb -
Carry on the common vertex representation front by making boxes use the clip_vertex struct. A new function clip_quad_box32() is added to clearly separate the main function taking a clip_vertex struct from the utility function taking a pixman_box32 struct. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
bf222f18 -
Simplify clip_transformed() by replacing its context parameter with a clipping box parameter. The context struct is still used internally to pass data around. Since clip_transformed() doesn't take a context anymore, the clipping boxes are now declared per test and stored along with the other vertex data. That prepares the ground to add new tests using different boxes. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
f74c5a41 -
Extract quad bounding box initialization from the GL renderer and move it to a dedicated initialization function in the clipper. It's used by both the renderer and the clipping test client, which further reduces code duplication. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
2d0d0175 -
Prefix and slightly rename the clipper structs and funcs: - struct clip_vertex -> struct clipper_vertex - struct gl_quad -> struct clipper_quad - clip_transformed() -> clipper_clip() - init_quad() -> clipper_quad_init() - clip_quad() -> clipper_quad_clip() - clip_quad_box32() -> clipper_quad_clip_box32() - float_difference() -> clipper_float_difference() Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
42205628 -
Add clipper_clip() documentation and improve comments a tiny bit. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com>
309a5461