[cogl material] optimize logging of material colors in the journal
authorRobert Bragg <robert@linux.intel.com>
Thu, 4 Jun 2009 13:23:16 +0000 (14:23 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 30 Jun 2009 16:13:35 +0000 (17:13 +0100)
commitaca1bf4329481cedfd8ffa65591338662c6d626a
tree8311345600247c694d6816f00a7a7674d0812bc2
parent938452f1b1109e7c8daff8f49c4f0a45a13be25f
[cogl material] optimize logging of material colors in the journal

We now put the color of materials into the vertex array used by the journal
instead of calling glColor() but the number of requests for the material
color were quite expensive so we have changed the material color to
internally be byte components instead of floats to avoid repeat conversions
and added _cogl_material_get_colorubv as a fast-path for the journal to
copy data into the vertex array.
clutter/cogl/common/cogl-material-private.h
clutter/cogl/common/cogl-material.c
clutter/cogl/common/cogl-primitives.c
clutter/cogl/gles/cogl-gles2-wrapper.c
clutter/cogl/gles/cogl-gles2-wrapper.h