• Alan Screen's avatar
    Add Windows support for printed document metafile · 13ec987c
    Alan Screen authored
    The legacy Windows printing with GDI/EMF has a different print path
    from other desktop platforms, as it spools each page of a document
    separately so that the results can go through an extra conversion step
    from PDF to EMF before being sent to a device.
    
    With XPS printing path no extra conversion step is required, enabling
    Windows to use a similar interface as for other desktop platforms and
    get the document metafile and simply spool the job.  This CL enables
    that option for XPS to coexist with GDI depending upon the
    |kUseXpsForPrinting| feature flag.
    
    This CL uses a NOTIMPLEMENTED in PrintingContextWin::PrintDocument()
    as a placeholder for where Skia calls will occur, which is to come in
    later CL.
    
    Bug: 1008222
    Change-Id: I7d6b0a1ef737eaba358f99ed04e047d24a0e895e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1935946Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Commit-Queue: Alan Screen <awscreen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#723446}
    13ec987c
printed_document.cc 9.66 KB