material: Adds arbfp compile counter

This adds a uprof counter to track how many ARBfp programs get compiled
by an application.
This commit is contained in:
Robert Bragg 2010-06-14 23:14:15 +01:00
parent ba067c3da8
commit c506b58ecf

View File

@ -6074,6 +6074,13 @@ _cogl_material_backend_arbfp_end (CoglMaterial *material,
if (priv->source)
{
GLenum gl_error;
COGL_STATIC_COUNTER (backend_arbfp_compile_counter,
"arbfp compile counter",
"Increments each time a new ARBfp "
"program is compiled",
0 /* no application private data */);
COGL_COUNTER_INC (_cogl_uprof_context, backend_arbfp_compile_counter);
g_string_append (priv->source, "MOV result.color,output;\n");
g_string_append (priv->source, "END\n");