Rename Surface::Type::Xlib to XlibWindow for consistency.
Bug: None Change-Id: I2750c2fc86cc893d6f124cf7d539a85458bd4105 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/84761 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:
parent
fd41f30c0b
commit
982188ac16
|
@ -35,6 +35,9 @@ namespace dawn::native {
|
|||
const absl::FormatConversionSpec& spec,
|
||||
absl::FormatSink* s) {
|
||||
switch (value) {
|
||||
case Surface::Type::AndroidWindow:
|
||||
s->Append("AndroidWindow");
|
||||
break;
|
||||
case Surface::Type::MetalLayer:
|
||||
s->Append("MetalLayer");
|
||||
break;
|
||||
|
@ -47,11 +50,8 @@ namespace dawn::native {
|
|||
case Surface::Type::WindowsSwapChainPanel:
|
||||
s->Append("WindowsSwapChainPanel");
|
||||
break;
|
||||
case Surface::Type::Xlib:
|
||||
s->Append("Xlib");
|
||||
break;
|
||||
case Surface::Type::AndroidWindow:
|
||||
s->Append("AndroidWindow");
|
||||
case Surface::Type::XlibWindow:
|
||||
s->Append("XlibWindow");
|
||||
break;
|
||||
}
|
||||
return {true};
|
||||
|
@ -190,7 +190,7 @@ namespace dawn::native {
|
|||
mSwapChainPanel = static_cast<IUnknown*>(swapChainPanelDesc->swapChainPanel);
|
||||
#endif // defined(DAWN_PLATFORM_WINDOWS)
|
||||
} else if (xDesc) {
|
||||
mType = Type::Xlib;
|
||||
mType = Type::XlibWindow;
|
||||
mXDisplay = xDesc->display;
|
||||
mXWindow = xDesc->window;
|
||||
} else {
|
||||
|
@ -259,11 +259,11 @@ namespace dawn::native {
|
|||
}
|
||||
|
||||
void* Surface::GetXDisplay() const {
|
||||
ASSERT(mType == Type::Xlib);
|
||||
ASSERT(mType == Type::XlibWindow);
|
||||
return mXDisplay;
|
||||
}
|
||||
uint32_t Surface::GetXWindow() const {
|
||||
ASSERT(mType == Type::Xlib);
|
||||
ASSERT(mType == Type::XlibWindow);
|
||||
return mXWindow;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace dawn::native {
|
|||
WindowsHWND,
|
||||
WindowsCoreWindow,
|
||||
WindowsSwapChainPanel,
|
||||
Xlib
|
||||
XlibWindow,
|
||||
};
|
||||
Type GetType() const;
|
||||
InstanceBase* GetInstance();
|
||||
|
|
|
@ -159,7 +159,7 @@ namespace dawn::native::vulkan {
|
|||
#endif // defined(DAWN_PLATFORM_ANDROID)
|
||||
|
||||
#if defined(DAWN_USE_X11)
|
||||
case Surface::Type::Xlib: {
|
||||
case Surface::Type::XlibWindow: {
|
||||
if (info.HasExt(InstanceExt::XlibSurface)) {
|
||||
VkXlibSurfaceCreateInfoKHR createInfo;
|
||||
createInfo.sType = VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
|
||||
|
|
Loading…
Reference in New Issue