Summary: | Limit number of active graphics contexts per web process | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Roger Fong <roger_fong> | ||||||
Component: | WebGL | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, dino, esprehn+autocc, gyuyoung.kim, kondapallykalyan, roger_fong, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Roger Fong
2014-05-12 13:16:30 PDT
Actually this: <rdar://problem/16888459> Created attachment 231330 [details]
patch
Created attachment 231349 [details]
better patch
Comment on attachment 231349 [details] better patch View in context: https://bugs.webkit.org/attachment.cgi?id=231349&action=review > Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:118 > + return 0; return nullptr; > Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:123 > + return 0; return nullptr; > LayoutTests/webgl/many-contexts.html:13 > + for (var i = 0; i < size; i++) { > + canvii[i] = document.createElement("canvas"); > + canvii[i].width = 1; > + canvii[i].height = 1; > + var context = canvii[i].getContext("webgl", null); > + } Weird indentation. Also, I wonder if we should check that context == null at 1000 (assuming that we might raise the number above 16, but never to 1000). Committed http://trac.webkit.org/changeset/168666 with fixes. |