{"action":"created","issue":{"url":"https://api.github.com/repos/servo/rust-layers/issues/194","labels_url":"https://api.github.com/repos/servo/rust-layers/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/servo/rust-layers/issues/194/comments","events_url":"https://api.github.com/repos/servo/rust-layers/issues/194/events","html_url":"https://github.com/servo/rust-layers/pull/194","id":95554429,"number":194,"title":"Have NativeSurface store their size","user":{"login":"mrobinson","id":13536,"avatar_url":"https://avatars.githubusercontent.com/u/13536?v=3","gravatar_id":"","url":"https://api.github.com/users/mrobinson","html_url":"https://github.com/mrobinson","followers_url":"https://api.github.com/users/mrobinson/followers","following_url":"https://api.github.com/users/mrobinson/following{/other_user}","gists_url":"https://api.github.com/users/mrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/mrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrobinson/subscriptions","organizations_url":"https://api.github.com/users/mrobinson/orgs","repos_url":"https://api.github.com/users/mrobinson/repos","events_url":"https://api.github.com/users/mrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/mrobinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-16T23:47:30Z","updated_at":"2015-07-17T20:01:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/servo/rust-layers/pulls/194","html_url":"https://github.com/servo/rust-layers/pull/194","diff_url":"https://github.com/servo/rust-layers/pull/194.diff","patch_url":"https://github.com/servo/rust-layers/pull/194.patch"},"body":"This will allow the Servo surface cache to store NativeSurfaces instead\r\nof LayerBuffers and also allow the surface cache to move into\r\nrust-layers, if that is useful. It also simplifies how some methods are\r\ncalled.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/servo/rust-layers/194)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/servo/rust-layers/issues/comments/122396668","html_url":"https://github.com/servo/rust-layers/pull/194#issuecomment-122396668","issue_url":"https://api.github.com/repos/servo/rust-layers/issues/194","id":122396668,"user":{"login":"pcwalton","id":157897,"avatar_url":"https://avatars.githubusercontent.com/u/157897?v=3","gravatar_id":"","url":"https://api.github.com/users/pcwalton","html_url":"https://github.com/pcwalton","followers_url":"https://api.github.com/users/pcwalton/followers","following_url":"https://api.github.com/users/pcwalton/following{/other_user}","gists_url":"https://api.github.com/users/pcwalton/gists{/gist_id}","starred_url":"https://api.github.com/users/pcwalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcwalton/subscriptions","organizations_url":"https://api.github.com/users/pcwalton/orgs","repos_url":"https://api.github.com/users/pcwalton/repos","events_url":"https://api.github.com/users/pcwalton/events{/privacy}","received_events_url":"https://api.github.com/users/pcwalton/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T20:01:51Z","updated_at":"2015-07-17T20:01:51Z","body":"I guess the main reason for caching this instead of calling `XGetGeometry` is that the latter might be slow because it'll do a trip to the X server?"}}