Diff
Modified: trunk/Source/WebCore/ChangeLog (290760 => 290761)
--- trunk/Source/WebCore/ChangeLog 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebCore/ChangeLog 2022-03-03 00:29:04 UTC (rev 290761)
@@ -1,3 +1,18 @@
+2022-03-02 Dan Glastonbury <[email protected]>
+
+ [WebGPU] Implement GPUDeviceDescriptor.requiredLimits
+ https://bugs.webkit.org/show_bug.cgi?id=232741
+ <rdar://problem/85325316>
+
+ Reviewed by Myles C. Maxfield.
+
+ Implement IDL bindings for requiredLimits attribute of
+ GPUDeviceDescriptor.
+
+ * Modules/WebGPU/GPUDeviceDescriptor.h:
+ (WebCore::GPUDeviceDescriptor::convertToBacking const):
+ * Modules/WebGPU/GPUDeviceDescriptor.idl:
+
2022-03-02 Simon Fraser <[email protected]>
Rendering issues with many dynamically-added sticky elements inside overflow scroll
Modified: trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.h (290760 => 290761)
--- trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.h 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.h 2022-03-03 00:29:04 UTC (rev 290761)
@@ -44,11 +44,12 @@
requiredFeatures.map([] (const auto& requiredFeature) {
return WebCore::convertToBacking(requiredFeature);
}),
+ requiredLimits,
};
}
Vector<GPUFeatureName> requiredFeatures;
- // Vector<KeyValuePair<String, uint64_t>> requiredLimits;
+ Vector<KeyValuePair<String, uint64_t>> requiredLimits;
};
}
Modified: trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.idl (290760 => 290761)
--- trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.idl 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebCore/Modules/WebGPU/GPUDeviceDescriptor.idl 2022-03-03 00:29:04 UTC (rev 290761)
@@ -25,10 +25,12 @@
// https://gpuweb.github.io/gpuweb/#dictdef-gpudevicedescriptor
+typedef [EnforceRange] unsigned long long GPUSize64;
+
[
EnabledBySetting=WebGPU
]
dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
sequence<GPUFeatureName> requiredFeatures = [];
- // record<DOMString, GPUSize64> requiredLimits; // FIXME: https://bugs.webkit.org/show_bug.cgi?id=232741 Our bindings generator can't seem to understand this
+ record<DOMString, GPUSize64> requiredLimits;
};
Modified: trunk/Source/WebCore/PAL/ChangeLog (290760 => 290761)
--- trunk/Source/WebCore/PAL/ChangeLog 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebCore/PAL/ChangeLog 2022-03-03 00:29:04 UTC (rev 290761)
@@ -1,3 +1,16 @@
+2022-03-02 Dan Glastonbury <[email protected]>
+
+ [WebGPU] Implement GPUDeviceDescriptor.requiredLimits
+ https://bugs.webkit.org/show_bug.cgi?id=232741
+ <rdar://problem/85325316>
+
+ Reviewed by Myles C. Maxfield.
+
+ Implement IDL bindings for requiredLimits attribute of
+ GPUDeviceDescriptor.
+
+ * pal/graphics/WebGPU/WebGPUDeviceDescriptor.h:
+
2022-03-01 Alex Christensen <[email protected]>
If the main resource was loaded over private relay, load all sub resources over private relay
Modified: trunk/Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUDeviceDescriptor.h (290760 => 290761)
--- trunk/Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUDeviceDescriptor.h 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUDeviceDescriptor.h 2022-03-03 00:29:04 UTC (rev 290761)
@@ -36,7 +36,7 @@
struct DeviceDescriptor : public ObjectDescriptorBase {
Vector<FeatureName> requiredFeatures;
- // FIXME: Add support for requiredLimits.
+ Vector<KeyValuePair<String, uint64_t>> requiredLimits;
};
} // namespace PAL::WebGPU
Modified: trunk/Source/WebKit/ChangeLog (290760 => 290761)
--- trunk/Source/WebKit/ChangeLog 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebKit/ChangeLog 2022-03-03 00:29:04 UTC (rev 290761)
@@ -1,3 +1,21 @@
+2022-03-02 Dan Glastonbury <[email protected]>
+
+ [WebGPU] Implement GPUDeviceDescriptor.requiredLimits
+ https://bugs.webkit.org/show_bug.cgi?id=232741
+ rdar://problem/85325316
+
+ Reviewed by Myles C. Maxfield.
+
+ Implement IDL bindings for requiredLimits attribute of
+ GPUDeviceDescriptor.
+
+ * Shared/WebGPU/WebGPUDeviceDescriptor.cpp:
+ (WebKit::WebGPU::ConvertToBackingContext::convertToBacking):
+ (WebKit::WebGPU::ConvertFromBackingContext::convertFromBacking):
+ * Shared/WebGPU/WebGPUDeviceDescriptor.h:
+ (WebKit::WebGPU::DeviceDescriptor::encode const):
+ (WebKit::WebGPU::DeviceDescriptor::decode):
+
2022-03-02 Brent Fulgham <[email protected]>
[AppSSO] Correct logging messages to avoid confusing screeners that an error has occurred
Modified: trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.cpp (290760 => 290761)
--- trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.cpp 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.cpp 2022-03-03 00:29:04 UTC (rev 290761)
@@ -40,7 +40,7 @@
if (!base)
return std::nullopt;
- return { { WTFMove(*base), deviceDescriptor.requiredFeatures } };
+ return { { WTFMove(*base), deviceDescriptor.requiredFeatures, deviceDescriptor.requiredLimits } };
}
std::optional<PAL::WebGPU::DeviceDescriptor> ConvertFromBackingContext::convertFromBacking(const DeviceDescriptor& deviceDescriptor)
@@ -49,7 +49,7 @@
if (!base)
return std::nullopt;
- return { { WTFMove(*base), deviceDescriptor.requiredFeatures } };
+ return { { WTFMove(*base), deviceDescriptor.requiredFeatures, deviceDescriptor.requiredLimits } };
}
} // namespace WebKit
Modified: trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.h (290760 => 290761)
--- trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.h 2022-03-03 00:08:36 UTC (rev 290760)
+++ trunk/Source/WebKit/Shared/WebGPU/WebGPUDeviceDescriptor.h 2022-03-03 00:29:04 UTC (rev 290761)
@@ -39,12 +39,13 @@
struct DeviceDescriptor : public ObjectDescriptorBase {
Vector<PAL::WebGPU::FeatureName> requiredFeatures;
- // FIXME: Add support for requiredLimits.
+ Vector<KeyValuePair<String, uint64_t>> requiredLimits;
template<class Encoder> void encode(Encoder& encoder) const
{
encoder << static_cast<const ObjectDescriptorBase&>(*this);
encoder << requiredFeatures;
+ encoder << requiredLimits;
}
template<class Decoder> static std::optional<DeviceDescriptor> decode(Decoder& decoder)
@@ -59,7 +60,12 @@
if (!requiredFeatures)
return std::nullopt;
- return { { WTFMove(*objectDescriptorBase), WTFMove(*requiredFeatures) } };
+ std::optional<Vector<KeyValuePair<String, uint64_t>>> requiredLimits;
+ decoder >> requiredLimits;
+ if (!requiredLimits)
+ return std::nullopt;
+
+ return { { WTFMove(*objectDescriptorBase), WTFMove(*requiredFeatures), WTFMove(*requiredLimits) } };
}
};