| Summary: | Pre-fetch first page in new PDF loading model | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brady Eidson <beidson> | ||||||
| Component: | WebKit Misc. | Assignee: | Brady Eidson <beidson> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, commit-queue, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Brady Eidson
2020-03-05 15:39:23 PST
Created attachment 392638 [details]
Patch
Comment on attachment 392638 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392638&action=review > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:98 > +-(void) preloadDataOfPagesInRange:(NSRange)range onQueue:(dispatch_queue_t)queue completion:(void (^)(NSIndexSet* loadedPageIndexes))completionBlock; Space in wrong place. Same with previous line. > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:711 > + auto firstPageQueue = WorkQueue::create("PDF first page work queue"); We should reuse this. (In reply to Alex Christensen from comment #2) > Comment on attachment 392638 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=392638&action=review > > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:98 > > +-(void) preloadDataOfPagesInRange:(NSRange)range onQueue:(dispatch_queue_t)queue completion:(void (^)(NSIndexSet* loadedPageIndexes))completionBlock; > > Space in wrong place. > Same with previous line. > > > Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm:711 > > + auto firstPageQueue = WorkQueue::create("PDF first page work queue"); > > We should reuse this. There's only ever one per PDFPlugin, and there's (generally) only ever one PDFPlugin per WebContent process. So I agree in principal, but in practice it's a non-issue. Created attachment 392643 [details]
PFL
Comment on attachment 392643 [details] PFL Clearing flags on attachment: 392643 Committed r257964: <https://trac.webkit.org/changeset/257964> All reviewed patches have been landed. Closing bug. |