[Webkit-unassigned] [Bug 173087] New: Web Inspector: Instrument active pixel memory used by canvases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 7 21:08:51 PDT 2017


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

            Bug ID: 173087
           Summary: Web Inspector: Instrument active pixel memory used by
                    canvases
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattbaker at apple.com
                CC: inspector-bugzilla-changes at group.apple.com,
                    webkit-bug-importer at group.apple.com
        Depends on: 172623

Summary:
Instrument active pixel memory used by canvases.

1) Add property `Canvas.memoryCost` to the Canvas protocol. Get canvas pixel memory using:

size_t HTMLCanvasElement::memoryCost() const;
size_t HTMLCanvasElement::externalMemoryCost() const;

2) Add event `canvasMemoryChanged` to the Canvas protocol. Instrumentation points:

void HTMLCanvasElement::createImageBuffer() const;
void HTMLCanvasElement::setImageBuffer(std::unique_ptr<ImageBuffer>) const;

3) It might be useful to display the maximum pixel memory available to all canvases. This info can be retrieved by hooking into `maxActivePixelMemory()` (see HTMLCanvasElement.cpp:190).


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=172623
[Bug 172623] Web Inspector: Instrument 2D/WebGL canvas contexts in the backend
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170608/fdc5d963/attachment.html>


More information about the webkit-unassigned mailing list