RESOLVED FIXED 168688
No need for static attributes when creating a pixel format
https://bugs.webkit.org/show_bug.cgi?id=168688
Summary No need for static attributes when creating a pixel format
Dean Jackson
Reported 2017-02-21 16:01:03 PST
GraphicsContext3DManager::updateHighPerformanceState() uses a static for some CGLPixelFormatAttributes. There isn't any point. Just create them each time.
Attachments
Patch (2.25 KB, patch)
2017-02-21 16:03 PST, Dean Jackson
mmaxfield: review+
Radar WebKit Bug Importer
Comment 1 2017-02-21 16:01:26 PST
Dean Jackson
Comment 2 2017-02-21 16:03:12 PST
Sam Weinig
Comment 3 2017-02-21 16:35:25 PST
Comment on attachment 302327 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=302327&action=review > Source/WebCore/platform/graphics/mac/GraphicsContext3DMac.mm:268 > + Vector<CGLPixelFormatAttribute> attributes; I think you can use initializer list syntax for this. Vector<CGLPixelFormatAttribute> attributes { kCGLPFAAccelerated, kCGLPFAColorSize, static_cast<CGLPixelFormatAttribute>(32), static_cast<CGLPixelFormatAttribute>(0) };
Dean Jackson
Comment 4 2017-02-21 17:24:48 PST
Note You need to log in before you can comment on or make changes to this bug.