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

Don't send a resize event if the window size didn't change #551

Merged
merged 1 commit into from Jun 28, 2013

Conversation

@sethfowler
Copy link
Contributor

sethfowler commented Jun 28, 2013

Performance will be better and benchmarking easier if we don't run layout an extra unnecessary time when loading a page from the commandline. This is happening because we always send a resize event to the script task from the compositor whenever the platform tells us one happened, even if the window size didn't change. This PR fixes this by checking that the window size is actually different before sending the event.

@sethfowler
Copy link
Contributor Author

sethfowler commented Jun 28, 2013

@pcwalton, r?

@metajack

This comment has been minimized.

Copy link

metajack commented on 72f5e5f Jun 28, 2013

r+

@bors-servo

This comment has been minimized.

Copy link
Contributor

bors-servo commented on 72f5e5f Jun 28, 2013

saw approval from metajack
at sethfowler@72f5e5f

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jun 28, 2013

merging sfowler/servo/run-layout-once = 72f5e5f into auto

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jun 28, 2013

sfowler/servo/run-layout-once = 72f5e5f merged ok, testing candidate = fed4f95

This comment has been minimized.

Copy link
Contributor

bors-servo replied Jun 28, 2013

fast-forwarding master to auto = fed4f95

bors-servo pushed a commit that referenced this pull request Jun 28, 2013
Performance will be better and benchmarking easier if we don't run layout an extra unnecessary time when loading a page from the commandline. This is happening because we always send a resize event to the script task from the compositor whenever the platform tells us one happened, even if the window size didn't change. This PR fixes this by checking that the window size is actually different before sending the event.
@bors-servo bors-servo merged commit 72f5e5f into servo:master Jun 28, 2013
1 check passed
1 check passed
default all tests passed
glennw pushed a commit to glennw/servo that referenced this pull request Jan 16, 2017
Remove old glyph blur shader, that is superseded by cs_blur.

<!-- 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/551)
<!-- Reviewable:end -->
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.