[Webkit-unassigned] [Bug 158715] New: [iOS] PDFDocumentImage should not create a cached image larger than what the device can handle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 13 18:08:14 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=158715

            Bug ID: 158715
           Summary: [iOS] PDFDocumentImage should not create a cached
                    image larger than what the device can handle
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

This is a follow up for the bug https://bugs.webkit.org/show_bug.cgi?id=157857.

This bug was partially fixed in http://trac.webkit.org/changeset/201629 for low end devices whose ram sizes are less than 1GB ram. The bug was not addressed for higher end devices which larger ram sizes.

We need to use some heuristic than can work for all ram sizes. We can say, for every 1GB of ram we allow 16MB memory increase in the PDF cachedImage size. Or more formally, the PDF cachedImage will be created only:

    if (ramSize() / PDF_cachedImage_size > 1GB / 16MB)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160614/8a1f828c/attachment.html>


More information about the webkit-unassigned mailing list