-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset all the canvas states after rendering each annotations (#14105) #14998
Conversation
It looks this patch causes Furthermore, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, with passing tests; thank you!
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ec27d7cb7fd42b5/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/3485c74107ec080/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/3485c74107ec080/output.txt Total script time: 4.79 mins
Image differences available at: http://54.241.84.105:8877/3485c74107ec080/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ec27d7cb7fd42b5/output.txt Total script time: 7.89 mins
Image differences available at: http://54.193.163.58:8877/ec27d7cb7fd42b5/reftest-analyzer.html#web=eq.log |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/b781c989e4427d1/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ab5480db3b06a3f/output.txt |
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/e633b6d31d6b8ed/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/d605760d898d0aa/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/e633b6d31d6b8ed/output.txt Total script time: 26.57 mins
Image differences available at: http://54.241.84.105:8877/e633b6d31d6b8ed/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/d605760d898d0aa/output.txt Total script time: 27.99 mins
Image differences available at: http://54.193.163.58:8877/d605760d898d0aa/reftest-analyzer.html#web=eq.log |
|
So
After thinking about, I think the correct way to fix that stuff is to reset the states for each annotation: the rendering of an annotation is independent of the others. |
Another question (possibly stupid on my part), looking at the latest version of the patch where you reset for every Annotation: Would the code possibly become a tiny bit simpler if we place this code at the start of the |
I've the feeling that the "restore" code should be in |
That'd essentially require introducing a new custom operator, since we currently don't have a specific operator to signal "end of opList", which I'd generally suggest that we don't do unless absolutely necessary.
Indeed I thought that less code would be nice, and having it at the start of each individual |
…#14105) - each annotation must be rendered independently of the others. So after having rendered each annotation, the canvas states are reset in order to have something clean to render the next one.
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/a4cbf86dd13ba83/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/34559bfc11cfb19/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/a4cbf86dd13ba83/output.txt Total script time: 26.12 mins
Image differences available at: http://54.241.84.105:8877/a4cbf86dd13ba83/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/34559bfc11cfb19/output.txt Total script time: 29.44 mins
Image differences available at: http://54.193.163.58:8877/34559bfc11cfb19/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/cca759dd088b604/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @Snuffleupagus received. Current queue size: 1 Live output at: http://54.193.163.58:8877/9d1ee73d15c4986/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/cca759dd088b604/output.txt Total script time: 22.65 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/9d1ee73d15c4986/output.txt Total script time: 22.13 mins
|
Can you tell me why it needs to be modified like this? Is it because this PDF doesn't comply with Adobe's specifications, so it requires these adjustments and modifications @calixteman |
after having rendered each annotation, the canvas states are reset
in order to have something clean to render the next one.