Yuxuan Shui
5ac8b7fc56
backend: gl: use gaussian blur for shadow
...
dual kawase is fast but its blur size is coarse grained, which sometimes
makes the shadow ugly.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-09-18 05:00:52 +01:00
Yuxuan Shui
94e3d4d483
kernel: be more conservative when estimating deviation
...
Using integral to estimate the sum of the kernel will overestimate a
little bit.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-08-26 05:42:58 +01:00
Yuxuan Shui
84407099a9
backend: give backends more flexibility regarding shadow creation
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-08-26 05:42:51 +01:00
Yuxuan Shui
452e313c64
kernel: tweak gaussian deviation
...
So that the shadow doesn't look cut off or fuzzy.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-05-21 20:15:30 +01:00
Yuxuan Shui
0037b7e5fb
Eliminate implicit conversions
...
Use explicit conversions everywhere. Adding bounds check assertions when
necessary.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-05-21 20:15:25 +01:00
Yuxuan Shui
9ec298305a
Cache converted blur kernel
...
After converting from struct conv to xorg format, cache the result to
save CPU time.
And remove an unused function.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-02-20 16:45:53 +00:00
Yuxuan Shui
ed9c7064de
Add helper function for kernel normalization
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-02-20 01:47:52 +00:00
Yuxuan Shui
b2750b26e0
Rectangle kernels
...
Replace conv::size with conv::{w,h}.
Shadow kernels are still squares, though.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-02-17 21:58:43 +00:00
Yuxuan Shui
916e23861a
Improve the header includes, cont'd
...
Also check in the modulemap file, and add a option to build with clang's
-fmodules.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-01-20 17:10:06 +00:00
Yuxuan Shui
428c24a6fa
Speed up shadow generation for small windows
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-01-01 11:35:59 +00:00
Yuxuan Shui
4aeffa36b8
Refactor shadow generation
...
Trying to make the code easier to understand. The logic is unchanged.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2019-01-01 10:54:21 +00:00
Yuxuan Shui
24dd8ee120
Convert printf_* in vsync.c
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2018-12-20 17:19:41 +00:00
Yuxuan Shui
8bc052929e
Enable -Werror in CI
...
And fixes some warnings.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2018-12-19 23:41:58 +00:00
Yuxuan Shui
e58cbf8add
Convert non-mandatory attributes to macros
...
They're shorter and more portable.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2018-12-19 20:50:02 +00:00
Yuxuan Shui
baeb4572ff
Move rendering related functions out of compton.c
...
Moved:
* Blur kernel related functions to kernel.c
* Vsync related functions to vsync.c
* paint related functions to render.c
This will make the `split-backend` branch easier to rebase.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2018-12-16 00:50:46 +00:00