Mir
mir_native_buffer.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2012 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by:
17  * Kevin DuBois <kevin.dubois@canonical.com>
18  */
19 
20 #ifndef MIR_CLIENT_MIR_NATIVE_BUFFER_H_
21 #define MIR_CLIENT_MIR_NATIVE_BUFFER_H_
22 
23 enum { mir_buffer_package_max = 30 };
24 
25 typedef enum
26 {
29 
30 typedef struct MirBufferPackage
31 {
33  int fd_items;
34 
36 
37  int width; /* These must come after data[] to keep ABI compatibility */
38  int height;
39 
41 
42  int unused0; /* Retain ABI compatibility (avoid rebuilding Mesa) */
43 
44  unsigned int flags; /* MirBufferFlag's */
45  int stride;
46  int age;
50 
51 #ifdef ANDROID
52 struct ANativeWindowBuffer;
53 typedef struct ANativeWindowBuffer MirNativeBuffer;
54 #else
56 #endif
57 #endif /* MIR_CLIENT_MIR_NATIVE_BUFFER_H_ */
int fd_items
Definition: mir_native_buffer.h:33
int age
Number of frames submitted by the client since the client has rendered to this buffer.
Definition: mir_native_buffer.h:46
int data[mir_buffer_package_max]
Definition: mir_native_buffer.h:35
Definition: mir_native_buffer.h:30
struct MirBufferPackage MirBufferPackage
unsigned int flags
Definition: mir_native_buffer.h:44
int unused0
Definition: mir_native_buffer.h:42
MirBufferFlag
Definition: mir_native_buffer.h:25
int stride
Definition: mir_native_buffer.h:45
int fd[mir_buffer_package_max]
Definition: mir_native_buffer.h:40
Definition: mir_native_buffer.h:23
int height
Definition: mir_native_buffer.h:38
Definition: mir_native_buffer.h:27
int width
Definition: mir_native_buffer.h:37
int data_items
Definition: mir_native_buffer.h:32

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015