[clutter] debug: Remove CLUTTER_MARK
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] debug: Remove CLUTTER_MARK
- Date: Fri, 18 Nov 2011 17:46:44 +0000 (UTC)
commit 2d76407016075df8f3b12ffb4429c37ae33ccd33
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Nov 18 17:30:39 2011 +0000
debug: Remove CLUTTER_MARK
The debug macro is seldom used, and it's a bit lame at that.
clutter/clutter-debug.h | 3 ---
clutter/clutter-main.c | 4 ----
clutter/clutter-texture.c | 8 --------
3 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/clutter/clutter-debug.h b/clutter/clutter-debug.h
index a49812c..eb4bd36 100644
--- a/clutter/clutter-debug.h
+++ b/clutter/clutter-debug.h
@@ -71,8 +71,6 @@ typedef enum {
} } G_STMT_END
#endif
-#define CLUTTER_MARK() CLUTTER_NOTE(MISC, "== mark ==")
-
#define CLUTTER_GLERR() G_STMT_START { \
if (clutter_debug_flags & CLUTTER_DEBUG_GL) { \
GLenum _err = glGetError (); /* roundtrip */ \
@@ -84,7 +82,6 @@ typedef enum {
#else /* !CLUTTER_ENABLE_DEBUG */
#define CLUTTER_NOTE(type,...) G_STMT_START { } G_STMT_END
-#define CLUTTER_MARK() G_STMT_START { } G_STMT_END
#define CLUTTER_GLERR() G_STMT_START { } G_STMT_END
#define CLUTTER_HAS_DEBUG(type) FALSE
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 59558a8..90ec414 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -927,8 +927,6 @@ clutter_main (void)
return;
}
- CLUTTER_MARK ();
-
clutter_main_loop_level++;
#ifdef CLUTTER_ENABLE_PROFILE
@@ -955,8 +953,6 @@ clutter_main (void)
clutter_main_loop_level--;
- CLUTTER_MARK ();
-
if (clutter_main_loop_level == 0)
CLUTTER_TIMER_STOP (uprof_get_mainloop_context (), mainloop_timer);
}
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
index cc1fc3c..d736f8c 100644
--- a/clutter/clutter-texture.c
+++ b/clutter/clutter-texture.c
@@ -220,8 +220,6 @@ texture_free_gl_resources (ClutterTexture *texture)
{
ClutterTexturePrivate *priv = texture->priv;
- CLUTTER_MARK();
-
if (priv->material != COGL_INVALID_HANDLE)
{
/* We want to keep the layer so that the filter settings will
@@ -243,8 +241,6 @@ clutter_texture_unrealize (ClutterActor *actor)
if (priv->material == COGL_INVALID_HANDLE)
return;
- CLUTTER_MARK();
-
if (priv->fbo_source != NULL)
{
/* Free up our fbo handle and texture resources, realize will recreate */
@@ -266,8 +262,6 @@ clutter_texture_realize (ClutterActor *actor)
texture = CLUTTER_TEXTURE(actor);
priv = texture->priv;
- CLUTTER_MARK();
-
if (priv->fbo_source)
{
CoglTextureFlags flags = COGL_TEXTURE_NONE;
@@ -2610,8 +2604,6 @@ texture_fbo_free_resources (ClutterTexture *texture)
priv = texture->priv;
- CLUTTER_MARK();
-
if (priv->fbo_source != NULL)
{
/* If we parented the texture then unparent it again so that it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]