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

Add a sampler mechanism #2654

Merged
merged 2 commits into from
Apr 16, 2018
Merged

Add a sampler mechanism #2654

merged 2 commits into from
Apr 16, 2018

Conversation

staktrace
Copy link
Contributor

@staktrace staktrace commented Apr 12, 2018

These changes are needed for https://bugzilla.mozilla.org/show_bug.cgi?id=1451469

r? @nical

I wasn't totally sure what the best place was to hook in the sample() method in the first patch. Part of me was thinking it would be better to do it inside the if op.render {...} block but I think what I have is equivalent, at least for the gecko case, because all the transactions that have messages that produce DocumentOps::render will also have their generate_frame flag set. But let me know if you think that can be improved.


This change is Reviewable

@nical
Copy link
Contributor

nical commented Apr 16, 2018

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit da5545a has been approved by nical

@bors-servo
Copy link
Contributor

⌛ Testing commit da5545a with merge 1f35cf7...

bors-servo pushed a commit that referenced this pull request Apr 16, 2018
Add a sampler mechanism

These changes are needed for https://bugzilla.mozilla.org/show_bug.cgi?id=1451469

r? @nical

I wasn't totally sure what the best place was to hook in the sample() method in the first patch. Part of me was thinking it would be better to do it inside the `if op.render {...}` block but I think what I have is equivalent, at least for the gecko case, because all the transactions that have messages that produce `DocumentOps::render` will also have their `generate_frame` flag set. But let me know if you think that can be improved.

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

☀️ Test successful - status-appveyor, status-taskcluster
Approved by: nical
Pushing 1f35cf7 to master...

@bors-servo bors-servo merged commit da5545a into servo:master Apr 16, 2018
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.

3 participants