new glx: initial implementation
This is basically just adapting old code to the new interface. A lot of the functions are still stubs, but the basic stuffs is working. What remains to be done: * Implement gl_image_op. (It should do the operation lazily, only update the flags on the texture. Actual processing will be delayed until composition.) * Implement gl_copy. Now it just return the same image after incrementing the refcount. It should actually copy the image data structure so it can have a separate set of flags. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@@ -125,7 +125,7 @@ struct backend_operations {
|
||||
|
||||
/// Free resources associated with an image data structure
|
||||
void (*release_image)(backend_t *backend_data, void *img_data)
|
||||
__attribute__((nonnull(1, 2)));
|
||||
attr_nonnull(1, 2);
|
||||
|
||||
// =========== Query ===========
|
||||
|
||||
@@ -136,7 +136,7 @@ struct backend_operations {
|
||||
/// window (e.g. when using a custom shader with the glx backend), so we only now
|
||||
/// the transparency after the window is rendered
|
||||
bool (*is_image_transparent)(backend_t *backend_data, void *image_data)
|
||||
__attribute__((nonnull(1, 2)));
|
||||
attr_nonnull(1, 2);
|
||||
|
||||
/// Get the age of the buffer content we are currently rendering ontop
|
||||
/// of. The buffer that has just been `present`ed has a buffer age of 1.
|
||||
|
||||
Reference in New Issue
Block a user