Bug 75770

Summary: WKPrintingView should avoid copying the PDF data
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: PrintingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Mark Rowe (bdash)
Reported 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.
Attachments
Note You need to log in before you can comment on or make changes to this bug.