Bug 75770
| Summary: | WKPrintingView should avoid copying the PDF data | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Rowe (bdash) <mrowe> |
| Component: | Printing | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, thorton |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mark Rowe (bdash)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |