mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
Cleanup old/deprecated wire and native APIs
Bug: none Change-Id: Idf9a00d8dc675e1fbc83554c487edcb2dda498c8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30001 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
2931c429c9
commit
875091308b
@@ -215,10 +215,7 @@ namespace dawn_native {
|
||||
public:
|
||||
const ExternalImageType type;
|
||||
const WGPUTextureDescriptor* cTextureDescriptor; // Must match image creation params
|
||||
union {
|
||||
bool isInitialized; // Whether the texture is initialized on import
|
||||
bool isCleared; // DEPRECATED: Sets whether the texture will be cleared before use
|
||||
};
|
||||
bool isInitialized; // Whether the texture is initialized on import
|
||||
|
||||
protected:
|
||||
ExternalImageDescriptor(ExternalImageType type);
|
||||
|
||||
@@ -33,11 +33,7 @@ namespace dawn_wire {
|
||||
// a fatal error.
|
||||
virtual void* GetCmdSpace(size_t size) = 0;
|
||||
virtual bool Flush() = 0;
|
||||
|
||||
// TODO(enga): Make pure virtual after updating Chromium.
|
||||
virtual size_t GetMaximumAllocationSize() const {
|
||||
return std::numeric_limits<size_t>::max();
|
||||
}
|
||||
virtual size_t GetMaximumAllocationSize() const = 0;
|
||||
};
|
||||
|
||||
class DAWN_WIRE_EXPORT CommandHandler {
|
||||
|
||||
@@ -46,9 +46,6 @@ namespace dawn_wire {
|
||||
WireClient(const WireClientDescriptor& descriptor);
|
||||
~WireClient() override;
|
||||
|
||||
// TODO(enga): Remove this and use dawn_wire::client::GetProcs() instead
|
||||
static const DawnProcTable& GetProcs();
|
||||
|
||||
WGPUDevice GetDevice() const;
|
||||
const volatile char* HandleCommands(const volatile char* commands,
|
||||
size_t size) override final;
|
||||
|
||||
Reference in New Issue
Block a user