Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
brcmbuffer.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "brcmbuffer.h"
5
6#include <EGL/eglext.h>
7
8#include <EGL/eglext_brcm.h>
9
11
12BrcmBuffer::BrcmBuffer(struct ::wl_client *client, uint32_t id, const QSize &size, EGLint *data, size_t count)
13 : QtWaylandServer::wl_buffer(client, id, 1)
14 , m_handle(count)
15 , m_size(size)
16{
17 for (size_t i = 0; i < count; ++i)
18 m_handle[i] = data[i];
19}
20
22{
23 static PFNEGLDESTROYGLOBALIMAGEBRCMPROC eglDestroyGlobalImage =
24 (PFNEGLDESTROYGLOBALIMAGEBRCMPROC) eglGetProcAddress("eglDestroyGlobalImageBRCM");
25 eglDestroyGlobalImage(handle());
26}
27
29{
30 delete this;
31}
32
33void BrcmBuffer::buffer_destroy(Resource *resource)
34{
35 wl_resource_destroy(resource->handle);
36}
37
BrcmBuffer(struct ::wl_client *client, uint32_t id, const QSize &size, EGLint *data, size_t count)
void buffer_destroy_resource(Resource *resource) override
void buffer_destroy(Resource *resource) override
EGLint * handle()
Definition brcmbuffer.h:26
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint id
[7]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data