glamor: Reduce source or mask picture size if possible.
If we only need a short part of the source or mask's drawable pixmap, we can convert it to a new small picture before call to the low level compositing function. Then it will only upload the smaller picture latter. Signed-off-by: Zhigang Gong <firstname.lastname@example.org>
Showing with 127 additions and 17 deletions