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

Fix the max dot/dash limit comment/constant and preallocate the container. #2949

Merged
merged 1 commit into from Aug 2, 2018

Conversation

@nical
Copy link
Collaborator

nical commented Aug 2, 2018

The comment is wrong (see #2915). I set the constant to 2k which is conservatively high, we might want to tweak it in the future (or better even, rewrite this so that the shader can render dots and dashes without requiring per-dot data).

I also pre-allocated the vector to avoid reallocating over and over in the bad cases.


This change is Reviewable

@kvark
kvark approved these changes Aug 2, 2018
Copy link
Member

kvark left a comment

Looks reasonable

@kvark
Copy link
Member

kvark commented Aug 2, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Aug 2, 2018

📌 Commit bd28a14 has been approved by kvark

@bors-servo
Copy link
Contributor

bors-servo commented Aug 2, 2018

Testing commit bd28a14 with merge 23beb1e...

bors-servo added a commit that referenced this pull request Aug 2, 2018
Fix the max dot/dash limit comment/constant and preallocate the container.

The comment is wrong (see #2915). I set the constant to 2k which is conservatively high, we might want to tweak it in the future (or better even, rewrite this so that the shader can render dots and dashes without requiring per-dot data).

I also pre-allocated the vector to avoid reallocating over and over in the bad cases.

<!-- 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/2949)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 2, 2018

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: kvark
Pushing 23beb1e to master...

@bors-servo bors-servo merged commit bd28a14 into servo:master Aug 2, 2018
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
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

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