mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibGfx: Use same order for macOS and Vulkan specific code
No functional changes.
This commit is contained in:
parent
4fbeea6482
commit
1d81c4d8eb
Notes:
github-actions[bot]
2025-01-31 12:29:33 +00:00
Author: https://github.com/gmta
Commit: 1d81c4d8eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3400
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 25 additions and 26 deletions
|
@ -9,14 +9,14 @@
|
|||
#include <AK/Noncopyable.h>
|
||||
#include <AK/RefCounted.h>
|
||||
|
||||
#ifdef AK_OS_MACOS
|
||||
# include <LibGfx/MetalContext.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_VULKAN
|
||||
# include <LibGfx/VulkanContext.h>
|
||||
#endif
|
||||
|
||||
#ifdef AK_OS_MACOS
|
||||
# include <LibGfx/MetalContext.h>
|
||||
#endif
|
||||
|
||||
class GrDirectContext;
|
||||
class SkSurface;
|
||||
|
||||
|
@ -30,11 +30,11 @@ class SkiaBackendContext : public RefCounted<SkiaBackendContext> {
|
|||
|
||||
public:
|
||||
#ifdef USE_VULKAN
|
||||
static RefPtr<SkiaBackendContext> create_vulkan_context(Gfx::VulkanContext&);
|
||||
static RefPtr<SkiaBackendContext> create_vulkan_context(VulkanContext&);
|
||||
#endif
|
||||
|
||||
#ifdef AK_OS_MACOS
|
||||
static RefPtr<Gfx::SkiaBackendContext> create_metal_context(MetalContext&);
|
||||
static RefPtr<SkiaBackendContext> create_metal_context(MetalContext&);
|
||||
#endif
|
||||
|
||||
SkiaBackendContext() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue