diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-29 21:13:22 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-29 21:13:22 +1000 |
commit | 3a6ed5110c76ef5bed8cc4c26a97759f6201eaac (patch) | |
tree | a24798e2e0954daef195806b01938ec8a8bbcaed /include | |
parent | Merge remote-tracking branch 'upstream/master' into atomic (diff) | |
download | sway-3a6ed5110c76ef5bed8cc4c26a97759f6201eaac.tar.gz sway-3a6ed5110c76ef5bed8cc4c26a97759f6201eaac.tar.zst sway-3a6ed5110c76ef5bed8cc4c26a97759f6201eaac.zip |
Render saved buffers with the surface's dimensions
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/desktop/transaction.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h index fcfed297..7ab80eb8 100644 --- a/include/sway/desktop/transaction.h +++ b/include/sway/desktop/transaction.h | |||
@@ -52,11 +52,16 @@ void transaction_notify_view_ready_by_size(struct sway_view *view, | |||
52 | int width, int height); | 52 | int width, int height); |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * Get the texture that should be rendered for a view. | 55 | * Get the saved texture that should be rendered for a view. |
56 | * | 56 | * |
57 | * In most cases this will return the normal live texture for a view, but if the | 57 | * The addresses pointed at by the width and height pointers will be populated |
58 | * view is in a transaction then it'll return a saved texture. | 58 | * with the surface's dimensions, which may be different to the texture's |
59 | * dimensions if output scaling is used. | ||
60 | * | ||
61 | * This function should only be called if it is known that the view has | ||
62 | * instructions. | ||
59 | */ | 63 | */ |
60 | struct wlr_texture *transaction_get_texture(struct sway_view *view); | 64 | struct wlr_texture *transaction_get_saved_texture(struct sway_view *view, |
65 | int *width, int *height); | ||
61 | 66 | ||
62 | #endif | 67 | #endif |