Fabian Lange
5405b1c8e4
minor improvements and code cleanup for canvas.js
10 years ago
Fabian Lange
ceffeab1de
Use 3 param method for converting r,g,b into css string.
...
This avoids creation of temporary arrays to pass them into the util
method. Also using "arguments" is more expensive then passing in 3
parameters.
11 years ago
fkaelberer
7d698a46a9
increase chunk size in SMask composition to 1M pixels
11 years ago
Fabian Lange
b049119d14
removed rounding of values in composeSMaskLuminosity
...
maskData comes out of maskCtx.getImageData, so is 0..255 clamped, and
the used multiplications will not create fractions needing rounding,
neither would addition.
11 years ago
thejdeep
39a29cfe03
Fixed text not visible
11 years ago
Jonas Jenwald
4ac4d49158
Avoid rendering invisible Type3 fonts (issue 5421)
11 years ago
Yury Delendik
be998261cc
Fixes Type3 negative font direction
11 years ago
Jonas Jenwald
c1f1f2f0e1
Add strict equalities in src/display/canvas.js
11 years ago
Jonas Jenwald
2485f11829
Fix loading of PDF files with invalid or missing Type3 characters (issue 5039)
11 years ago
Tim van der Meij
34728ee49b
Removing unused code
11 years ago
pramodhkp
8407d28c9e
Combine re element into constructPath
11 years ago
Nicholas Nethercote
7ef7f95374
Zero the height and width of the Cached canvases before deleting.
...
This reduces peak RSS by about 300 MiB on my Mac when scrolling slowly through
the first 30 pages of a scanned black and white document.
11 years ago
Yury Delendik
1ac8ca66f7
Fixes optional backdrop regression
11 years ago
p01
e0bf7e2151
Optimized genericComposeSMask
...
Declaring the composition and backgdrop functions outside of genericComposeSMask
is more efficient.
11 years ago
p01
412febe4a4
canvas.js minor optimizations
11 years ago
p01
35e418c603
Optimized CanvasGraphics_executeOperatorList 66% faster
11 years ago
Yury Delendik
542c9c4c7a
Moves ColorSpace logic into evaluator
11 years ago
Yury Delendik
d53dc2e7d6
Refactors showText: split type3, remove showSpacedText
11 years ago
p01
455c6b2d35
Removed several 'in' operators in canvas.js
...
This gives up to 6x speed improvement on these methods
11 years ago
p01
cf5ff3d327
Fewer lookups in CanvasGraphics_constructPath
11 years ago
Yury Delendik
e5a0d89da9
Refactors loadFont for translateFont be async; fixes type3 dup data
11 years ago
Jonas Jenwald
b907e15a90
Build paths for glyph accents when drawing text as curves
11 years ago
Yury Delendik
c5eb058b09
Uses rAF to interrupt the operator list execution
11 years ago
p01
83cd530f45
Cleaner putBinaryImageData
11 years ago
Yury Delendik
63d5aae3f6
Groups path commands into single command
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Yury Delendik
a00f854848
Refactors buildImage to use Promise; don't draw bad images
11 years ago
Tim van der Meij
4e055169ed
Fixes lint warning W004 in src/display/{api, canvas, pattern_helper}.js
11 years ago
Brendan Dahl
5bd8a83c9b
Build the text layer geometry on the worker.
11 years ago
Yury Delendik
f57c6935d7
Implements WebGL support
11 years ago
Yury Delendik
944219ad8a
Balance smask process chunking
11 years ago
Yury Delendik
5262e6f84f
Set max size for the group
11 years ago
Jonas Jenwald
08eb9a960a
Avoid drawing text when the font size is zero (issue 4484)
11 years ago
Jonas Jenwald
7e7b728b5d
Assign non-zero width/height to all rectangles (issue 4260)
11 years ago
p01
4e6ebf2de0
Optimized putBinaryImageData for GRAYSCALE_1BPP
...
The following changes make putBinaryImageData 2.2x faster.
* Use a Uint32Array to draw whole pixels instead component by component
* Unroll the inner most loop
* Added lazy PDFJS.hasCanvasTypedArrays, PDFJS.isLittleEndian and compatibility
Uint32ArrayView for browsers using the old CanvasPixelArray
11 years ago
Christian Krebs
fc9edfcf76
Introduce paintSolidColorImageMask command to handle 1x1 solid image masks
...
See https://github.com/mozilla/pdf.js/issues/4436 for details
11 years ago
Jonas Jenwald
bc986a3029
Fix coding style in src/display/canvas.js
11 years ago
Yury Delendik
257898b359
Caching inlined mask images
11 years ago
Yury Delendik
f48f57e30a
Caches last parsed resource image, recornizes image repeats
11 years ago
Manas (prometheansacrifice)
30e00bc573
Removing set-presence-in-ImageData check from canvas.js
11 years ago
Nicholas Nethercote
1ec3c341cc
Put mask data to the canvas in small slices.
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Nicholas Nethercote
4e1f92a893
Clean up putBinaryImageData().
11 years ago
Nicholas Nethercote
f62c1c469f
Special-case 24-bit RGB image-handling.
11 years ago
Brendan Dahl
b5b94a4af3
Use built in CMaps and unify the glyph mapping.
11 years ago
Yury Delendik
99bbad3219
Removes scolling jank after bw image optimization
11 years ago
Nicholas Nethercote
a966909754
Reduce memory consumption of simple black and white images.
11 years ago
Yury Delendik
a583c319a1
Implements shading types 4-7
11 years ago
Yury Delendik
48436b6a0f
Fixes smask backdrop
11 years ago
Yury Delendik
bf432a37bb
Refactors shared/pattern.js into core/ and display/
11 years ago