Bug 168269

Summary: Rename preferLowPowerToHighPerformance to powerPreference
Product: WebKit Reporter: Dean Jackson <dino>
Component: WebGLAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dino, esprehn+autocc, graouts, gyuyoung.kim, kondapallykalyan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch cdumez: review+

Dean Jackson
Reported 2017-02-13 18:07:08 PST
Attachments
Patch (14.00 KB, patch)
2017-02-13 18:26 PST, Dean Jackson
cdumez: review+
Radar WebKit Bug Importer
Comment 1 2017-02-13 18:08:29 PST
Dean Jackson
Comment 2 2017-02-13 18:26:14 PST
Chris Dumez
Comment 3 2017-02-13 18:43:28 PST
Comment on attachment 301433 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301433&action=review r=me > Source/WebCore/html/canvas/WebGLContextAttributes.idl:-39 > - GLboolean preferLowPowerToHighPerformance = false; So we're dropping support for this flag? What if there is content out there using preferLowPowerToHighPerformance = true? If we want, we could support both flags by not specifying a default value in the IDL and using std::optional<> on native side.
Dean Jackson
Comment 4 2017-02-14 10:06:02 PST
Comment on attachment 301433 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301433&action=review >> Source/WebCore/html/canvas/WebGLContextAttributes.idl:-39 >> - GLboolean preferLowPowerToHighPerformance = false; > > So we're dropping support for this flag? What if there is content out there using preferLowPowerToHighPerformance = true? If we want, we could support both flags by not specifying a default value in the IDL and using std::optional<> on native side. Yeah. Normally I'd want to keep supporting it, but since no one has ever shipped a browser that implements it properly (*), I think it's ok to drop it. (*) We added it in the latest Safari/Sierra release, but then ignored the value by always choosing low power.
Dean Jackson
Comment 5 2017-02-14 12:15:35 PST
Note You need to log in before you can comment on or make changes to this bug.