summaryrefslogtreecommitdiffstats
path: root/printing/pdf_metafile_skia.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use sk_sp-based picture recording APIsfmalita2016-03-221-3/+3
| | | | | | | | | | | | | | | | 1) use SkPictureRecorder::finishRecordingAsPicture() over endRecordingAsPicture() 2) convert to sk_sp<SkPicture> fields/params where feasible BUG=skia:5077 R=reed@google.com,danakj@chromium.org,enne@chromium.org TBR=pdr@chromium.org,alekseys@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1819683002 Cr-Commit-Position: refs/heads/master@{#382563}
* pdf_metafile_skia: set metadata before drawing to pdfhalcanary2016-03-181-8/+8
| | | | | | | | | Motivation: while experimenting with serializing images immediately, we would like to keep serializing metadata first. Review URL: https://codereview.chromium.org/1778133005 Cr-Commit-Position: refs/heads/master@{#381959}
* Cleanup misc nits in printing metafile code.thestig2016-02-131-17/+17
| | | | | | Review URL: https://codereview.chromium.org/1693883004 Cr-Commit-Position: refs/heads/master@{#375346}
* printing/pdf_metafile_skia: stop using deprecated version of ↵halcanary2016-02-121-6/+7
| | | | | | | | | | SkDocument::setMetadata depends on https://crrev.com/1689683002 Review URL: https://codereview.chromium.org/1690093002 Cr-Commit-Position: refs/heads/master@{#375057}
* skia::PlatformCanvas is an alias for SkCanvas; this is unhelpful. It's quite ↵tomhudson2016-01-281-1/+2
| | | | | | | | | | | common for functions to be declared as returning SkCanvas* but defined as returning skia::PlatformCanvas*, so it's also not future-proof. R=fmalita@chromium.org,reed@chromium.org TBR=danakj@chromium.org,piman@chromium.org,thestig@chromium.org Review URL: https://codereview.chromium.org/1618703006 Cr-Commit-Position: refs/heads/master@{#372084}
* Global conversion of Pass()→std::move() on OS==linuxdcheng2015-12-281-3/+3
| | | | | | | | | | | | ❆(੭ु ◜◡‾)੭ु⁾☃❆ BUG=557422 R=avi@chromium.org TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1550693002 Cr-Commit-Position: refs/heads/master@{#366956}
* Switch to standard integer types in printing/.avi2015-12-211-0/+3
| | | | | | | | | BUG=138542 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1544623002 Cr-Commit-Position: refs/heads/master@{#366463}
* PDF Printing: embed browser user agent string in PDF metadata.halcanary2015-11-061-1/+6
| | | | | | Review URL: https://codereview.chromium.org/1397333003 Cr-Commit-Position: refs/heads/master@{#358186}
* PdfMetafileSkia: Embed Creator, CreationDate, and ModDate in PDF.halcanary2015-09-271-0/+20
| | | | | | Review URL: https://codereview.chromium.org/1367713002 Cr-Commit-Position: refs/heads/master@{#351011}
* Cleanup code in printing/thestig2015-09-141-5/+6
| | | | | | | | | - Use stdint.h types. - Fix lint errors. Review URL: https://codereview.chromium.org/1343593002 Cr-Commit-Position: refs/heads/master@{#348660}
* Cleanup: Fix some misc nits in printing code.thestig2015-07-161-4/+6
| | | | | | Review URL: https://codereview.chromium.org/1232783007 Cr-Commit-Position: refs/heads/master@{#339101}
* Use SkPictureRecorder::endRecordingAsPicture() instead of endRecording()thestig2015-04-081-1/+1
| | | | | | | | endRecording() is deprecated. Review URL: https://codereview.chromium.org/1066273002 Cr-Commit-Position: refs/heads/master@{#324260}
* SkPDF Metafile: fix recording canvas scalinghalcanary2015-04-031-10/+16
| | | | | | | | | | | Scale the recording canvas's page size, not it's canvas matrix. This allows getTotalMatrix() to return the identity matrix. BUG=469656 Review URL: https://codereview.chromium.org/1060603003 Cr-Commit-Position: refs/heads/master@{#323820}
* Removed unused code in skia/ext/vector_*.vitalybuka2015-02-061-2/+1
| | | | | | | | Code is not used after we Chrome stopped generation of EMF inside render. Review URL: https://codereview.chromium.org/900683004 Cr-Commit-Position: refs/heads/master@{#315076}
* Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt.halcanary2015-01-221-85/+127
| | | | | | | | | | | | | | | | | | | | | | | | This relands http://crrev.com/694213002 In the PdfMetafileSkia class, Instead of storing a SkPDFDocument, store a vector of pages as SkPictures. This allows access to individual at any time. When FinishDocument() is called, use the SkDocument API to print all pages to PDF. In PrintWebViewHelper::RenderPageContent, skip clipping content to content area, since Windows printing prints content just outside of the content area, as noted in http://crbug.com/434079 . BUG=278148 Committed: https://crrev.com/18387e7ebb0eae6e4944e841d63ea058adab6e11 Cr-Commit-Position: refs/heads/master@{#310032} Review URL: https://codereview.chromium.org/821703005 Cr-Commit-Position: refs/heads/master@{#312672}
* Revert of Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. ↵halcanary2015-01-081-130/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (patchset #6 id:140001 of https://codereview.chromium.org/821703005/) Reason for revert: A bisect proved that this change caused https://code.google.com/p/chromium/issues/detail?id=446729 Original issue's description: > Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. > > This relands http://crrev.com/694213002 > > In the PdfMetafileSkia class, Instead of storing a > SkPDFDocument, store a vector of pages as > SkPictures. This allows access to individual at any > time. When FinishDocument() is called, use the > SkDocument API to print all pages to PDF. > > In PrintWebViewHelper::RenderPageContent, skip clipping > content to content area, since Windows printing prints > content just outside of the content area, as noted in > http://crbug.com/434079 . > > BUG=278148 > > Committed: https://crrev.com/18387e7ebb0eae6e4944e841d63ea058adab6e11 > Cr-Commit-Position: refs/heads/master@{#310032} TBR=vitalybuka@chromium.org,reed@google.com,danakj@chromium.org NOTREECHECKS=true NOTRY=true BUG=278148 BUG=446729 Review URL: https://codereview.chromium.org/788053006 Cr-Commit-Position: refs/heads/master@{#310517}
* Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt.halcanary2015-01-061-85/+130
| | | | | | | | | | | | | | | | | | | | | This relands http://crrev.com/694213002 In the PdfMetafileSkia class, Instead of storing a SkPDFDocument, store a vector of pages as SkPictures. This allows access to individual at any time. When FinishDocument() is called, use the SkDocument API to print all pages to PDF. In PrintWebViewHelper::RenderPageContent, skip clipping content to content area, since Windows printing prints content just outside of the content area, as noted in http://crbug.com/434079 . BUG=278148 Review URL: https://codereview.chromium.org/821703005 Cr-Commit-Position: refs/heads/master@{#310032}
* Cleanup: Update the path to gfx size headers.tfarina2015-01-031-1/+1
| | | | | | | | | | | | | The geometry headers were moved from /ui/gfx/ to ui/gfx/geometry, so we are updating the include paths to fix this. BUG=395370 TEST=compiles TBR=sky@chromium.org,danakj@chromium.org Review URL: https://codereview.chromium.org/832953002 Cr-Commit-Position: refs/heads/master@{#309873}
* Cleanup: Update the path to gfx rect headers.tfarina2014-12-311-1/+1
| | | | | | | | | | | | | The geometry headers were moved from /ui/gfx/ to ui/gfx/geometry, so we are updating the include paths to fix this. BUG=395370 TEST=compiles TBR=sky@chromium.org,danakj@chromium.org Review URL: https://codereview.chromium.org/823133004 Cr-Commit-Position: refs/heads/master@{#309814}
* Cleanup: Update the path to insets and point headers.tfarina2014-12-231-1/+1
| | | | | | | | | | | | | The geometry headers were moved from /ui/gfx/ to ui/gfx/geometry, so we are updating the include paths to fix this. BUG=395370 TEST=unit_tests, content_unittests, extensions_unittests ... TBR=sky@chromium.org,danakj@chromium.org Review URL: https://codereview.chromium.org/823703003 Cr-Commit-Position: refs/heads/master@{#309523}
* Revert of Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. ↵vitalybuka2014-11-181-150/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (patchset #4 id:370001 of https://codereview.chromium.org/694213002/) Reason for revert: Breaks printing. BUG=434079 Original issue's description: > Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. > > In the PdfMetafileSkia class, Instead of storing a > SkPDFDocument, store a vector of pages as > SkPictures. This allows access to individual at any > time. When FinishDocument() is called, use the > SkDocument API to print all pages to PDF. > > BUG=278148 > > Committed: https://crrev.com/816b7105b078f7300f825cd81f379e312efdb821 > Cr-Commit-Position: refs/heads/master@{#304379} TBR=robertphillips@google.com,reed@google.com,halcanary@google.com BUG=278148 Review URL: https://codereview.chromium.org/731143004 Cr-Commit-Position: refs/heads/master@{#304536}
* Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt.halcanary2014-11-171-85/+150
| | | | | | | | | | | | | | In the PdfMetafileSkia class, Instead of storing a SkPDFDocument, store a vector of pages as SkPictures. This allows access to individual at any time. When FinishDocument() is called, use the SkDocument API to print all pages to PDF. BUG=278148 Review URL: https://codereview.chromium.org/694213002 Cr-Commit-Position: refs/heads/master@{#304379}
* PdfMetafileSkia gives out a SkCanvas, not a SkBaseDevice.halcanary2014-11-101-26/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation: hide SkPDFDevice and SkPDFDocument behind PdfMetafileSkia class. pdf_metafile_skia.cc: Implement GetVectorCanvasForNewPage. Remove StartPageForVectorCanvas. Own the SkCanvas pointer (current_page_canvas_). Replace page_outstanding_ field with a method that checks to see if current_page_canvas_ is NULL. Implement SaveTo. skia::VectorPlatformDeviceSkia remove class print_web_view_helper.cc Remove calls to canvas->getTopDevice()->setDrawingArea(...); (SkDFDevice) This API is no longer effective. print_web_view_helper_linux.cc, print_web_view_helper_mac.mm, print_web_view_helper_pdf_win.cc: call GetVectorCanvasForNewPage rather than StartPageForVectorCanvas BUG=278148 Review URL: https://codereview.chromium.org/704813002 Cr-Commit-Position: refs/heads/master@{#303522}
* Extracted MetafilePlayer interface from printing::MetafilePlayer.vitalybuka2014-09-121-42/+21
| | | | | | | | | | | | | Removed some unused code. Updated interfaces from plain pointers to scoped_ptr<> SaveTo(base::FilePath) replaced with SaveTo(base::File). BUG=408184 TBR=sgurun@chromium.org Review URL: https://codereview.chromium.org/568633002 Cr-Commit-Position: refs/heads/master@{#294556}
* Change base/file_utils.h includes to base/files/file_utils.h in gin, ↵thestig2014-09-051-1/+1
| | | | | | | | | | google_apis, printing, sql, ui, and webkit. TBR=jochen@chromium.org,rogerta@chromium.org,shess@chromium.org,ben@chromium.org,jamesr@chromium.org Review URL: https://codereview.chromium.org/529273002 Cr-Commit-Position: refs/heads/master@{#293479}
* Remove CreatePlatformFile from content shell.rvargas@chromium.org2014-03-151-1/+4
| | | | | | | | BUG=322664 Review URL: https://codereview.chromium.org/184003002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257251 0039d316-1c4b-4281-b951-d872f2087c98
* Move WriteFile and WriteFileDescriptor from file_util to base namespace.brettw@chromium.org2014-03-061-6/+6
| | | | | | | | | R=viettrungluu@chromium.org TBR=viettrungluu Review URL: https://codereview.chromium.org/184563006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255418 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor base/safe_numerics.hjschuh@chromium.org2014-01-171-3/+3
| | | | | | | | | | | | | | | * Move into base/numerics subdirectory. * Rename files for clarity. * Add owners. * Rename checked_numeric_cast to checked_cast. * Fixup callsites and include paths. BUG=332611 R=brettw@chromium.org, jam@chromium.org Review URL: https://codereview.chromium.org/141113003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245418 0039d316-1c4b-4281-b951-d872f2087c98
* Remove references to SkAdvancedTypefaceMetrics::kNotEmbeddable_Fontvandebo@chromium.org2013-12-091-3/+3
| | | | | | | | | | First part of a two sided change. kNotEmbeddable_Font is going away in favor of an explicit flag to represent it. This change preserves existing functionality/operation and just changes the constant being used. BUG=NONE Review URL: https://codereview.chromium.org/105433003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239546 0039d316-1c4b-4281-b951-d872f2087c98
* Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close.mark@chromium.org2013-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is incorrect to wrap close in HANDLE_EINTR on Linux. Correctness is generally undefined on Mac, but as of r223369, it is incorrect in Chrome on Mac. To avoid new offenders, a PRESUBMIT check ensures that HANDLE_EINTR is not used with close, and that IGNORE_EINTR is only used with close. Unnecessary #includes of eintr_wrapper.h are also removed. base/posix/einter_wrapper.h, PRESUBMIT.py, and ppapi/tests/test_broker.cc contain non-mechanical changes. Variable naming within the latter is updated per r178174. Missing #includes for <errno.h> in content/zygote/zygote_main_linux.cc and tools/android/common/daemon.cc were manually added. Mechanical changes were generated by running: sed -E -i '' \ -e 's/((=|if|return|CHECK|EXPECT|ASSERT).*)HANDLE(_EINTR\(.*close)/\1IGNORE\3/' \ -e 's/(ignore_result|void ?)\(HANDLE_EINTR\((.*close\(.*)\)\)/\2/' \ -e 's/(\(void\) ?)?HANDLE_EINTR\((.*close\(.*)\)/\2/' \ $(git grep -El 'HANDLE_EINTR.*close') sed -E -i '' -e '/#include.*eintr_wrapper\.h"/d' \ $(grep -EL '(HANDLE|IGNORE)_EINTR' \ $(git grep -El '#include.*eintr_wrapper\.h"')) BUG=269623 R=agl@chromium.org, jln@chromium.org TBR=OWNERS Review URL: https://codereview.chromium.org/100253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238390 0039d316-1c4b-4281-b951-d872f2087c98
* Skia is going to Split the SkDevice class into SkBaseDevice and ↵robertphillips@google.com2013-08-261-1/+1
| | | | | | | | | | SkBitmapDevice. Right now Skia has typedefs redirecting SkBaseDevice and SkBitmapDevice to SkDevice. This CL begins the Chromium-side renaming process in preparation for the real change (https://codereview.chromium.org/22978012/) BUG=278148 Review URL: https://chromiumcodereview.appspot.com/22796028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219568 0039d316-1c4b-4281-b951-d872f2087c98
* Submitting https://codereview.chromium.org/23116003/ for Cihat Imamoglu.avayvod@chromium.org2013-08-191-1/+1
| | | | | | | | | | | Adds PrintingContext implementation stub for Android. BUG=147070 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/22999026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218339 0039d316-1c4b-4281-b951-d872f2087c98
* Rename base/hash_tables to base/containers/hash_tables.brettw@chromium.org2013-06-111-1/+1
| | | | | | | | | | | Remove forwarding header BUG= R=avi@chromium.org Review URL: https://codereview.chromium.org/16667019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205584 0039d316-1c4b-4281-b951-d872f2087c98
* Only use skia::RefPtr for refcountingenne@chromium.org2013-05-181-5/+6
| | | | | | | | | | | | | | | | | | | | | For consistency and sanity in Chromium, only use skia::RefPtr in Chromium to ref count skia classes. SkRefPtr is unsafe to use for newly created objects because it refs the object that is passed to its constructor. skia::RefPtr makes this adoption explicit it via skia::AdoptRef and so is much clearer. This patch also adds a skia::ShareRef function which makes it explicit that the callsite is adopting a ref which is already owned somewhere else. Using AdoptRef vs. ShareRef seems much clearer than using SkRefPtr vs. skia::RefPtr. These are the remaining code sites that use internal Skia reference counted classes. Once these have been removed, then we can use a PRESUBMIT rule to prevent new uses from being added. BUG=none Review URL: https://chromiumcodereview.appspot.com/15004024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200989 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath in some more top level directories.brettw@chromium.org2013-02-101-1/+1
| | | | | | Review URL: https://codereview.chromium.org/12217101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181640 0039d316-1c4b-4281-b951-d872f2087c98
* Make printing build on Win64jschuh@chromium.org2013-01-211-2/+4
| | | | | | | | | | | Just adds some safe casts for the integer conversions. BUG=166496 TBR=thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/11953003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177940 0039d316-1c4b-4281-b951-d872f2087c98
* Move eintr_wrapper.h from base to base/posixbrettw@chromium.org2012-11-141-1/+1
| | | | | | Review URL: https://codereview.chromium.org/11366229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167739 0039d316-1c4b-4281-b951-d872f2087c98
* roll skia to 4552reed@google.com2012-07-121-6/+6
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10702144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146328 0039d316-1c4b-4281-b951-d872f2087c98
* Mac printing: Autorotate printed pages so their orientation is the same as ↵thestig@chromium.org2012-06-181-7/+2
| | | | | | | | | | the destination page. BUG=93303,132922 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10560021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142824 0039d316-1c4b-4281-b951-d872f2087c98
* Fix new -Wnull-conversion violations detected by a newer clang.thakis@chromium.org2012-05-161-1/+1
| | | | | | | | | | | | No intended behavior change. BUG=none TEST=none TBR=hans Review URL: https://chromiumcodereview.appspot.com/10383207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137374 0039d316-1c4b-4281-b951-d872f2087c98
* Remove workaround for fixed skia bug.vandebo@chromium.org2012-03-281-2/+0
| | | | | | | | | | | | Bug was fixed in skia r3499, which we've now rolled past. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9858031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129523 0039d316-1c4b-4281-b951-d872f2087c98
* Roll Skia DEPS to 3470epoger@google.com2012-03-231-18/+13
| | | | | | Review URL: https://chromiumcodereview.appspot.com/9834048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128523 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Roll Skia to 3470, which changes most of the pdf includes to be ↵vandebo@chromium.org2012-03-231-13/+18
| | | | | | | | | | | | | | | private." This reverts r128408 tbr=thakis@chromium.org BUG=NONE TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9835042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128410 0039d316-1c4b-4281-b951-d872f2087c98
* Roll Skia to 3470, which changes most of the pdf includes to be private.vandebo@chromium.org2012-03-231-18/+13
| | | | | | | | | | | TBR=thakis BUG=NONE TEST=NONE Review URL: https://chromiumcodereview.appspot.com/9792001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128408 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded namespaces.thestig@chromium.org2011-10-181-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8334007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106129 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@google.com2011-08-281-7/+4
| | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98230 Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98585 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 98230 - CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-251-4/+7
| | | | | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 TBR=twiz@chromium.org,jbates@chromium.org, dpolukhin@chromium.org, sanjeevr@chromium.org Review URL: http://codereview.chromium.org/7754001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98233 0039d316-1c4b-4281-b951-d872f2087c98
* CL removing inheritance of SkDevice from PlatformDevice. twiz@chromium.org2011-08-251-7/+4
| | | | | | | | | | | | PlatformDevice is now a base interface, which is implemented by the various flavours of BitmapPlatformDevice, and VectorPlatformDevice. The BitmapPlatformDevice and VectorPlatformDevice classes now inherit directly from SkDevice, or SkPDFDevice, as appropriate. PlatformDevice helper functions access the PlatformDevice interface attached to a SkDevice via meta-data on the SkDevice. BUG=none TEST=none Review URL: http://codereview.chromium.org/7633040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98230 0039d316-1c4b-4281-b951-d872f2087c98
* PrintPreview: Remove |page_number| from StartPageForVectorCanvas function ↵kmadhusu@chromium.org2011-08-021-10/+7
| | | | | | | | | | | | | and |page_slot| from PrintMsg_PrintPage_Params. We will not add preview pages to the complete metafile in out of order fashion. BUG=none TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7549001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95092 0039d316-1c4b-4281-b951-d872f2087c98
* Make Metafile::StartPageForVectorCanvas take the page number as an argument.vandebo@chromium.org2011-07-231-9/+12
| | | | | | | | | | | | | This will let us add pages to a metafile out of order for print preview. Also, make PdfMetafileSkia::GetMetafileForCurrentPage use draft mode, now that it's available. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7481019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93763 0039d316-1c4b-4281-b951-d872f2087c98