Merge font and processor working into one worker and fix some bugs in font-loading-data-ready code

This commit is contained in:
Julian Viereck 2011-10-05 22:24:38 +02:00
parent e9b6ffbaf6
commit d7521f758a
8 changed files with 89 additions and 84 deletions

View file

@ -1,19 +0,0 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
importScripts('console.js');
importScripts('message_handler.js');
importScripts('../pdf.js');
importScripts('../fonts.js');
importScripts('../crypto.js');
importScripts('../glyphlist.js');
importScripts('../metrics.js');
importScripts('processor_handler.js');
// Listen for messages from the main thread.
var pdfDoc = null;
var handler = new MessageHandler("worker_processor", this);
WorkerProcessorHandler.setup(handler);