Pattern/GL: Avoid texture creation for radial gradients 29/54129/4
authornisanthmp <nisanth.mp@samsung.com>
Wed, 2 Dec 2015 07:27:34 +0000 (12:57 +0530)
committernisanthmp <nisanth.mp@samsung.com>
Fri, 18 Dec 2015 07:50:33 +0000 (13:20 +0530)
commit629101d0a6e2af32727ca0b14acaceddb0897e6c
tree9c6820465caf673ca40d5b1a9f91c1cd90dd003a
parentca3e6d75aaf63e5f77bc31975d77a20cbc5407ca
Pattern/GL: Avoid texture creation for radial gradients
with 2 color stops

When there are only two color stops in the gradient, we can avoid
creating textures before hand, and directly calculate the gradient color
in the fragment shader. This speeds up gradient pattern rendering.

Change-Id: I758b7bc8f37293edbe546fcc4a55f71a7f3c55ae
Signed-off-by: nisanthmp <nisanth.mp@samsung.com>
src/cairo-gl-gradient-private.h
src/cairo-gl-gradient.c
src/cairo-gl-operand.c
src/cairo-gl-private.h
src/cairo-gl-shaders.c