WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 200740
[WebGPU] Use of WebGPU should not force discrete GPU
https://bugs.webkit.org/show_bug.cgi?id=200740
Summary
[WebGPU] Use of WebGPU should not force discrete GPU
Justin Fan
Reported
2019-08-14 15:57:45 PDT
[WebGPU] Use of WebGPU should not force discrete GPU
Attachments
Patch
(2.29 KB, patch)
2019-08-14 16:01 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(1.30 KB, patch)
2019-08-15 15:05 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(1.21 KB, patch)
2019-08-15 15:10 PDT
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Justin Fan
Comment 1
2019-08-14 15:58:23 PDT
<
rdar://problem/53573849
>
Justin Fan
Comment 2
2019-08-14 16:01:47 PDT
Created
attachment 376325
[details]
Patch
Myles C. Maxfield
Comment 3
2019-08-14 16:15:59 PDT
Comment on
attachment 376325
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=376325&action=review
> Source/WebCore/platform/graphics/gpu/GPURequestAdapterOptions.h:40 > + Optional<GPUPowerPreference> powerPreference { GPUPowerPreference::LowPower };
Why is this optional any more, then?
WebKit Commit Bot
Comment 4
2019-08-14 19:34:31 PDT
Comment on
attachment 376325
[details]
Patch Clearing flags on attachment: 376325 Committed
r248704
: <
https://trac.webkit.org/changeset/248704
>
WebKit Commit Bot
Comment 5
2019-08-14 19:34:32 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 6
2019-08-15 08:32:51 PDT
Comment on
attachment 376325
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=376325&action=review
>> Source/WebCore/platform/graphics/gpu/GPURequestAdapterOptions.h:40 >> + Optional<GPUPowerPreference> powerPreference { GPUPowerPreference::LowPower }; > > Why is this optional any more, then?
I’d like to understand this too.
Justin Fan
Comment 7
2019-08-15 12:46:39 PDT
(In reply to Darin Adler from
comment #6
)
> Comment on
attachment 376325
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=376325&action=review
> > >> Source/WebCore/platform/graphics/gpu/GPURequestAdapterOptions.h:40 > >> + Optional<GPUPowerPreference> powerPreference { GPUPowerPreference::LowPower }; > > > > Why is this optional any more, then? > > I’d like to understand this too.
Hi! I noted this only offline to Myles, but the current spec still calls for a ‘?’ in that field and not wrapping the member in Optional results in binding compile error. Us providing the default is an impl detail.
Darin Adler
Comment 8
2019-08-15 14:49:50 PDT
(In reply to Justin Fan from
comment #7
)
> the current spec still calls for > a ‘?’ in that field and not wrapping the member in Optional results in > binding compile error. Us providing the default is an impl detail.
I don’t think this is the right idiom for an optional value with default behavior. We should remove the default value from the struct and have the code that gets the value from the struct apply the default using valueOr.
Justin Fan
Comment 9
2019-08-15 14:53:00 PDT
(In reply to Darin Adler from
comment #8
)
> (In reply to Justin Fan from
comment #7
) > > the current spec still calls for > > a ‘?’ in that field and not wrapping the member in Optional results in > > binding compile error. Us providing the default is an impl detail. > > I don’t think this is the right idiom for an optional value with default > behavior. We should remove the default value from the struct and have the > code that gets the value from the struct apply the default using valueOr.
Cool, did not know valueOr was a thing. Will update.
Justin Fan
Comment 10
2019-08-15 15:05:41 PDT
Reopening to attach new patch.
Justin Fan
Comment 11
2019-08-15 15:05:42 PDT
Created
attachment 376427
[details]
Patch
EWS Watchlist
Comment 12
2019-08-15 15:07:34 PDT
Attachment 376427
[details]
did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Justin Fan
Comment 13
2019-08-15 15:10:40 PDT
Created
attachment 376428
[details]
Patch
Justin Fan
Comment 14
2019-08-15 15:15:32 PDT
Comment on
attachment 376428
[details]
Patch Clearing flags on attachment: 376428 Committed
r248749
: <
https://trac.webkit.org/changeset/248749
>
Justin Fan
Comment 15
2019-08-15 15:15:34 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug