summaryrefslogtreecommitdiffstats
path: root/src/core/compositor/content_gpu_client_qt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/compositor/content_gpu_client_qt.h')
-rw-r--r--src/core/compositor/content_gpu_client_qt.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/core/compositor/content_gpu_client_qt.h b/src/core/compositor/content_gpu_client_qt.h
new file mode 100644
index 000000000..33314e0bb
--- /dev/null
+++ b/src/core/compositor/content_gpu_client_qt.h
@@ -0,0 +1,29 @@
+// Copyright (C) 2018 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 CONTENT_GPU_CLIENT_QT_H
+#define CONTENT_GPU_CLIENT_QT_H
+
+#include "content/public/gpu/content_gpu_client.h"
+
+namespace gl {
+class GLShareGroup;
+}
+
+namespace QtWebEngineCore {
+class ShareGroupQt;
+
+class ContentGpuClientQt : public content::ContentGpuClient {
+public:
+ explicit ContentGpuClientQt();
+ ~ContentGpuClientQt() override;
+
+ // content::ContentGpuClient implementation.
+ gl::GLShareGroup *GetInProcessGpuShareGroup() override;
+
+private:
+ scoped_refptr<ShareGroupQt> m_shareGroupQt;
+};
+
+}
+
+#endif // CONTENT_GPU_CLIENT_QT_H