[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs canvas support
From: |
Stefan Monnier |
Subject: |
Re: Emacs canvas support |
Date: |
Thu, 30 Apr 2020 10:37:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> I think it would make more sense to treat the overlaid canvas as
>> a completely separate pixmap: when we get an request to redraw
>> a particular area of the screen, we'd ask the current redisplay code to
>> redraw the corresponding text content and then we'd ask the canvas code
>> to draw on top of it.
>
> Unfortunately, most redisplay cycles don't start from a request to
> redraw a particular area of the screen.
I don't think it makes a big difference. Upon redisplay, the
glyph-matrix layer will compute which parts of the window needs updates
in the that layer (exactly like it currently does), and the canvas will
do its own computation of which part of it needs updating (presumably
this will be handled by the external canvas library such as Cairo's
rather than by Emacs's own code) and then the compositing layer will
figure out how to combine those two changes. IIUC libraries like Cairo
already provide functionality to do compositing of layers, so that would
take care of that part as well.
Stefan
- Re: Emacs canvas support, (continued)
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/29
- Re: Emacs canvas support, tomas, 2020/04/29
- Re: Emacs canvas support, Stefan Monnier, 2020/04/29
- Re: Emacs canvas support, tomas, 2020/04/30
- Re: Emacs canvas support, Stefan Monnier, 2020/04/30
- Re: Emacs canvas support, tomas, 2020/04/30
- Re: Emacs canvas support, Po Lu, 2020/04/30
- Re: Emacs canvas support, Stefan Monnier, 2020/04/30
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- Re: Emacs canvas support,
Stefan Monnier <=
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- Re: Emacs canvas support, Stefan Monnier, 2020/04/30
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- RE: Emacs canvas support, Drew Adams, 2020/04/30
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- Re: Emacs canvas support, Arthur Miller, 2020/04/30
- Re: Emacs canvas support, David Engster, 2020/04/29
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/30
- Re: Emacs canvas support, Corwin Brust, 2020/04/30
- Re: Emacs canvas support, Eli Zaretskii, 2020/04/29