material: Adds a simple material age getter
authorRobert Bragg <robert@linux.intel.com>
Thu, 27 May 2010 14:19:15 +0000 (15:19 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
commitb5bd76cde176ef88efd3b4f3107e44f3aff2591a
tree9587ff03ed7f7c811b8d31c10bed48ac636c74bf
parent634bcb34f98725deadea7777f0ab41071d009ecb
material: Adds a simple material age getter

When we add support for weak materials it's expected that Clutter will
want to attach them as private data to other materials and it needs a
mechanism to determine when a weak material should be re-created because
its parent has changed somehow.

This adds the concept of a material age (internal only currently) which
increments whenever a material is modified. Clutter can then save the
age of the material which its weak materials are derived from and later
determine when the weak material may be invalid.
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c