diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-04-16 14:14:10 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-08-06 14:27:39 +0100 |
commit | 09642a83b5f036756c7625ade7cf57358396baec (patch) | |
tree | 9eede7db7022ece69e2ab532e283c683b9792b9e /cogl-pango | |
parent | 097d282b324df663e275e1f65ea7b6c65bab87fc (diff) | |
download | cogl-09642a83b5f036756c7625ade7cf57358396baec.tar.gz |
Removes all remaining use of CoglHandle
Removing CoglHandle has been an on going goal for quite a long time now
and finally this patch removes the last remaining uses of the CoglHandle
type and the cogl_handle_ apis.
Since the big remaining users of CoglHandle were the cogl_program_ and
cogl_shader_ apis which have replaced with the CoglSnippets api this
patch removes both of these apis.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit 6ed3aaf4be21d605a1ed3176b3ea825933f85cf0)
Since the original patch was done after removing deprecated API
this back ported patch doesn't affect deprecated API and so
actually this cherry-pick doesn't remove all remaining use of
CoglHandle as it did for the master branch of Cogl.
Diffstat (limited to 'cogl-pango')
-rw-r--r-- | cogl-pango/cogl-pango-glyph-cache.c | 6 | ||||
-rw-r--r-- | cogl-pango/cogl-pango-pipeline-cache.c | 6 | ||||
-rw-r--r-- | cogl-pango/cogl-pango-pipeline-cache.h | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cogl-pango/cogl-pango-glyph-cache.c b/cogl-pango/cogl-pango-glyph-cache.c index 5ddb4acd..b7fb5b04 100644 --- a/cogl-pango/cogl-pango-glyph-cache.c +++ b/cogl-pango/cogl-pango-glyph-cache.c @@ -173,7 +173,7 @@ cogl_pango_glyph_cache_free (CoglPangoGlyphCache *cache) static void cogl_pango_glyph_cache_update_position_cb (void *user_data, - CoglHandle new_texture, + CoglTexture *new_texture, const CoglRectangleMapEntry *rect) { CoglPangoGlyphCacheValue *value = user_data; @@ -204,7 +204,7 @@ cogl_pango_glyph_cache_add_to_global_atlas (CoglPangoGlyphCache *cache, PangoGlyph glyph, CoglPangoGlyphCacheValue *value) { - CoglTexture *texture; + CoglAtlasTexture *texture; if (COGL_DEBUG_ENABLED (COGL_DEBUG_DISABLE_SHARED_ATLAS)) return FALSE; @@ -222,7 +222,7 @@ cogl_pango_glyph_cache_add_to_global_atlas (CoglPangoGlyphCache *cache, if (texture == NULL) return FALSE; - value->texture = texture; + value->texture = COGL_TEXTURE (texture); value->tx1 = 0; value->ty1 = 0; value->tx2 = 1; diff --git a/cogl-pango/cogl-pango-pipeline-cache.c b/cogl-pango/cogl-pango-pipeline-cache.c index 5a2e2ecd..e07d6468 100644 --- a/cogl-pango/cogl-pango-pipeline-cache.c +++ b/cogl-pango/cogl-pango-pipeline-cache.c @@ -54,7 +54,7 @@ struct _CoglPangoPipelineCacheEntry CoglTexture *texture; /* This will only take a weak reference */ - CoglHandle pipeline; + CoglPipeline *pipeline; }; static void @@ -173,7 +173,7 @@ pipeline_destroy_notify_cb (void *user_data) CoglPipeline * _cogl_pango_pipeline_cache_get (CoglPangoPipelineCache *cache, - CoglHandle texture) + CoglTexture *texture) { CoglPangoPipelineCacheEntry *entry; PipelineDestroyNotifyData *destroy_data; @@ -216,7 +216,7 @@ _cogl_pango_pipeline_cache_get (CoglPangoPipelineCache *cache, destroy_data = g_slice_new (PipelineDestroyNotifyData); destroy_data->cache = cache; destroy_data->texture = texture; - cogl_object_set_user_data (entry->pipeline, + cogl_object_set_user_data (COGL_OBJECT (entry->pipeline), &pipeline_destroy_notify_key, destroy_data, pipeline_destroy_notify_cb); diff --git a/cogl-pango/cogl-pango-pipeline-cache.h b/cogl-pango/cogl-pango-pipeline-cache.h index d095c584..1ebfb67a 100644 --- a/cogl-pango/cogl-pango-pipeline-cache.h +++ b/cogl-pango/cogl-pango-pipeline-cache.h @@ -43,7 +43,7 @@ _cogl_pango_pipeline_cache_new (gboolean use_mipmapping); to unref it */ CoglPipeline * _cogl_pango_pipeline_cache_get (CoglPangoPipelineCache *cache, - CoglHandle texture); + CoglTexture *texture); void _cogl_pango_pipeline_cache_free (CoglPangoPipelineCache *cache); |