mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
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:
parent
305721d0e8
commit
e312f7ee4a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user