blob: bfcfa014bfec7b2fe6140504013c890bbb32e1f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef SURFACE_FACTORY_QT
#define SURFACE_FACTORY_QT
#if defined(USE_OZONE)
#include "ui/ozone/public/surface_factory_ozone.h"
namespace QtWebEngineCore {
class SurfaceFactoryQt : public ui::SurfaceFactoryOzone
{
public:
SurfaceFactoryQt();
std::vector<gl::GLImplementationParts> GetAllowedGLImplementations() override;
ui::GLOzone *GetGLOzone(const gl::GLImplementationParts &implementation) override;
#if BUILDFLAG(ENABLE_VULKAN)
std::unique_ptr<gpu::VulkanImplementation>
CreateVulkanImplementation(bool allow_protected_memory, bool enforce_protected_memory) override;
#endif
private:
std::vector<gl::GLImplementationParts> m_impl;
std::unique_ptr<ui::GLOzone> m_ozone;
};
} // namespace QtWebEngineCore
#endif // defined(USE_OZONE)
#endif // SURFACE_FACTORY_QT
|