{"action":"created","issue":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/356","labels_url":"https://api.github.com/repos/catapult-project/catapult/issues/356/labels{/name}","comments_url":"https://api.github.com/repos/catapult-project/catapult/issues/356/comments","events_url":"https://api.github.com/repos/catapult-project/catapult/issues/356/events","html_url":"https://github.com/catapult-project/catapult/issues/356","id":98559938,"number":356,"title":"Scale canvas context to devicePixelRatio only once","user":{"login":"catapult-bot","id":13457154,"avatar_url":"https://avatars.githubusercontent.com/u/13457154?v=3","gravatar_id":"","url":"https://api.github.com/users/catapult-bot","html_url":"https://github.com/catapult-bot","followers_url":"https://api.github.com/users/catapult-bot/followers","following_url":"https://api.github.com/users/catapult-bot/following{/other_user}","gists_url":"https://api.github.com/users/catapult-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/catapult-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catapult-bot/subscriptions","organizations_url":"https://api.github.com/users/catapult-bot/orgs","repos_url":"https://api.github.com/users/catapult-bot/repos","events_url":"https://api.github.com/users/catapult-bot/events{/privacy}","received_events_url":"https://api.github.com/users/catapult-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catapult-project/catapult/labels/Code%20Health","name":"Code Health","color":"fbca04"},{"url":"https://api.github.com/repos/catapult-project/catapult/labels/P2","name":"P2","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-01T20:29:25Z","updated_at":"2015-08-01T20:29:51Z","closed_at":null,"body":"<a href=\"https://github.com/natduca\"><img src=\"https://avatars.githubusercontent.com/u/412396?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [natduca](https://github.com/natduca)**\n_Monday Sep 22, 2014 at 20:14 GMT_\n_Originally opened as https://github.com/google/trace-viewer/issues/356_\n\n----\n\n_From [egraet...@chromium.org](https://code.google.com/u/105935940897958904841/) on July 30, 2013 02:05:47_\n\nWhen working on the ruler track recently, I had to deal with some hiDPI specific cases on the canvas. This is a pain, because I need to test on a hiDPI device separately.\r\n\r\nI was wondering if it's possible to just scale the canvas context by device scale once. I found a nice article by @aerotwist: http://www.html5rocks.com/en/tutorials/canvas/hidpi/ Can we use this approach for trace-viewer?\n\n_Original issue: http://code.google.com/p/trace-viewer/issues/detail?id=351_\n"},"comment":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/comments/126951704","html_url":"https://github.com/catapult-project/catapult/issues/356#issuecomment-126951704","issue_url":"https://api.github.com/repos/catapult-project/catapult/issues/356","id":126951704,"user":{"login":"catapult-bot","id":13457154,"avatar_url":"https://avatars.githubusercontent.com/u/13457154?v=3","gravatar_id":"","url":"https://api.github.com/users/catapult-bot","html_url":"https://github.com/catapult-bot","followers_url":"https://api.github.com/users/catapult-bot/followers","following_url":"https://api.github.com/users/catapult-bot/following{/other_user}","gists_url":"https://api.github.com/users/catapult-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/catapult-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catapult-bot/subscriptions","organizations_url":"https://api.github.com/users/catapult-bot/orgs","repos_url":"https://api.github.com/users/catapult-bot/repos","events_url":"https://api.github.com/users/catapult-bot/events{/privacy}","received_events_url":"https://api.github.com/users/catapult-bot/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T20:29:51Z","updated_at":"2015-08-01T20:29:51Z","body":"<a href=\"https://github.com/dj2\"><img src=\"https://avatars.githubusercontent.com/u/9611?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [dj2](https://github.com/dj2)**\n_Monday Jun 29, 2015 at 17:44 GMT_\n\n----\n\nWhen you say 100% canvas, do you mean the bits of DOM we draw on top to show like the process titles and things like that?\r\n\r\nThis bug was, I believe, about that fact that we multiple things by device scale in several places. It would be better to scale the canvas once and remove all of the other scallign calls.\n"}}