summaryrefslogtreecommitdiff
path: root/chromium/tools/v8_context_snapshot/qt_overrides.cc
blob: 4cfea5bf51a6646af9b3d5fed692bccae4f7a218 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Copyright (C) 2023 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

#include "build/build_config.h"
#include "gpu/vulkan/buildflags.h"

#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_display.h"
#include "ui/gl/gl_surface.h"

#if BUILDFLAG(IS_LINUX)
#include "ui/gl/gl_surface_egl.h"
#include "ui/gl/gl_surface_glx.h"
#endif

#include "ui/base/dragdrop/os_exchange_data_provider_factory.h"
#include "ui/base/pointer/pointer_device.h"
#include "ui/base/resource/resource_bundle.h"

#if BUILDFLAG(ENABLE_VULKAN)
#include "gpu/vulkan/init/vulkan_factory.h"
#endif

#if BUILDFLAG(IS_LINUX)
void* GetQtXDisplay() {
  return nullptr;
}

namespace gl {
DisplayType GLDisplayEGL::GetDisplayType() const {
  return DisplayType::DEFAULT;
}
GLDisplayEGL* GLSurfaceEGL::GetGLDisplayEGL() {
  return nullptr;
}
GLDisplayEGL* GLDisplayEGL::GetDisplayForCurrentContext() {
  return nullptr;
}
bool GLDisplayEGL::IsAndroidNativeFenceSyncSupported() {
  return false;
}
bool GLDisplayEGL::IsEGLContextPrioritySupported() {
  return false;
}
bool GLDisplayEGL::InitializeExtensionSettings() {
  return false;
}
bool GLSurfaceGLX::IsCreateContextRobustnessSupported() {
  return false;
}
bool GLSurfaceGLX::IsRobustnessVideoMemoryPurgeSupported() {
  return false;
}
bool GLSurfaceGLX::IsCreateContextProfileSupported() {
  return false;
}
bool GLSurfaceGLX::IsCreateContextES2ProfileSupported() {
  return false;
}
bool GLSurfaceGLX::IsCreateContextSupported() {
  return false;
}
bool GLSurfaceGLX::InitializeExtensionSettingsOneOff() {
  return false;
}
std::string DisplayExtensionsEGL::GetPlatformExtensions(EGLDisplay) {
  return std::string();
}
}  // namespace gl
#endif  // BUILDFLAG(IS_LINUX)

#if BUILDFLAG(IS_WIN)
namespace gl {
class GLShareGroup;
class GLContextAttribs;
namespace init {

scoped_refptr<GLContext> CreateGLContext(GLShareGroup* share_group,
                                         GLSurface* compatible_surface,
                                         const GLContextAttribs& attribs) {
  return nullptr;
}
GLDisplay* InitializeGLOneOffPlatform(uint64_t system_device_id) {
  return nullptr;
}
bool usingSoftwareDynamicGL() {
  return false;
}
scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat(
    GLDisplay* display,
    const gfx::Size& size,
    GLSurfaceFormat format) {
  return nullptr;
}
scoped_refptr<GLSurface> CreateViewGLSurface(GLDisplay* display,
                                             gfx::AcceleratedWidget window) {
  return nullptr;
}
}  // namespace init
}  // namespace gl

#endif  // BUILDFLAG(IS_WIN)

namespace ui {
class OzonePlatform;
OzonePlatform* CreateOzonePlatformQt() {
  return nullptr;
}
std::unique_ptr<OSExchangeDataProvider>
OSExchangeDataProviderFactory::CreateProvider() {
  return nullptr;
}
bool ResourceBundle::LocaleDataPakExists(const std::string& locale) {
  return false;
}
std::string ResourceBundle::LoadLocaleResources(const std::string& pref_locale,
                                                bool crash_on_failure) {
  return std::string();
}
void ResourceBundle::LoadCommonResources() {}
int GetAvailablePointerTypes() {
  return POINTER_TYPE_NONE;
}
int GetAvailableHoverTypes() {
  return HOVER_TYPE_NONE;
}
gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
  return GetImageNamed(resource_id);
}

namespace gfx {
class ClientNativePixmapFactory;
}
gfx::ClientNativePixmapFactory* CreateClientNativePixmapFactoryQt() {
  return nullptr;
}
}  // namespace ui

#if BUILDFLAG(ENABLE_VULKAN)
namespace gpu {
std::unique_ptr<VulkanImplementation> CreateVulkanImplementation(
    bool use_swiftshader,
    bool allow_protected_memory) {
  return nullptr;
}
}
#endif  // BUILDFLAG(ENABLE_VULKAN)