]> git.eshelyaron.com Git - emacs.git/commit
image-cache-size improvements
authorMattias Engdegård <mattiase@acm.org>
Sat, 19 Dec 2020 15:47:32 +0000 (16:47 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 20 Dec 2020 17:17:17 +0000 (18:17 +0100)
commit409a9dbe9da64b4d75fec1f511e168c94e60e35b
tree467c1432c21840d47d1eaa1574585d931bf0b62c
parent87b82a1969edf80d3bd4781454ec9fc968773a6d
image-cache-size improvements

Implement for non-Cairo X11 and NS.  Count masks as well, and
XImage objects on X11.

* src/image.c (image_size_in_bytes): New.
(image_frame_cache_size): Use image_size_in_bytes.
* src/nsterm.h:
* src/nsimage.m (ns_image_size_in_bytes, [EmacsImage sizeInBytes]):
New function and method.
* src/w32gui.h:
* src/w32term.c (w32_image_size): Update signature.
src/image.c
src/nsimage.m
src/nsterm.h
src/w32gui.h
src/w32term.c