{"action":"created","comment":{"url":"https://api.github.com/repos/domokit/sky_engine/pulls/comments/36682041","id":36682041,"diff_hunk":"@@ -0,0 +1,19 @@\n+part of sprites;\n+\n+class Layer extends Node with SpritePaint {\n+  Paint _cachedPaint = new Paint()\n+    ..setFilterQuality(FilterQuality.low)\n+    ..isAntiAlias = false;\n+\n+  void _prePaint(PaintingCanvas canvas, Matrix4 matrix) {\n+    super._prePaint(canvas, matrix);\n+\n+    _updatePaint(_cachedPaint);\n+    canvas.saveLayer(null, _cachedPaint);","path":"examples/game/lib/layer.dart","position":12,"original_position":12,"commit_id":"05824f09376089a13e21584905be4b052c6dd924","original_commit_id":"05824f09376089a13e21584905be4b052c6dd924","user":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"body":"This is my first pass, so still working on the details.\r\n\r\nI'm thinking it could be useful for devs to be able to pass in a custom rect, automatically computing the bounds would probably be pretty tricky.","created_at":"2015-08-10T20:45:02Z","updated_at":"2015-08-10T20:45:02Z","html_url":"https://github.com/domokit/sky_engine/pull/521#discussion_r36682041","pull_request_url":"https://api.github.com/repos/domokit/sky_engine/pulls/521","_links":{"self":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/comments/36682041"},"html":{"href":"https://github.com/domokit/sky_engine/pull/521#discussion_r36682041"},"pull_request":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/521"}}},"pull_request":{"url":"https://api.github.com/repos/domokit/sky_engine/pulls/521","id":42057663,"html_url":"https://github.com/domokit/sky_engine/pull/521","diff_url":"https://github.com/domokit/sky_engine/pull/521.diff","patch_url":"https://github.com/domokit/sky_engine/pull/521.patch","issue_url":"https://api.github.com/repos/domokit/sky_engine/issues/521","number":521,"state":"open","locked":false,"title":"Adds new Layer class to sprites","user":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"body":"- Adds a new Layer class that uses Skia's saveLayer, this is useful for applying effects to a sub-tree of the sprite tree.\r\n- Refactors sprite class to use SpritePaint mix-in to avoid duplication of code with the new Layer class.\r\n- Updates demo game with changes to Sprites and Nodes.","created_at":"2015-08-10T19:40:53Z","updated_at":"2015-08-10T20:45:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8681d52f26db4dea9945dc20f064605b087d4d3a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/domokit/sky_engine/pulls/521/commits","review_comments_url":"https://api.github.com/repos/domokit/sky_engine/pulls/521/comments","review_comment_url":"https://api.github.com/repos/domokit/sky_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domokit/sky_engine/issues/521/comments","statuses_url":"https://api.github.com/repos/domokit/sky_engine/statuses/05824f09376089a13e21584905be4b052c6dd924","head":{"label":"vlidholt:master","ref":"master","sha":"05824f09376089a13e21584905be4b052c6dd924","user":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"repo":{"id":39393886,"name":"sky_engine","full_name":"vlidholt/sky_engine","owner":{"login":"vlidholt","id":1539812,"avatar_url":"https://avatars.githubusercontent.com/u/1539812?v=3","gravatar_id":"","url":"https://api.github.com/users/vlidholt","html_url":"https://github.com/vlidholt","followers_url":"https://api.github.com/users/vlidholt/followers","following_url":"https://api.github.com/users/vlidholt/following{/other_user}","gists_url":"https://api.github.com/users/vlidholt/gists{/gist_id}","starred_url":"https://api.github.com/users/vlidholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlidholt/subscriptions","organizations_url":"https://api.github.com/users/vlidholt/orgs","repos_url":"https://api.github.com/users/vlidholt/repos","events_url":"https://api.github.com/users/vlidholt/events{/privacy}","received_events_url":"https://api.github.com/users/vlidholt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vlidholt/sky_engine","description":"The Sky engine","fork":true,"url":"https://api.github.com/repos/vlidholt/sky_engine","forks_url":"https://api.github.com/repos/vlidholt/sky_engine/forks","keys_url":"https://api.github.com/repos/vlidholt/sky_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vlidholt/sky_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vlidholt/sky_engine/teams","hooks_url":"https://api.github.com/repos/vlidholt/sky_engine/hooks","issue_events_url":"https://api.github.com/repos/vlidholt/sky_engine/issues/events{/number}","events_url":"https://api.github.com/repos/vlidholt/sky_engine/events","assignees_url":"https://api.github.com/repos/vlidholt/sky_engine/assignees{/user}","branches_url":"https://api.github.com/repos/vlidholt/sky_engine/branches{/branch}","tags_url":"https://api.github.com/repos/vlidholt/sky_engine/tags","blobs_url":"https://api.github.com/repos/vlidholt/sky_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vlidholt/sky_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vlidholt/sky_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/vlidholt/sky_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vlidholt/sky_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/vlidholt/sky_engine/languages","stargazers_url":"https://api.github.com/repos/vlidholt/sky_engine/stargazers","contributors_url":"https://api.github.com/repos/vlidholt/sky_engine/contributors","subscribers_url":"https://api.github.com/repos/vlidholt/sky_engine/subscribers","subscription_url":"https://api.github.com/repos/vlidholt/sky_engine/subscription","commits_url":"https://api.github.com/repos/vlidholt/sky_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/vlidholt/sky_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/vlidholt/sky_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/vlidholt/sky_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/vlidholt/sky_engine/contents/{+path}","compare_url":"https://api.github.com/repos/vlidholt/sky_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vlidholt/sky_engine/merges","archive_url":"https://api.github.com/repos/vlidholt/sky_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vlidholt/sky_engine/downloads","issues_url":"https://api.github.com/repos/vlidholt/sky_engine/issues{/number}","pulls_url":"https://api.github.com/repos/vlidholt/sky_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/vlidholt/sky_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/vlidholt/sky_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vlidholt/sky_engine/labels{/name}","releases_url":"https://api.github.com/repos/vlidholt/sky_engine/releases{/id}","created_at":"2015-07-20T16:02:35Z","updated_at":"2015-07-20T16:02:54Z","pushed_at":"2015-08-10T19:37:54Z","git_url":"git://github.com/vlidholt/sky_engine.git","ssh_url":"git@github.com:vlidholt/sky_engine.git","clone_url":"https://github.com/vlidholt/sky_engine.git","svn_url":"https://github.com/vlidholt/sky_engine","homepage":null,"size":71920,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"domokit:master","ref":"master","sha":"24eb60a6886d6a5169c325e23e9f53e12fdaa1c4","user":{"login":"domokit","id":8664152,"avatar_url":"https://avatars.githubusercontent.com/u/8664152?v=3","gravatar_id":"","url":"https://api.github.com/users/domokit","html_url":"https://github.com/domokit","followers_url":"https://api.github.com/users/domokit/followers","following_url":"https://api.github.com/users/domokit/following{/other_user}","gists_url":"https://api.github.com/users/domokit/gists{/gist_id}","starred_url":"https://api.github.com/users/domokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domokit/subscriptions","organizations_url":"https://api.github.com/users/domokit/orgs","repos_url":"https://api.github.com/users/domokit/repos","events_url":"https://api.github.com/users/domokit/events{/privacy}","received_events_url":"https://api.github.com/users/domokit/received_events","type":"Organization","site_admin":false},"repo":{"id":39211337,"name":"sky_engine","full_name":"domokit/sky_engine","owner":{"login":"domokit","id":8664152,"avatar_url":"https://avatars.githubusercontent.com/u/8664152?v=3","gravatar_id":"","url":"https://api.github.com/users/domokit","html_url":"https://github.com/domokit","followers_url":"https://api.github.com/users/domokit/followers","following_url":"https://api.github.com/users/domokit/following{/other_user}","gists_url":"https://api.github.com/users/domokit/gists{/gist_id}","starred_url":"https://api.github.com/users/domokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domokit/subscriptions","organizations_url":"https://api.github.com/users/domokit/orgs","repos_url":"https://api.github.com/users/domokit/repos","events_url":"https://api.github.com/users/domokit/events{/privacy}","received_events_url":"https://api.github.com/users/domokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/domokit/sky_engine","description":"The Sky engine","fork":false,"url":"https://api.github.com/repos/domokit/sky_engine","forks_url":"https://api.github.com/repos/domokit/sky_engine/forks","keys_url":"https://api.github.com/repos/domokit/sky_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domokit/sky_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domokit/sky_engine/teams","hooks_url":"https://api.github.com/repos/domokit/sky_engine/hooks","issue_events_url":"https://api.github.com/repos/domokit/sky_engine/issues/events{/number}","events_url":"https://api.github.com/repos/domokit/sky_engine/events","assignees_url":"https://api.github.com/repos/domokit/sky_engine/assignees{/user}","branches_url":"https://api.github.com/repos/domokit/sky_engine/branches{/branch}","tags_url":"https://api.github.com/repos/domokit/sky_engine/tags","blobs_url":"https://api.github.com/repos/domokit/sky_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domokit/sky_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domokit/sky_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/domokit/sky_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domokit/sky_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/domokit/sky_engine/languages","stargazers_url":"https://api.github.com/repos/domokit/sky_engine/stargazers","contributors_url":"https://api.github.com/repos/domokit/sky_engine/contributors","subscribers_url":"https://api.github.com/repos/domokit/sky_engine/subscribers","subscription_url":"https://api.github.com/repos/domokit/sky_engine/subscription","commits_url":"https://api.github.com/repos/domokit/sky_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/domokit/sky_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/domokit/sky_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/domokit/sky_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/domokit/sky_engine/contents/{+path}","compare_url":"https://api.github.com/repos/domokit/sky_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domokit/sky_engine/merges","archive_url":"https://api.github.com/repos/domokit/sky_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domokit/sky_engine/downloads","issues_url":"https://api.github.com/repos/domokit/sky_engine/issues{/number}","pulls_url":"https://api.github.com/repos/domokit/sky_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/domokit/sky_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/domokit/sky_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domokit/sky_engine/labels{/name}","releases_url":"https://api.github.com/repos/domokit/sky_engine/releases{/id}","created_at":"2015-07-16T17:39:56Z","updated_at":"2015-08-09T12:43:09Z","pushed_at":"2015-08-10T20:38:19Z","git_url":"git://github.com/domokit/sky_engine.git","ssh_url":"git@github.com:domokit/sky_engine.git","clone_url":"https://github.com/domokit/sky_engine.git","svn_url":"https://github.com/domokit/sky_engine","homepage":null,"size":74162,"stargazers_count":111,"watchers_count":111,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":124,"forks":37,"open_issues":124,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/521"},"html":{"href":"https://github.com/domokit/sky_engine/pull/521"},"issue":{"href":"https://api.github.com/repos/domokit/sky_engine/issues/521"},"comments":{"href":"https://api.github.com/repos/domokit/sky_engine/issues/521/comments"},"review_comments":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/521/comments"},"review_comment":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domokit/sky_engine/pulls/521/commits"},"statuses":{"href":"https://api.github.com/repos/domokit/sky_engine/statuses/05824f09376089a13e21584905be4b052c6dd924"}}}}