shadow cache: Remove outdated comments
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 21:06:39 +0000 (17:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 21:06:39 +0000 (17:06 -0400)
No comments are better than outdated comments.

gsk/gl/gskglshadowcache.c

index d2a5010a80efc350ccd84553a1c04aefe2aa2762..537989b8051b6965379d3f157ef0e40615b4e750 100644 (file)
@@ -1,7 +1,7 @@
 
 #include "gskglshadowcacheprivate.h"
 
-#define MAX_UNUSED_FRAMES (16 * 5) /* 5 seconds? */
+#define MAX_UNUSED_FRAMES (16 * 5)
 
 typedef struct
 {
@@ -62,9 +62,6 @@ gsk_gl_shadow_cache_begin_frame (GskGLShadowCache *self,
 {
   guint i, p;
 
-  /* We remove all textures with used = FALSE since those have not been used in the
-   * last frame. For all others, we reset the `used` value to FALSE instead and see
-   * if they end up with TRUE in the next call to begin_frame. */
   for (i = 0, p = self->textures->len; i < p; i ++)
     {
       CacheItem *item = &g_array_index (self->textures, CacheItem, i);