Skip to content

Remove GPUCanvasConfiguration.size - #2826

Merged
kainino0x merged 14 commits into
gpuweb:mainfrom
kainino0x:configure-no-size
May 16, 2022
Merged

kainino0x merged 14 commits into
gpuweb:mainfrom
kainino0x:configure-no-size

Conversation

@kainino0x

@kainino0x kainino0x commented May 6, 2022 •

Copy link
Copy Markdown
Contributor

WIP: Dependent on #2821

Closes #2416


Preview | Diff

@github-actions

github-actions Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (f2a5374):
WebGPU | IDL
WGSL
Explainer

@github-actions

github-actions Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (387f4df):
WebGPU | IDL
WGSL
Explainer

@kainino0x kainino0x added this to the V1.0 milestone May 11, 2022
@kainino0x kainino0x added the copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) label May 11, 2022
@kainino0x

Copy link
Copy Markdown
Contributor Author

meeting: no major concerns, just need to consider 2 options:

  • resizing canvas just clears the [[currentTexture]]
  • resizing canvas also unconfigure()s the canvas

@kainino0x kainino0x added for webgpu editors meeting tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue and removed copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) labels May 11, 2022

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once one thing is fixed.

Comment thread spec/index.bs Resolved
@kainino0x kainino0x added copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) and removed for webgpu editors meeting tacit resolution candidate Editors may be able to resolve and move to tacit resolution queue labels May 16, 2022
@kainino0x kainino0x self-assigned this May 16, 2022
@kainino0x

Copy link
Copy Markdown
Contributor Author

meeting: no major concerns, just need to consider 2 options:

  • resizing canvas just unset the [[currentTexture]]
  • resizing canvas also unconfigure()s the canvas

Editors resolved to just unset the currentTexture. There's no real benefit to unconfiguring, because we can't guarantee allocations happen in configure() anyway. (same reason we allow OOM in getCurrentTexture - reallocation may need to happen in the implementation when switching overlay/underlay/not, etc.)

@kainino0x
kainino0x marked this pull request as ready for review May 16, 2022 22:45
@kainino0x
kainino0x enabled auto-merge (squash) May 16, 2022 22:46
@kainino0x kainino0x removed the copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) label May 16, 2022
@kainino0x
kainino0x merged commit 8ac7650 into gpuweb:main May 16, 2022
@kainino0x
kainino0x deleted the configure-no-size branch May 16, 2022 22:47
@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (4a00b5e):
WebGPU | IDL
WGSL
Explainer

github-actions Bot added a commit that referenced this pull request May 16, 2022
SHA: 8ac7650
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (c668221):
WebGPU | IDL
WGSL
Explainer

github-actions Bot added a commit that referenced this pull request May 16, 2022
SHA: 8ac7650
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request May 16, 2022
SHA: 8ac7650
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
webkit-early-warning-system pushed a commit to tuankiet65/WebKit that referenced this pull request Jun 27, 2022
https://bugs.webkit.org/show_bug.cgi?id=242003

Reviewed by Myles C. Maxfield.

GPUCanvasConfiguration::size was removed in
gpuweb/gpuweb#2826 in favor of
using the canvas size directly.

* Source/WebCore/Modules/WebGPU/GPUCanvasConfiguration.h:
(WebCore::GPUCanvasConfiguration::convertToBacking const):
* Source/WebCore/Modules/WebGPU/GPUCanvasConfiguration.idl:
* Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUCanvasConfiguration.h:
* Source/WebKit/Shared/WebGPU/WebGPUCanvasConfiguration.cpp:
(WebKit::WebGPU::ConvertToBackingContext::convertToBacking):
(WebKit::WebGPU::ConvertFromBackingContext::convertFromBacking):
* Source/WebKit/Shared/WebGPU/WebGPUCanvasConfiguration.h:
(WebKit::WebGPU::CanvasConfiguration::encode const):
(WebKit::WebGPU::CanvasConfiguration::decode):

Canonical link: https://commits.webkit.org/251882@main
@kainino0x kainino0x added the needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet label Jun 29, 2022
Jarred-Sumner pushed a commit to oven-sh/WebKit that referenced this pull request Jul 27, 2022
https://bugs.webkit.org/show_bug.cgi?id=242003

Reviewed by Myles C. Maxfield.

GPUCanvasConfiguration::size was removed in
gpuweb/gpuweb#2826 in favor of
using the canvas size directly.

* Source/WebCore/Modules/WebGPU/GPUCanvasConfiguration.h:
(WebCore::GPUCanvasConfiguration::convertToBacking const):
* Source/WebCore/Modules/WebGPU/GPUCanvasConfiguration.idl:
* Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUCanvasConfiguration.h:
* Source/WebKit/Shared/WebGPU/WebGPUCanvasConfiguration.cpp:
(WebKit::WebGPU::ConvertToBackingContext::convertToBacking):
(WebKit::WebGPU::ConvertFromBackingContext::convertFromBacking):
* Source/WebKit/Shared/WebGPU/WebGPUCanvasConfiguration.h:
(WebKit::WebGPU::CanvasConfiguration::encode const):
(WebKit::WebGPU::CanvasConfiguration::decode):

Canonical link: https://commits.webkit.org/251882@main
jdarpinian pushed a commit to jdarpinian/gpuweb that referenced this pull request Aug 12, 2022
juj added a commit to juj/wasm_webgpu that referenced this pull request Aug 18, 2022
@lokokung lokokung removed the needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet label Oct 13, 2022
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 2, 2023
…=jgilbert,emilio

In [gpuweb#2826](gpuweb/gpuweb#2826), the
`size` attribute was removed from `GPUCanvasConfiguration`. Since the
fuzzers have discovered that the `size` attribute is a fun toy to play
with, it's time to update Firefox to match the spec.

Differential Revision: https://phabricator.services.mozilla.com/D168575
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 3, 2023
…=jgilbert,emilio

In [gpuweb#2826](gpuweb/gpuweb#2826), the
`size` attribute was removed from `GPUCanvasConfiguration`. Since the
fuzzers have discovered that the `size` attribute is a fun toy to play
with, it's time to update Firefox to match the spec.

Differential Revision: https://phabricator.services.mozilla.com/D168575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants