1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Implements WebGL support

This commit is contained in:
Yury Delendik 2014-02-13 08:44:58 -06:00
parent 944219ad8a
commit f57c6935d7
12 changed files with 517 additions and 34 deletions

View file

@ -54,6 +54,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/
<script type="text/javascript" src="../src/display/api.js"></script>
<script type="text/javascript" src="../src/display/metadata.js"></script>
<script type="text/javascript" src="../src/display/canvas.js"></script>
<script type="text/javascript" src="../src/display/webgl.js"></script>
<script type="text/javascript" src="../src/display/pattern_helper.js"></script>
<script type="text/javascript" src="../src/display/font_loader.js"></script>
<script type="text/javascript">PDFJS.workerSrc = '../src/worker_loader.js';</script>

View file

@ -1711,6 +1711,10 @@ function webViewerLoad(evt) {
PDFJS.disableHistory = (hashParams['disableHistory'] === 'true');
}
if ('webgl' in hashParams) {
PDFJS.disableWebGL = (hashParams['webgl'] !== 'true');
}
if ('useOnlyCssZoom' in hashParams) {
USE_ONLY_CSS_ZOOM = (hashParams['useOnlyCssZoom'] === 'true');
}