Bug 75770 - WKPrintingView should avoid copying the PDF data
Summary: WKPrintingView should avoid copying the PDF data
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2012-01-06 23:04 PST by Mark Rowe (bdash)
Modified: 2013-09-03 14:58 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2012-01-06 23:04:18 PST
In <http://trac.webkit.org/changeset/104377> we switched to copying bytes from a Vector<char> in to an NSData*. It should be possible to use -initWithBytesNoCopy:length:freeWhenDone: to avoid copying. This may require changing some of the assumptions about the state of _printedPagesData as it is likely to require transferring ownership of the buffer to the NSData instance.