mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
shadow cache: Remove outdated comments
No comments are better than outdated comments.
This commit is contained in:
parent
e9ba7eda47
commit
e46a7ca706
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
#include "gskglshadowcacheprivate.h"
|
#include "gskglshadowcacheprivate.h"
|
||||||
|
|
||||||
#define MAX_UNUSED_FRAMES (16 * 5) /* 5 seconds? */
|
#define MAX_UNUSED_FRAMES (16 * 5)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -62,9 +62,6 @@ gsk_gl_shadow_cache_begin_frame (GskGLShadowCache *self,
|
|||||||
{
|
{
|
||||||
guint i, p;
|
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 ++)
|
for (i = 0, p = self->textures->len; i < p; i ++)
|
||||||
{
|
{
|
||||||
CacheItem *item = &g_array_index (self->textures, CacheItem, i);
|
CacheItem *item = &g_array_index (self->textures, CacheItem, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user