Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New backend rounded corner, part 1 #716

Merged
merged 8 commits into from
Nov 8, 2021
Merged

Conversation

yshui
Copy link
Owner

@yshui yshui commented Oct 25, 2021

This pull request add basic rounded corner for the new glx and xrender backends.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
xcb_render_triangle is slow because (at least for Glamor) it's
rasterizing the triangles on CPU.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #716 (da909b7) into next (ad18d12) will decrease coverage by 0.02%.
The diff coverage is 5.63%.

❗ Current head da909b7 differs from pull request most recent head 8eb5bb0. Consider uploading reports for the commit 8eb5bb0 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             next     #716      +/-   ##
==========================================
- Coverage   39.31%   39.28%   -0.03%     
==========================================
  Files          46       46              
  Lines        9584     9644      +60     
==========================================
+ Hits         3768     3789      +21     
- Misses       5816     5855      +39     
Impacted Files Coverage Δ
src/backend/backend_common.c 39.91% <0.00%> (-0.34%) ⬇️
src/backend/gl/gl_common.h 23.07% <ø> (ø)
src/backend/xrender/xrender.c 0.00% <0.00%> (ø)
src/options.c 21.47% <ø> (+0.12%) ⬆️
src/x.c 48.75% <ø> (ø)
src/x.h 84.21% <ø> (ø)
src/backend/gl/gl_common.c 15.10% <50.00%> (+0.14%) ⬆️
src/backend/backend.c 63.80% <100.00%> (+0.44%) ⬆️
src/backend/dummy/dummy.c 69.23% <0.00%> (+0.48%) ⬆️
src/picom.c 68.31% <0.00%> (+0.56%) ⬆️
... and 1 more

@yshui
Copy link
Owner Author

yshui commented Oct 28, 2021

@tryone144 Hi, does this look reasonable to you? I want to bring the new backends to feature parity quickly (instead of a complete implementation) in terms of rounded corners, and make a new release. That's why I made a new PR alongside #658

After this PR, I would implement rounded border for glx.

@tryone144
Copy link
Collaborator

Hi, does this look reasonable to you?

I'll try to find some time over the weekend to take a look at this.

Copy link
Collaborator

@tryone144 tryone144 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good to me. 👍
I just think the ref-counting got shuffled up while adding the cached mask image to the xrender backend.

src/backend/backend.c Show resolved Hide resolved
src/backend/backend_common.h Show resolved Hide resolved
src/backend/xrender/xrender.c Show resolved Hide resolved
Thanks, @tryone144

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@yshui yshui force-pushed the new-backend-rounded-corner-1 branch from da909b7 to 8eb5bb0 Compare November 8, 2021 00:23
@yshui
Copy link
Owner Author

yshui commented Nov 8, 2021

@tryone144 thanks for the review! looks like this is good to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants