Commit 592eacf9 authored by François Beaufort's avatar François Beaufort Committed by Commit Bot

[WebGPU] Remove NONE=0 flags/bits

Following WebGPU spec change https://github.com/gpuweb/gpuweb/pull/461,
this CL removes NONE=0 flags/bits.

Change-Id: I675d6cbd9df8f30138276cef94f9a24e9e33a008
Bug: 877147
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1845762
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: default avatarCorentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703653}
parent cd44ab38
...@@ -14,7 +14,6 @@ class GPUBufferUsage : public ScriptWrappable { ...@@ -14,7 +14,6 @@ class GPUBufferUsage : public ScriptWrappable {
public: public:
// gpu_buffer_usage.idl // gpu_buffer_usage.idl
static constexpr uint32_t kNone = 0;
static constexpr uint32_t kMapRead = 1; static constexpr uint32_t kMapRead = 1;
static constexpr uint32_t kMapWrite = 2; static constexpr uint32_t kMapWrite = 2;
static constexpr uint32_t kCopySrc = 4; static constexpr uint32_t kCopySrc = 4;
......
...@@ -8,7 +8,6 @@ typedef unsigned long GPUBufferUsageFlags; ...@@ -8,7 +8,6 @@ typedef unsigned long GPUBufferUsageFlags;
[ [
RuntimeEnabled=WebGPU RuntimeEnabled=WebGPU
] interface GPUBufferUsage { ] interface GPUBufferUsage {
const GPUBufferUsageFlags NONE = 0;
const GPUBufferUsageFlags MAP_READ = 1; const GPUBufferUsageFlags MAP_READ = 1;
const GPUBufferUsageFlags MAP_WRITE = 2; const GPUBufferUsageFlags MAP_WRITE = 2;
const GPUBufferUsageFlags COPY_SRC = 4; const GPUBufferUsageFlags COPY_SRC = 4;
......
...@@ -14,7 +14,6 @@ class GPUColorWrite : public ScriptWrappable { ...@@ -14,7 +14,6 @@ class GPUColorWrite : public ScriptWrappable {
public: public:
// gpu_color_write.idl // gpu_color_write.idl
static constexpr uint32_t kNone = 0;
static constexpr uint32_t kRed = 1; static constexpr uint32_t kRed = 1;
static constexpr uint32_t kGreen = 2; static constexpr uint32_t kGreen = 2;
static constexpr uint32_t kBlue = 4; static constexpr uint32_t kBlue = 4;
......
...@@ -8,7 +8,6 @@ typedef unsigned long GPUColorWriteFlags; ...@@ -8,7 +8,6 @@ typedef unsigned long GPUColorWriteFlags;
[ [
RuntimeEnabled=WebGPU RuntimeEnabled=WebGPU
] interface GPUColorWrite { ] interface GPUColorWrite {
const GPUColorWriteFlags NONE = 0;
const GPUColorWriteFlags RED = 1; const GPUColorWriteFlags RED = 1;
const GPUColorWriteFlags GREEN = 2; const GPUColorWriteFlags GREEN = 2;
const GPUColorWriteFlags BLUE = 4; const GPUColorWriteFlags BLUE = 4;
......
...@@ -14,7 +14,6 @@ class GPUShaderStage : public ScriptWrappable { ...@@ -14,7 +14,6 @@ class GPUShaderStage : public ScriptWrappable {
public: public:
// gpu_shader_stage.idl // gpu_shader_stage.idl
static constexpr uint32_t kNone = 0;
static constexpr uint32_t kVertex = 1; static constexpr uint32_t kVertex = 1;
static constexpr uint32_t kFragment = 2; static constexpr uint32_t kFragment = 2;
static constexpr uint32_t kCompute = 4; static constexpr uint32_t kCompute = 4;
......
...@@ -8,7 +8,6 @@ typedef unsigned long GPUShaderStageFlags; ...@@ -8,7 +8,6 @@ typedef unsigned long GPUShaderStageFlags;
[ [
RuntimeEnabled=WebGPU RuntimeEnabled=WebGPU
] interface GPUShaderStage { ] interface GPUShaderStage {
const GPUShaderStageFlags NONE = 0;
const GPUShaderStageFlags VERTEX = 1; const GPUShaderStageFlags VERTEX = 1;
const GPUShaderStageFlags FRAGMENT = 2; const GPUShaderStageFlags FRAGMENT = 2;
const GPUShaderStageFlags COMPUTE = 4; const GPUShaderStageFlags COMPUTE = 4;
......
...@@ -14,7 +14,6 @@ class GPUTextureUsage : public ScriptWrappable { ...@@ -14,7 +14,6 @@ class GPUTextureUsage : public ScriptWrappable {
public: public:
// gpu_texture_usage.idl // gpu_texture_usage.idl
static constexpr uint32_t kNone = 0;
static constexpr uint32_t kCopySrc = 1; static constexpr uint32_t kCopySrc = 1;
static constexpr uint32_t kCopyDst = 2; static constexpr uint32_t kCopyDst = 2;
static constexpr uint32_t kSampled = 4; static constexpr uint32_t kSampled = 4;
......
...@@ -8,7 +8,6 @@ typedef unsigned long GPUTextureUsageFlags; ...@@ -8,7 +8,6 @@ typedef unsigned long GPUTextureUsageFlags;
[ [
RuntimeEnabled=WebGPU RuntimeEnabled=WebGPU
] interface GPUTextureUsage { ] interface GPUTextureUsage {
const GPUTextureUsageFlags NONE = 0;
const GPUTextureUsageFlags COPY_SRC = 1; const GPUTextureUsageFlags COPY_SRC = 1;
const GPUTextureUsageFlags COPY_DST = 2; const GPUTextureUsageFlags COPY_DST = 2;
const GPUTextureUsageFlags SAMPLED = 4; const GPUTextureUsageFlags SAMPLED = 4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment