• Ell's avatar
    buffer: use empty tiles when filling buffer with 0-valued color · b2345ad0
    Ell authored
    In gegl_buffer_set_color_from_pixel(), if the pixel data, after
    conversion to the buffer format, is fully zeroed, use clones of the
    global empty tile for filling whole tiles, instead of creating a
    new 0-filled tile.  This allows us to share memory with the global
    empty tile, and makes uncloning the affected tiles more efficient.
    
    Note that we deliberately don't just clear the corresponding area
    of the buffer in this case, and make sure that there are actual
    empty tiles in the requested area, to stay on the safe side (mostly
    w.r.t. user-provided tile handlers, which may create non-zero tiles
    when the underlying handler returns a NULL tile).
    b2345ad0
Name
Last commit
Last update
bin Loading commit data...
build/buildbot Loading commit data...
docs Loading commit data...
examples Loading commit data...
gcut Loading commit data...
gegl Loading commit data...
libs Loading commit data...
m4 Loading commit data...
opencl Loading commit data...
operations Loading commit data...
perf Loading commit data...
po Loading commit data...
seamless-clone Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.kateconfig Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
HACKING Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gegl-uninstalled.pc.in Loading commit data...
gegl.doap Loading commit data...
gegl.pc.in Loading commit data...