Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 86575c4e15164c6b9b9e76765cb9771ea2fda91b
https://github.com/WebKit/WebKit/commit/86575c4e15164c6b9b9e76765cb9771ea2fda91b
Author: Devin Rousso <[email protected]>
Date: 2026-08-02 (Sun, 02 Aug 2026)
Changed paths:
M LayoutTests/inspector/canvas/create-context-webgpu-expected.txt
M LayoutTests/inspector/canvas/create-context-webgpu.html
M LayoutTests/inspector/canvas/resources/shaderProgram-utilities-webgpu.js
M LayoutTests/inspector/canvas/resources/webgpu-worker.js
M LayoutTests/inspector/canvas/shaderProgram-add-remove-webgpu-expected.txt
M LayoutTests/inspector/canvas/shaderProgram-add-remove-webgpu.html
M LayoutTests/inspector/canvas/worker-webgpu-expected.txt
M LayoutTests/inspector/canvas/worker-webgpu.html
M Source/JavaScriptCore/inspector/protocol/Canvas.json
M Source/WebCore/inspector/InspectorCanvas.cpp
M Source/WebCore/inspector/InspectorShaderProgram.cpp
M Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js
M Source/WebInspectorUI/UserInterface/Models/Canvas.js
M Source/WebInspectorUI/UserInterface/Models/ShaderProgram.js
Log Message:
-----------
Web Inspector: Canvas: show WebGPU `label` where able
https://bugs.webkit.org/show_bug.cgi?id=320841
Reviewed by Mike Wyrzykowski.
* Source/JavaScriptCore/inspector/protocol/Canvas.json:
* Source/WebCore/inspector/InspectorCanvas.cpp:
(WebCore::InspectorCanvas::buildObjectForCanvas):
* Source/WebCore/inspector/InspectorShaderProgram.cpp:
(WebCore::InspectorShaderProgram::buildObjectForShaderProgram):
Expose the `label` of a `GPUDevice`, `GPUComputePipeline`, and
`GPURenderPipeline` as optional parameters of `Canvas.Canvas` and
`Canvas.ShaderProgram`.
* Source/WebInspectorUI/UserInterface/Controllers/CanvasManager.js:
(WI.CanvasManager.prototype.programCreated):
* Source/WebInspectorUI/UserInterface/Models/Canvas.js:
(WI.Canvas):
(WI.Canvas.fromPayload):
(WI.Canvas.prototype.get displayName):
* Source/WebInspectorUI/UserInterface/Models/ShaderProgram.js:
(WI.ShaderProgram):
(WI.ShaderProgram.prototype.get displayName):
If a `label` is set then use that instead of any generated name.
* LayoutTests/inspector/canvas/resources/shaderProgram-utilities-webgpu.js:
(initializeWebGPU):
(createComputePipeline):
(createRenderPipeline):
* LayoutTests/inspector/canvas/resources/webgpu-worker.js:
(initialize):
* LayoutTests/inspector/canvas/create-context-webgpu.html:
* LayoutTests/inspector/canvas/create-context-webgpu-expected.txt:
* LayoutTests/inspector/canvas/shaderProgram-add-remove-webgpu.html:
* LayoutTests/inspector/canvas/shaderProgram-add-remove-webgpu-expected.txt:
* LayoutTests/inspector/canvas/worker-webgpu.html:
* LayoutTests/inspector/canvas/worker-webgpu-expected.txt:
Canonical link: https://commits.webkit.org/318409@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications