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 support for basic performance annotations to reftests. #2105

Merged
merged 1 commit into from Nov 27, 2017

Conversation

@glennw
Copy link
Member

glennw commented Nov 27, 2017

This basic implementation allows a reftest to optionally specifiy
the expected number of draw calls, alpha targets and color targets
that the test should use.

This can be used for things such as:

  • Ensuring primitives are batching together as expected.
  • Ensuring that tests use the expected number of render targets.
  • Ensuring that invisible filters are removed.
  • Ensuring that certain operations (e.g. opacity) get collapsed
    into a more efficient rendering strategy.

This change is Reviewable

@glennw
Copy link
Member Author

glennw commented Nov 27, 2017

r? @kvark or @nical

If you have better suggestions for how to specify these in a cleaner way, or the output should be different, let me know.

This basic implementation allows a reftest to optionally specifiy
the expected number of draw calls, alpha targets and color targets
that the test should use.

This can be used for things such as:
 * Ensuring primitives are batching together as expected.
 * Ensuring that tests use the expected number of render targets.
 * Ensuring that invisible filters are removed.
 * Ensuring that certain operations (e.g. opacity) get collapsed
   into a more efficient rendering strategy.
@glennw glennw force-pushed the glennw:wrench-perf branch from c99ba3f to da8f428 Nov 27, 2017
@nical
Copy link
Collaborator

nical commented Nov 27, 2017

Looks good to me! @bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Nov 27, 2017

📌 Commit da8f428 has been approved by nical

@bors-servo
Copy link
Contributor

bors-servo commented Nov 27, 2017

Testing commit da8f428 with merge 0d3cab5...

bors-servo added a commit that referenced this pull request Nov 27, 2017
Add support for basic performance annotations to reftests.

This basic implementation allows a reftest to optionally specifiy
the expected number of draw calls, alpha targets and color targets
that the test should use.

This can be used for things such as:
 * Ensuring primitives are batching together as expected.
 * Ensuring that tests use the expected number of render targets.
 * Ensuring that invisible filters are removed.
 * Ensuring that certain operations (e.g. opacity) get collapsed
   into a more efficient rendering strategy.

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

bors-servo commented Nov 27, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: nical
Pushing 0d3cab5 to master...

@bors-servo bors-servo merged commit da8f428 into servo:master Nov 27, 2017
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@glennw glennw deleted the glennw:wrench-perf branch Nov 28, 2017
@glennw
Copy link
Member Author

glennw commented Nov 28, 2017

@staktrace Heads up that you'll need to change the Ok(()) in bindings.rs to Ok(_).

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.