]> git.mdlowis.com Git - proto/labwc.git/commit
scaled-scene-buffer: implement buffer sharing mechanism
authortokyo4j <hrak1529@gmail.com>
Mon, 18 Nov 2024 20:03:26 +0000 (05:03 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 21 Nov 2024 20:31:41 +0000 (20:31 +0000)
commitc893878aca7fe30d85c3a2a5cde78322c1fdd25a
treea6af88ab65f67d4161547636b2d11fe23d77a2cd
parentf0714312661073c7b809c886ab078f48f4ce3ac9
scaled-scene-buffer: implement buffer sharing mechanism

Implementers can define impl->equal() which compares two
scaled-scene-buffers so that buffers are not allocated for visually
duplicated scaled-scene-buffers.

Currently this mechanism isn't applied for scaled-font-buffers since we
haven't defined impl->equal() for it.
include/common/scaled-scene-buffer.h
src/common/scaled-font-buffer.c
src/common/scaled-scene-buffer.c