diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 06:17:41 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 06:17:41 +0000 |
commit | 489ab8a147a5d5c78757f2910e0b598453c61962 (patch) | |
tree | 26d27dec1e352b9e812fb981597242dc63a90221 /chrome/service/cloud_print | |
parent | 95c0dc4adedaf68ca2e1ce0a3df70e98bc35260b (diff) | |
download | chromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.zip chromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.tar.gz chromium_src-489ab8a147a5d5c78757f2910e0b598453c61962.tar.bz2 |
Changed the implementation of the utility process method to render a PDF into a metafile to use a file-backed metafile as opposed to an in-memory metafile.
BUG=None.
TEST=Test Cloud Print proxy with Chrome OS generated PDFs.
Review URL: http://codereview.chromium.org/3600001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print')
-rw-r--r-- | chrome/service/cloud_print/print_system_win.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc index 9b71581..fe0d19f 100644 --- a/chrome/service/cloud_print/print_system_win.cc +++ b/chrome/service/cloud_print/print_system_win.cc @@ -503,7 +503,12 @@ class PrintSystemWin : public PrintSystem { utility_host.release(); } } - static const int kPageCountPerBatch = 10; + // Some Cairo-generated PDFs from Chrome OS result in huge metafiles. + // So the PageCountPerBatch is set to 1 for now. + // TODO(sanjeevr): Figure out a smarter way to determine the pages per + // batch. Filed a bug to track this at + // http://code.google.com/p/chromium/issues/detail?id=57350. + static const int kPageCountPerBatch = 1; int last_page_printed_; PlatformJobId job_id_; PrintSystem::JobSpooler::Delegate* delegate_; |