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

Only Build Display Items for Background if Really Necessary #19672

Open
pyfisch opened this issue Jan 1, 2018 · 0 comments
Open

Only Build Display Items for Background if Really Necessary #19672

pyfisch opened this issue Jan 1, 2018 · 0 comments

Comments

@pyfisch
Copy link
Contributor

@pyfisch pyfisch commented Jan 1, 2018

There are at least two cases where Display Items for backgrounds are emitted when they are not needed for rendering:

  1. Lower background layer is completely covered by opaque upper layer.
  2. A background image or gradient where at least one size is equal zero.

I am not sure what the performance impact of both optimizations would be. While it is very common that a gradient and a solid fallback color are specified (case 1.) there are some optimizations on the webrender side to avoid actual painting by the GPU.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.