Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Issue 105823010: resize mask canvas for viewer.html in skpdiff tool (Closed)

Created:
7 years ago by yunchao
Modified:
7 years ago
Reviewers:
djsollen
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

The default size of mask canvas is not appropriate. its height is too small: 150, while its width is 300. As a result, for non-alphaMask canvas who doesn't update the mask canvas size, this tool just magnify the upper part of 'Expected Image' as well as 'Actual Image' when user open view.html to show skpdiff_output.json in browser for many cases. The other part can't be shown because it is out of the mask canvas. This CL update non-alphaMask canvas size according to baseline canvas for each case, then the tool can magnify anywhere you want for the whole image when you click and move mouse on the mask canvas. Committed: http://code.google.com/p/skia/source/detail?r=12638

Patch Set 1 : set the height for mask canvas accordingly for each case #

Total comments: 8

Patch Set 2 : resize non-alphaMask canvas according to baseline canvas #

Total comments: 14

Patch Set 3 : updated code accordinding to derek's suggestions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M tools/skpdiff/diff_viewer.js View 1 2 4 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
yunchao
7 years ago (2013-12-09 08:58:52 UTC) #1
djsollen
https://codereview.chromium.org/105823010/diff/20001/tools/skpdiff/diff_viewer.js File tools/skpdiff/diff_viewer.js (right): https://codereview.chromium.org/105823010/diff/20001/tools/skpdiff/diff_viewer.js#newcode29 tools/skpdiff/diff_viewer.js:29: scope.setHWRatio4MaskCanvas(canvas.height / canvas.width); I think you can remove this. ...
7 years ago (2013-12-09 16:40:12 UTC) #2
yunchao
Hi Derek, thanks for your reviewing. I have update the code according to you suggestion. ...
7 years ago (2013-12-10 05:58:31 UTC) #3
djsollen
https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js File tools/skpdiff/diff_viewer.js (left): https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js#oldcode6 tools/skpdiff/diff_viewer.js:6: // TODO add support for a magnified scale factor ...
7 years ago (2013-12-10 14:18:15 UTC) #4
yunchao
Thanks for you reviewing, Derek, I have one question below. https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js File tools/skpdiff/diff_viewer.js (right): https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js#newcode31 ...
7 years ago (2013-12-10 14:35:00 UTC) #5
djsollen
https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js File tools/skpdiff/diff_viewer.js (right): https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js#newcode31 tools/skpdiff/diff_viewer.js:31: if (image.name == "") { On 2013/12/10 14:35:00, yunchao ...
7 years ago (2013-12-10 14:44:20 UTC) #6
yunchao
On 2013/12/10 14:44:20, djsollen wrote: > https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js > File tools/skpdiff/diff_viewer.js (right): > > https://codereview.chromium.org/105823010/diff/60001/tools/skpdiff/diff_viewer.js#newcode31 > ...
7 years ago (2013-12-10 15:17:30 UTC) #7
yunchao
Hi Derek, I have updated the code according to your suggestions. Please help to review ...
7 years ago (2013-12-11 03:02:21 UTC) #8
djsollen
lgtm
7 years ago (2013-12-12 13:29:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/105823010/100001
7 years ago (2013-12-12 14:22:42 UTC) #10
commit-bot: I haz the power
7 years ago (2013-12-12 14:55:48 UTC) #11
Message was sent while issue was closed.
Change committed as 12638

Powered by Google App Engine
This is Rietveld 408576698