mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Rename namespace dawn_platform to dawn::platform.
But keep a namespace alias to avoid breaking project that depend on the previous namespace name while they get updated. Some TraceEvent.h macro were using "platform" as an argument name so that was renamed to "platformObj" to avoid conflicting with ::platform:: Bug: dawn:824 Change-Id: Iaf14853f02b0d9fcf866ce87788f87a3fdf8f364 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75541 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
e53bfc561c
commit
8bf8587eb3
@@ -22,9 +22,9 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace dawn_platform {
|
||||
namespace dawn::platform {
|
||||
class Platform;
|
||||
} // namespace dawn_platform
|
||||
} // namespace dawn::platform
|
||||
|
||||
namespace wgpu {
|
||||
struct AdapterProperties;
|
||||
@@ -193,7 +193,7 @@ namespace dawn_native {
|
||||
// Enable debug capture on Dawn startup
|
||||
void EnableBeginCaptureOnStartup(bool beginCaptureOnStartup);
|
||||
|
||||
void SetPlatform(dawn_platform::Platform* platform);
|
||||
void SetPlatform(dawn::platform::Platform* platform);
|
||||
|
||||
// Returns the underlying WGPUInstance object.
|
||||
WGPUInstance Get() const;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <dawn/webgpu.h>
|
||||
|
||||
namespace dawn_platform {
|
||||
namespace dawn::platform {
|
||||
|
||||
enum class TraceCategory {
|
||||
General, // General trace events
|
||||
@@ -111,6 +111,8 @@ namespace dawn_platform {
|
||||
Platform& operator=(const Platform&) = delete;
|
||||
};
|
||||
|
||||
} // namespace dawn_platform
|
||||
} // namespace dawn::platform
|
||||
|
||||
namespace dawn_platform = dawn::platform;
|
||||
|
||||
#endif // DAWNPLATFORM_DAWNPLATFORM_H_
|
||||
|
||||
Reference in New Issue
Block a user