diff options
author | Alan Third <alan@idiocy.org> | 2020-12-16 21:12:04 +0000 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2021-01-01 22:41:26 +0000 |
commit | 107978365e17ede02d85b52fcbd99512dcc87428 (patch) | |
tree | 8762b5d7634d86f46634ccbd7833258c53cca0f5 /test/lisp/emacs-lisp/seq-tests.el | |
parent | aac17c9dca21462df57367123301b7c940f9243a (diff) | |
download | emacs-107978365e17ede02d85b52fcbd99512dcc87428.tar.gz emacs-107978365e17ede02d85b52fcbd99512dcc87428.tar.bz2 emacs-107978365e17ede02d85b52fcbd99512dcc87428.zip |
Improve drawing performance on macOS
* configure.ac: Require IOSurface framework.
* src/nsterm.h: New EmacsSurface class and update EmacsView
definitions.
* src/nsterm.m (ns_update_end):
(ns_unfocus): Use new unfocusDrawingBuffer method.
(ns_draw_window_cursor): Move ns_focus to before we set colors.
([EmacsView dealloc]):
([EmacsView viewDidResize:]): Handle new EmacsSurface class.
([EmacsView initFrameFromEmacs:]): Remove reference to old method.
([EmacsView createDrawingBuffer]): Remove method.
([EmacsView focusOnDrawingBuffer]):
([EmacsView windowDidChangeBackingProperties:]): Use new EmacsSurface
class.
([EmacsView unfocusDrawingBuffer]): New method.
([EmacsView copyRect:to:]): Get information from the context instead
of direct from the IOSurface.
([EmacsView updateLayer]): Use new EmacsSurface class.
([EmacsView copyRect:to:]): Use memcpy to copy bits around instead of
using NS image functions.
([EmacsSurface initWithSize:ColorSpace:]):
([EmacsSurface dealloc]):
([EmacsSurface getSize]):
([EmacsSurface getContext]):
([EmacsSurface releaseContext]):
([EmacsSurface getSurface]):
([EmacsSurface copyContentsTo:]): New class and methods.
Diffstat (limited to 'test/lisp/emacs-lisp/seq-tests.el')
0 files changed, 0 insertions, 0 deletions