File tree 2 files changed +199
-144
lines changed
2 files changed +199
-144
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#define EGL_PLATFORM_GBM_KHR 0x31D7
13
13
14
+ typedef enum {
15
+ kVBlankRequest ,
16
+ kVBlankReply ,
17
+ kFlutterTask
18
+ } flutterpi_task_type ;
19
+
14
20
struct flutterpi_task {
15
21
struct flutterpi_task * next ;
16
- bool is_vblank_event ;
22
+ flutterpi_task_type type ;
17
23
union {
18
24
FlutterTask task ;
19
- drmVBlankReply vbl ;
25
+ struct {
26
+ uint64_t vblank_ns ;
27
+ intptr_t baton ;
28
+ };
20
29
};
21
30
uint64_t target_time ;
22
31
};
23
32
33
+ void post_platform_task (struct flutterpi_task * task );
34
+
24
35
struct drm_fb {
25
36
struct gbm_bo * bo ;
26
37
uint32_t fb_id ;
27
38
};
28
39
40
+ struct pageflip_data {
41
+ struct gbm_bo * releaseable_bo ;
42
+ intptr_t next_baton ;
43
+ };
44
+
29
45
// position & pointer phase of a mouse pointer / multitouch slot
30
46
// A 10-finger multi-touch display has 10 slots and each of them have their own position, tracking id, etc.
31
47
// All mouses / touchpads share the same mouse pointer.
You can’t perform that action at this time.
0 commit comments