mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
0087910574
This adds a cache (A GHashTable) of ARBfp programs and before ever starting to code-generate a new program we will always first try and find an existing program in the cache. This uses _cogl_pipeline_hash and _cogl_pipeline_equal to hash and compare the keys for the cache. There is a new COGL_DEBUG=disable-program-caches option that can disable the cache for debugging purposes.
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2010 Intel Corporation.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
*
|
|
* Authors:
|
|
* Robert Bragg <robert@linux.intel.com>
|
|
*/
|
|
|
|
#ifndef __COGL_PIPELINE_ARBFP_PRIVATE_H
|
|
#define __COGL_PIPELINE_ARBFP_PRIVATE_H
|
|
|
|
#include "cogl-pipeline-private.h"
|
|
|
|
extern const CoglPipelineBackend _cogl_pipeline_arbfp_backend;
|
|
|
|
unsigned int
|
|
_cogl_pipeline_arbfp_hash (const void *pipeline);
|
|
|
|
gboolean
|
|
_cogl_pipeline_arbfp_equal (const void *pipeline0, const void *pipeline1);
|
|
|
|
#endif /* __COGL_PIPELINE_ARBFP_PRIVATE_H */
|
|
|