diff options
author | wm4 <wm4@nowhere> | 2015-01-22 18:29:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-22 18:31:10 +0100 |
commit | 5bb24980ae3a111cb7b905631c3fc7e79ca84ccc (patch) | |
tree | c953ad84e692cb86b8e0e21fe793847c46a6a37a /video/out/wayland_common.h | |
parent | 16cc429eb8ba74da9a774186e25b171e416d99a6 (diff) | |
download | mpv-5bb24980ae3a111cb7b905631c3fc7e79ca84ccc.tar.bz2 mpv-5bb24980ae3a111cb7b905631c3fc7e79ca84ccc.tar.xz |
vo_opengl: simplify screenshot code
Instead of reading back the image from textures, keep a reference to the
original image, and return that.
The main reason this was done this way was that originally, images
weren't refcounted, and would be deallocated or overwritten as soon as
the VO's draw call returned. But now there isn't really a good reason
for this anymore. One possibly _could_ argue that it was better because
other code could reuse the image sooner (e.g. for the cache), but on the
other hand, the VO runs already on a different thread, and filtering and
decoding each run on other threads too, so this argument probably
wouldn't hold up.
Diffstat (limited to 'video/out/wayland_common.h')
0 files changed, 0 insertions, 0 deletions