Tim van der Meij
a7800c276b
Merge pull request #5015 from Snuffleupagus/zero-WebGL-canvases
...
Zero the height and width of the WebGL canvases on cleanup
2014-07-16 17:07:18 +02:00
Tim van der Meij
e97efaa70a
Merge pull request #5033 from nnethercote/makeCssRgb
...
Avoid creating intermediate strings in Util.makeCssRgb().
2014-07-16 16:10:29 +02:00
Tim van der Meij
37815ec87e
Merge pull request #5050 from Snuffleupagus/reftest-analyzer-differences-key
...
In the reftest analyzer, make it possible to toggle "Circle differences" with the D key
2014-07-16 15:56:52 +02:00
Jonas Jenwald
cbe097c0cb
In the reftest analyzer, make it possible to toggle "Circle differences" with the D key
...
It's currently possible to step through the test results using the <kbd>N</kbd> and <kbd>P</kbd> keys, and you can also switch between test and reference images with the <kbd>T</kbd> key.
However if you want to highlight the differences, that can only be done by clicking. This has always annoyed me somewhat, so this patch adds support for toggling the differences view with the <kbd>D</kbd> key.
2014-07-16 12:21:32 +02:00
Fabian Lange
dd2adf6200
Fixes mesh fill pattern with optional matrix ( #5020 )
...
In the referenced issue, there is a PDF which uses a fill pattern which does not
have a matrix defined. This causes singularValueDecompose2dScale to fail with
undefined property error when accessing elements of that matrix.
This fix will only use the matrix when it is defined. The output for the PDF in
question now looks identical to chrome and preview with respect to the gradient
fill pattern.
2014-07-13 15:45:12 +02:00
Jonas Jenwald
0237d5036a
Merge pull request #5025 from nnethercote/share-zero-length-buffers
...
Improve how DecodeStream handles empty buffers.
2014-07-13 12:13:06 +02:00
Yury Delendik
b5e5de00df
Merge pull request #5017 from Snuffleupagus/bug-1028735
...
[CIDFontType2] Map characters missing in toUnicode to the private use area (bug 1028735 and issue 4881)
2014-07-12 07:18:07 -05:00
Jonas Jenwald
1cb4de2227
Add |fillRgb| method to LabCS
2014-07-10 12:06:19 +02:00
Nicholas Nethercote
31c613f064
Avoid creating intermediate strings in Util.makeCssRgb().
...
On one example (the Wuppertal map) this avoids the creation of over
230,000 intermediate strings.
2014-07-08 21:49:19 -07:00
Tim van der Meij
a20c39083c
Merge pull request #5000 from pramodhkp/memop
...
[SVG] Optimization of constructPath & Adds unit lengths
2014-07-08 19:35:38 +02:00
pramodhkp
afd853e962
Added units for lengths
2014-07-08 23:03:17 +05:30
Jonas Jenwald
a7c786775d
[CIDFontType2] Map characters missing in toUnicode to the private use area (bug 1028735 and issue 4881)
2014-07-05 00:18:51 +02:00
pramodhkp
86e584d767
Memory optimzation for constructPath
2014-07-04 20:43:40 +05:30
Nicholas Nethercote
a483c80fc3
Make QueueOptimizer easier to read.
...
QueueOptimizer is really hard to read. Enough so that it's blocking my
efforts to streamline the representation used for operator lists.
This patch improves its readability in the following ways.
- More descriptive variable names make the sequence checking much clearer,
as do additional comments.
- The addState() functions now return the index of the first op past the
sequence, instead of setting context.currentOperation to the last op of
the sequence.
- The loop in optimize() is clearer.
- The array modification in the fourth addState() function is much clearer
-- we're just removing trios of ops.
- All four |addState| functions are now more consistent with each other.
I used some debug printfs to find documents where these optimizations are
used and then checked that the number of optimized ops was the same before
and after my changes.
2014-07-03 19:16:31 -07:00
Nicholas Nethercote
db866945b7
Improve how DecodeStream handles empty buffers.
...
DecodeStream currently initializes its |buffer| field to |null|, which
is reasonable, because lots of DecodeStreams never need to instantiate a
buffer. But this requires various special cases in the code.
This patch change it so DecodeStreamClosure has a single empty
Uint8Array which gets shared between all buffers upon initialization.
This avoids the special cases.
DecodeStream.prototype.ensureBuffer() is really hot, and this removes a
test from the fast path. For one 226 page scanned document this sped up
rendering by about 2%.
2014-07-02 18:53:21 -07:00
Tim van der Meij
0ac83802ba
Merge pull request #5004 from CodingFabian/issue-5002
...
Improving CanvasPixelArray polyfill for Android
2014-06-30 22:16:03 +02:00
fkaelberer
fc73e2e173
use getBytes() instead of looping over getByte()
2014-06-27 09:09:54 +02:00
Jonas Jenwald
c5f4051a75
A few small optimizations of adjustMapping
...
Replace a couple of |in| checks with comparisons against undefined.
2014-06-27 00:59:42 +02:00
Jonas Jenwald
c121def806
A few small optimizations for CIDFontType2 fonts
...
Cache a constant length and replace one usage of |in| with a comparison against undefined.
2014-06-27 00:52:54 +02:00
Jonas Jenwald
04975acceb
Prevent CMapFactory.create from failing by passing the necessary parameters from PartialEvaluator_readToUnicode (issue 5010)
2014-06-27 00:46:16 +02:00
fkaelberer
9a41659ae7
Faster chunkedStream_getByte()
2014-06-26 22:34:00 +02:00
Fabian Lange
54fb1f7226
Improving CanvasPixelArray polyfill for Android
2014-06-25 18:44:49 +02:00
Yury Delendik
2e98f9095e
Merge pull request #5001 from CodingFabian/issue-4994
...
Do not run cleanup while printing is ongoing.
2014-06-25 08:41:10 -05:00
Fabian Lange
6447397c04
Do not run cleanup while printing is ongoing.
2014-06-25 12:53:58 +02:00
pramodhkp
7efd50e64d
Added paintJpegXObject
2014-06-25 03:55:14 +05:30
pramodhkp
d799a18b74
Added paintSolidColorImageMask
2014-06-25 02:48:11 +05:30
pramodhkp
c8a4ab3a19
Optimization of save/restore usage
2014-06-25 02:47:29 +05:30
Yury Delendik
b482393e6a
Merge pull request #4997 from CodingFabian/issue-4974
...
Fixes CanvasPixelArray set polyfill (#4974 )
2014-06-24 13:01:52 -05:00
Fabian Lange
9fd6cc7f1e
Fixes CanvasPixelArray set polyfill for chrome < 21 ( #4974 )
2014-06-24 19:36:02 +02:00
Yury Delendik
cd79ac84af
Merge pull request #4999 from pramodhkp/saverestore
...
[SVG] Optimization of save/restore usage, Addition of paint methods
2014-06-24 12:24:33 -05:00
Yury Delendik
6d5a04149b
Merge pull request #4993 from pramodhkp/rectelmnt
...
Combine re element into constructPath
2014-06-24 09:27:21 -05:00
pramodhkp
8407d28c9e
Combine re element into constructPath
2014-06-25 00:27:42 +05:30
Jonas Jenwald
8ad1ea3c5f
Zero the height and width of the WebGL canvases on cleanup
2014-06-24 13:52:22 +02:00
Yury Delendik
10db93be29
Merge pull request #4980 from Snuffleupagus/bug-1027533
...
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
2014-06-23 21:56:13 -05:00
Yury Delendik
bb7e7d33c5
Merge pull request #4976 from CodingFabian/restructure-evaluator-read
...
Restructured EvaluatorPreprocessor_read to be more natural.
2014-06-23 21:50:14 -05:00
Yury Delendik
c28839b2f3
Merge pull request #4944 from Snuffleupagus/issue-4934
...
Don't blindly trust toUnicode when building toFontChar for non-standard fonts without a font file (issue 4934)
2014-06-23 21:49:24 -05:00
Fabian Lange
60f67c3961
Restructured EvaluatorPreprocessor_read to be more natural.
2014-06-23 23:35:25 +02:00
Yury Delendik
6d86c92514
Merge pull request #4991 from timvandermeij/text-layer-builder-refactoring
...
Refactoring text layer builder and converting text layer builder to a class
2014-06-23 16:00:57 -05:00
Tim van der Meij
c7e614323a
Removing unnecessary includes from text selection example
2014-06-23 22:45:11 +02:00
Yury Delendik
3ad58db7e8
Merge pull request #4982 from nnethercote/use-null-for-zero-args
...
Use null instead of [] for ops with no args.
2014-06-23 15:38:48 -05:00
Yury Delendik
70556710d4
Merge pull request #4987 from timvandermeij/text-search-refactoring
...
Refactoring PDF find controller and implementing page content and query normalization
2014-06-23 15:38:07 -05:00
Tim van der Meij
fa33b9c643
Refactoring PDFFindController in the text layer builder
2014-06-23 22:19:18 +02:00
Tim van der Meij
a968da8887
Convert the text layer builder to a class
2014-06-23 22:07:21 +02:00
Tim van der Meij
2a052c4aad
Refactoring text layer builder
2014-06-23 21:40:37 +02:00
Nicholas Nethercote
081866a184
Use null instead of [] for ops with no args.
...
This reduces peak RSS on one test file from ~600 to ~560 MiB.
2014-06-22 16:03:48 -07:00
Tim van der Meij
fbfb9458d6
Implement text normalization for page content and queries
2014-06-20 23:32:44 +02:00
Tim van der Meij
ec1b58a30a
Fix code style issues in pdf_find_controller.js and build strings more efficiently
2014-06-20 21:14:29 +02:00
Jonas Jenwald
b19bb74813
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
2014-06-20 09:57:16 +02:00
Yury Delendik
456d219f2a
Merge pull request #4981 from yurydelendik/svg1
...
Misc SVG Viewer example fixes
2014-06-19 23:23:59 -05:00
Yury Delendik
834f466c05
Fixes SVG transforms on restore
2014-06-19 23:18:04 -05:00