Skip to content
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

Zero the width/height of the temporary canvas used during TextLayer rendering #10601

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

The default size of these canvases seem to be 300 x 150 (two orders of magnitude larger than the ones in PR #10597), which probably is sufficient enough to matter since there's one such canvas for each textLayer that's rendered in the viewer.

Also fixes the incorrect rejection reason, i.e. one using a string rather than an Error, in the TextLayerRenderTask.cancel method.

… rendering

The default size of these canvases seem to be `300 x 150` (two orders of magnitude larger than the ones in PR 10597), which probably is sufficient enough to matter since there's one such canvas for each textLayer that's rendered in the viewer.

Also fixes the incorrect rejection reason, i.e. one using a string rather than an `Error`, in the `TextLayerRenderTask.cancel` method.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Mar 1, 2019

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/28accb05499c9b9/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 1, 2019

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/0e6f5b8b1925903/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 1, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/0e6f5b8b1925903/output.txt

Total script time: 18.13 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Mar 1, 2019

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/28accb05499c9b9/output.txt

Total script time: 25.64 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit 7208f0f into mozilla:master Mar 1, 2019
@timvandermeij
Copy link
Contributor

Nice find!

@Snuffleupagus Snuffleupagus deleted the TextLayer-canvas-cleanup branch March 1, 2019 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants