-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a helper wpe_fdo_rect type for damage regions
Instead of a series of groups of four integer values, group each damage entry in a wpe_fdo_rect instance, which defines a rectangle explicitly documented to use the origin of coordinates at the top-left corner of exported images. This approach is more readable, uses the same amount of memory, allows defining the wpe_fdo_egl_exported_image_get_damage_regions() function in a more idiomatic way (returning pointer to rect array, and receiving a pointer where to store the number of entries), simplifies the code that returns the damage rectangle list, and also the code that stores a damage rectangle (also improved by using emplace+move). While at it, document wpe_fdo_egl_exported_image_get_damage_regions() and the new wpe_fdo_rect type.
- Loading branch information
Showing
4 changed files
with
89 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters