{"action":"opened","number":2688,"pull_request":{"url":"https://api.github.com/repos/servo/webrender/pulls/2688","id":183818922,"html_url":"https://github.com/servo/webrender/pull/2688","diff_url":"https://github.com/servo/webrender/pull/2688.diff","patch_url":"https://github.com/servo/webrender/pull/2688.patch","issue_url":"https://api.github.com/repos/servo/webrender/issues/2688","number":2688,"state":"open","locked":false,"title":"Only run the pre- and post-swap hooks for transactions that build a scene","user":{"login":"staktrace","id":485789,"avatar_url":"https://avatars3.githubusercontent.com/u/485789?v=4","gravatar_id":"","url":"https://api.github.com/users/staktrace","html_url":"https://github.com/staktrace","followers_url":"https://api.github.com/users/staktrace/followers","following_url":"https://api.github.com/users/staktrace/following{/other_user}","gists_url":"https://api.github.com/users/staktrace/gists{/gist_id}","starred_url":"https://api.github.com/users/staktrace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staktrace/subscriptions","organizations_url":"https://api.github.com/users/staktrace/orgs","repos_url":"https://api.github.com/users/staktrace/repos","events_url":"https://api.github.com/users/staktrace/events{/privacy}","received_events_url":"https://api.github.com/users/staktrace/received_events","type":"User","site_admin":false},"body":"All sorts of transactions go through the scene builder thread, and only\r\nsome of them actually build a scene and result in a scene swap. It's\r\nonly in those cases that we need to invoke the pre- and post-swap hooks.\r\nDoing it in other cases is wasteful, for Gecko at least.","created_at":"2018-04-24T18:04:44Z","updated_at":"2018-04-24T18:04:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/servo/webrender/pulls/2688/commits","review_comments_url":"https://api.github.com/repos/servo/webrender/pulls/2688/comments","review_comment_url":"https://api.github.com/repos/servo/webrender/pulls/comments{/number}","comments_url":"https://api.github.com/repos/servo/webrender/issues/2688/comments","statuses_url":"https://api.github.com/repos/servo/webrender/statuses/b36a822909338c0f79344b4807de40052752ae90","head":{"label":"staktrace:swaponly","ref":"swaponly","sha":"b36a822909338c0f79344b4807de40052752ae90","user":{"login":"staktrace","id":485789,"avatar_url":"https://avatars3.githubusercontent.com/u/485789?v=4","gravatar_id":"","url":"https://api.github.com/users/staktrace","html_url":"https://github.com/staktrace","followers_url":"https://api.github.com/users/staktrace/followers","following_url":"https://api.github.com/users/staktrace/following{/other_user}","gists_url":"https://api.github.com/users/staktrace/gists{/gist_id}","starred_url":"https://api.github.com/users/staktrace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staktrace/subscriptions","organizations_url":"https://api.github.com/users/staktrace/orgs","repos_url":"https://api.github.com/users/staktrace/repos","events_url":"https://api.github.com/users/staktrace/events{/privacy}","received_events_url":"https://api.github.com/users/staktrace/received_events","type":"User","site_admin":false},"repo":{"id":74067549,"name":"webrender","full_name":"staktrace/webrender","owner":{"login":"staktrace","id":485789,"avatar_url":"https://avatars3.githubusercontent.com/u/485789?v=4","gravatar_id":"","url":"https://api.github.com/users/staktrace","html_url":"https://github.com/staktrace","followers_url":"https://api.github.com/users/staktrace/followers","following_url":"https://api.github.com/users/staktrace/following{/other_user}","gists_url":"https://api.github.com/users/staktrace/gists{/gist_id}","starred_url":"https://api.github.com/users/staktrace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staktrace/subscriptions","organizations_url":"https://api.github.com/users/staktrace/orgs","repos_url":"https://api.github.com/users/staktrace/repos","events_url":"https://api.github.com/users/staktrace/events{/privacy}","received_events_url":"https://api.github.com/users/staktrace/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/staktrace/webrender","description":"A very incomplete proof of concept GPU renderer for Servo","fork":true,"url":"https://api.github.com/repos/staktrace/webrender","forks_url":"https://api.github.com/repos/staktrace/webrender/forks","keys_url":"https://api.github.com/repos/staktrace/webrender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/staktrace/webrender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/staktrace/webrender/teams","hooks_url":"https://api.github.com/repos/staktrace/webrender/hooks","issue_events_url":"https://api.github.com/repos/staktrace/webrender/issues/events{/number}","events_url":"https://api.github.com/repos/staktrace/webrender/events","assignees_url":"https://api.github.com/repos/staktrace/webrender/assignees{/user}","branches_url":"https://api.github.com/repos/staktrace/webrender/branches{/branch}","tags_url":"https://api.github.com/repos/staktrace/webrender/tags","blobs_url":"https://api.github.com/repos/staktrace/webrender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/staktrace/webrender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/staktrace/webrender/git/refs{/sha}","trees_url":"https://api.github.com/repos/staktrace/webrender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/staktrace/webrender/statuses/{sha}","languages_url":"https://api.github.com/repos/staktrace/webrender/languages","stargazers_url":"https://api.github.com/repos/staktrace/webrender/stargazers","contributors_url":"https://api.github.com/repos/staktrace/webrender/contributors","subscribers_url":"https://api.github.com/repos/staktrace/webrender/subscribers","subscription_url":"https://api.github.com/repos/staktrace/webrender/subscription","commits_url":"https://api.github.com/repos/staktrace/webrender/commits{/sha}","git_commits_url":"https://api.github.com/repos/staktrace/webrender/git/commits{/sha}","comments_url":"https://api.github.com/repos/staktrace/webrender/comments{/number}","issue_comment_url":"https://api.github.com/repos/staktrace/webrender/issues/comments{/number}","contents_url":"https://api.github.com/repos/staktrace/webrender/contents/{+path}","compare_url":"https://api.github.com/repos/staktrace/webrender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/staktrace/webrender/merges","archive_url":"https://api.github.com/repos/staktrace/webrender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/staktrace/webrender/downloads","issues_url":"https://api.github.com/repos/staktrace/webrender/issues{/number}","pulls_url":"https://api.github.com/repos/staktrace/webrender/pulls{/number}","milestones_url":"https://api.github.com/repos/staktrace/webrender/milestones{/number}","notifications_url":"https://api.github.com/repos/staktrace/webrender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/staktrace/webrender/labels{/name}","releases_url":"https://api.github.com/repos/staktrace/webrender/releases{/id}","deployments_url":"https://api.github.com/repos/staktrace/webrender/deployments","created_at":"2016-11-17T21:07:23Z","updated_at":"2018-04-04T19:17:42Z","pushed_at":"2018-04-24T18:03:35Z","git_url":"git://github.com/staktrace/webrender.git","ssh_url":"git@github.com:staktrace/webrender.git","clone_url":"https://github.com/staktrace/webrender.git","svn_url":"https://github.com/staktrace/webrender","homepage":"https://doc.servo.org/webrender/","size":25354,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"servo:master","ref":"master","sha":"d7039788d903705eb66fb7c6bdcf053c3c886f8b","user":{"login":"servo","id":2566135,"avatar_url":"https://avatars1.githubusercontent.com/u/2566135?v=4","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"repo":{"id":42894575,"name":"webrender","full_name":"servo/webrender","owner":{"login":"servo","id":2566135,"avatar_url":"https://avatars1.githubusercontent.com/u/2566135?v=4","gravatar_id":"","url":"https://api.github.com/users/servo","html_url":"https://github.com/servo","followers_url":"https://api.github.com/users/servo/followers","following_url":"https://api.github.com/users/servo/following{/other_user}","gists_url":"https://api.github.com/users/servo/gists{/gist_id}","starred_url":"https://api.github.com/users/servo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/servo/subscriptions","organizations_url":"https://api.github.com/users/servo/orgs","repos_url":"https://api.github.com/users/servo/repos","events_url":"https://api.github.com/users/servo/events{/privacy}","received_events_url":"https://api.github.com/users/servo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/servo/webrender","description":"A GPU-based renderer for the web","fork":false,"url":"https://api.github.com/repos/servo/webrender","forks_url":"https://api.github.com/repos/servo/webrender/forks","keys_url":"https://api.github.com/repos/servo/webrender/keys{/key_id}","collaborators_url":"https://api.github.com/repos/servo/webrender/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/servo/webrender/teams","hooks_url":"https://api.github.com/repos/servo/webrender/hooks","issue_events_url":"https://api.github.com/repos/servo/webrender/issues/events{/number}","events_url":"https://api.github.com/repos/servo/webrender/events","assignees_url":"https://api.github.com/repos/servo/webrender/assignees{/user}","branches_url":"https://api.github.com/repos/servo/webrender/branches{/branch}","tags_url":"https://api.github.com/repos/servo/webrender/tags","blobs_url":"https://api.github.com/repos/servo/webrender/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/servo/webrender/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/servo/webrender/git/refs{/sha}","trees_url":"https://api.github.com/repos/servo/webrender/git/trees{/sha}","statuses_url":"https://api.github.com/repos/servo/webrender/statuses/{sha}","languages_url":"https://api.github.com/repos/servo/webrender/languages","stargazers_url":"https://api.github.com/repos/servo/webrender/stargazers","contributors_url":"https://api.github.com/repos/servo/webrender/contributors","subscribers_url":"https://api.github.com/repos/servo/webrender/subscribers","subscription_url":"https://api.github.com/repos/servo/webrender/subscription","commits_url":"https://api.github.com/repos/servo/webrender/commits{/sha}","git_commits_url":"https://api.github.com/repos/servo/webrender/git/commits{/sha}","comments_url":"https://api.github.com/repos/servo/webrender/comments{/number}","issue_comment_url":"https://api.github.com/repos/servo/webrender/issues/comments{/number}","contents_url":"https://api.github.com/repos/servo/webrender/contents/{+path}","compare_url":"https://api.github.com/repos/servo/webrender/compare/{base}...{head}","merges_url":"https://api.github.com/repos/servo/webrender/merges","archive_url":"https://api.github.com/repos/servo/webrender/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/servo/webrender/downloads","issues_url":"https://api.github.com/repos/servo/webrender/issues{/number}","pulls_url":"https://api.github.com/repos/servo/webrender/pulls{/number}","milestones_url":"https://api.github.com/repos/servo/webrender/milestones{/number}","notifications_url":"https://api.github.com/repos/servo/webrender/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/servo/webrender/labels{/name}","releases_url":"https://api.github.com/repos/servo/webrender/releases{/id}","deployments_url":"https://api.github.com/repos/servo/webrender/deployments","created_at":"2015-09-21T21:27:30Z","updated_at":"2018-04-24T08:27:13Z","pushed_at":"2018-04-24T17:17:59Z","git_url":"git://github.com/servo/webrender.git","ssh_url":"git@github.com:servo/webrender.git","clone_url":"https://github.com/servo/webrender.git","svn_url":"https://github.com/servo/webrender","homepage":"https://doc.servo.org/webrender/","size":28786,"stargazers_count":1078,"watchers_count":1078,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":163,"mirror_url":null,"archived":false,"open_issues_count":185,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":163,"open_issues":185,"watchers":1078,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/servo/webrender/pulls/2688"},"html":{"href":"https://github.com/servo/webrender/pull/2688"},"issue":{"href":"https://api.github.com/repos/servo/webrender/issues/2688"},"comments":{"href":"https://api.github.com/repos/servo/webrender/issues/2688/comments"},"review_comments":{"href":"https://api.github.com/repos/servo/webrender/pulls/2688/comments"},"review_comment":{"href":"https://api.github.com/repos/servo/webrender/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/servo/webrender/pulls/2688/commits"},"statuses":{"href":"https://api.github.com/repos/servo/webrender/statuses/b36a822909338c0f79344b4807de40052752ae90"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":33,"deletions":27,"changed_files":2}}
{"actor":{"display_login":"staktrace"}}