⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243718 in webkit


Ignore:
Timestamp:
Apr 1, 2019, 3:38:29 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Canvas: add compatibility support for WebMetal
https://bugs.webkit.org/show_bug.cgi?id=196412
<rdar://problem/49439417>

Reviewed by Joseph Pecoraro.

  • UserInterface/Models/Canvas.js:

(WI.Canvas.fromPayload):
(WI.Canvas.displayNameForContextType):

  • UserInterface/Protocol/Legacy/12.2/InspectorBackendCommands.js:
  • Versions/Inspector-iOS-12.2.json:
Location:
trunk/Source/WebInspectorUI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243717 r243718  
     12019-04-01  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Canvas: add compatibility support for WebMetal
     4        https://bugs.webkit.org/show_bug.cgi?id=196412
     5        <rdar://problem/49439417>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        * UserInterface/Models/Canvas.js:
     10        (WI.Canvas.fromPayload):
     11        (WI.Canvas.displayNameForContextType):
     12        * UserInterface/Protocol/Legacy/12.2/InspectorBackendCommands.js:
     13        * Versions/Inspector-iOS-12.2.json:
     14
    1152019-04-01  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Models/Canvas.js

    r243666 r243718  
    7676            contextType = WI.Canvas.ContextType.WebGPU;
    7777            break;
     78        case CanvasAgent.ContextType.WebMetal:
     79            contextType = WI.Canvas.ContextType.WebMetal;
     80            break;
    7881        default:
    7982            console.error("Invalid canvas context type", payload.contextType);
     
    102105        case WI.Canvas.ContextType.WebGPU:
    103106            return WI.unlocalizedString("Web GPU");
     107        case WI.Canvas.ContextType.WebMetal:
     108            return WI.unlocalizedString("WebMetal");
    104109        default:
    105110            console.error("Invalid canvas context type", contextType);
     
    409414    WebGL2: "webgl2",
    410415    WebGPU: "webgpu",
     416    WebMetal: "webmetal",
    411417};
    412418
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/Legacy/12.2/InspectorBackendCommands.js

    r243666 r243718  
    6868// Canvas.
    6969InspectorBackend.registerCanvasDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, "Canvas");
    70 InspectorBackend.registerEnum("Canvas.ContextType", {Canvas2D: "canvas-2d", BitmapRenderer: "bitmaprenderer", WebGL: "webgl", WebGL2: "webgl2"});
     70InspectorBackend.registerEnum("Canvas.ContextType", {Canvas2D: "canvas-2d", BitmapRenderer: "bitmaprenderer", WebGL: "webgl", WebGL2: "webgl2", WebMetal: "webmetal"});
    7171InspectorBackend.registerEnum("Canvas.ShaderType", {Fragment: "fragment", Vertex: "vertex"});
    7272InspectorBackend.registerEvent("Canvas.canvasAdded", ["canvas"]);
  • trunk/Source/WebInspectorUI/Versions/Inspector-iOS-12.2.json

    r243666 r243718  
    494494            "id": "ContextType",
    495495            "type": "string",
    496             "enum": ["canvas-2d", "bitmaprenderer", "webgl", "webgl2"],
     496            "enum": ["canvas-2d", "bitmaprenderer", "webgl", "webgl2", "webmetal"],
    497497            "description": "The type of rendering context backing the canvas element."
    498498        },
Note: See TracChangeset for help on using the changeset viewer.