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

Text rendering optimizations and bug fixes. #1525

Merged
merged 2 commits into from Jul 28, 2017
Merged

Conversation

@glennw
Copy link
Member

glennw commented Jul 27, 2017

  • Switch subpixel positioning to be applied on one axis only.
    Subpixel positioning only needs to be applied on the axis of the text run direction.
    Reduces the number of glyphs rasterized significantly, saving texture memory and CPU time.
  • Switch shader truncating of text run vertices to be based on the subpixel positioning direction.
  • Apply subpixel positioning to alpha AA text runs (including shadows).
  • Fix a bug in Linux subpixel AA mode where the dimensions didn't match the bitmap.

This change is Reviewable

@glennw
Copy link
Member Author

glennw commented Jul 27, 2017

r? @kvark

(I've run the tests on Linux / Mac).

@glennw glennw force-pushed the glennw:subpx-dir branch 2 times, most recently from 824cf5a to 2fb74a2 Jul 27, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Jul 27, 2017

The latest upstream changes (presumably #1527) made this pull request unmergeable. Please resolve the merge conflicts.

gw3583 added 2 commits Jul 26, 2017
* Switch subpixel positioning to be applied on one axis only.
  Subpixel positioning only needs to be applied on the axis of the text run direction.
  Reduces the number of glyphs rasterized significantly, saving texture memory and CPU time.
* Switch shader truncating of text run vertices to be based on the subpixel positioning direction.
* Apply subpixel positioning to alpha AA text runs (including shadows).
* Fix a bug in Linux subpixel AA mode where the dimensions didn't match the bitmap.
@glennw glennw force-pushed the glennw:subpx-dir branch from 2fb74a2 to e8a6249 Jul 28, 2017
@glennw
Copy link
Member Author

glennw commented Jul 28, 2017

Rebased

@kvark
Copy link
Member

kvark commented Jul 28, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jul 28, 2017

📌 Commit e8a6249 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Jul 28, 2017

Testing commit e8a6249 with merge 921bde2...

bors-servo added a commit that referenced this pull request Jul 28, 2017
Text rendering optimizations and bug fixes.

* Switch subpixel positioning to be applied on one axis only.
  Subpixel positioning only needs to be applied on the axis of the text run direction.
  Reduces the number of glyphs rasterized significantly, saving texture memory and CPU time.
* Switch shader truncating of text run vertices to be based on the subpixel positioning direction.
* Apply subpixel positioning to alpha AA text runs (including shadows).
* Fix a bug in Linux subpixel AA mode where the dimensions didn't match the bitmap.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1525)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 28, 2017

☀️ Test successful - status-travis
Approved by: kvark
Pushing 921bde2 to master...

@bors-servo bors-servo merged commit e8a6249 into servo:master Jul 28, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.