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

Check FrameId of render tasks #2569

Merged
merged 1 commit into from Mar 26, 2018
Merged

Check FrameId of render tasks #2569

merged 1 commit into from Mar 26, 2018

Conversation

@kvark
Copy link
Member

kvark commented Mar 26, 2018

Looking at #2568 I realized that nothing stops the frame builder from re-using the RenderTaskId from previous frames, which is a disaster (and I believe I've seen at least one case where this happened). Attaching the frame ID and checking it in debug appears to be a straightforward run-time protection.

r? anyone


This change is Reviewable

@glennw
Copy link
Member

glennw commented Mar 26, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Mar 26, 2018

📌 Commit 4662bad has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Mar 26, 2018

Testing commit 4662bad with merge 42fddb4...

bors-servo added a commit that referenced this pull request Mar 26, 2018
Check FrameId of render tasks

Looking at #2568 I realized that nothing stops the frame builder from re-using the `RenderTaskId` from previous frames, which is a disaster (and I believe I've seen at least one case where this happened). Attaching the frame ID and checking it in debug appears to be a straightforward run-time protection.

r? anyone

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

bors-servo commented Mar 26, 2018

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: glennw
Pushing 42fddb4 to master...

@bors-servo bors-servo merged commit 4662bad into servo:master Mar 26, 2018
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@kvark kvark deleted the kvark:render-task-frame branch Mar 27, 2018
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.