From f9548fd15742ff8d72cc55f29b27b7af7684e539 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 17 Jan 2010 23:32:34 +0100 Subject: [PATCH] [AdgLDim] Reenabled global matrix cache Avoid AdgLDim recomputation if the AdgTrail is always the same, that is if the entity is not invalidated. --- adg/adg-ldim-private.h | 1 - adg/adg-ldim.c | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/adg/adg-ldim-private.h b/adg/adg-ldim-private.h index 776aedce..f7c0e07a 100644 --- a/adg/adg-ldim-private.h +++ b/adg/adg-ldim-private.h @@ -75,7 +75,6 @@ struct _AdgLDimPrivate { } shift; struct { - AdgMatrix local_map; AdgMatrix global_map; } quote; diff --git a/adg/adg-ldim.c b/adg/adg-ldim.c index a9481b8c..17e82c87 100644 --- a/adg/adg-ldim.c +++ b/adg/adg-ldim.c @@ -507,14 +507,11 @@ arrange(AdgEntity *entity) update_entities(ldim); /* Check for cached result */ -#if 0 if (data->cpml.path.status == CAIRO_STATUS_SUCCESS) { AdgEntity *quote_entity = (AdgEntity *) quote; adg_entity_set_global_map(quote_entity, &data->quote.global_map); - adg_entity_set_local_map(quote_entity, &data->quote.local_map); return; } -#endif dim_style = GET_DIM_STYLE(dim); @@ -625,10 +622,8 @@ arrange(AdgEntity *entity) adg_entity_arrange(quote_entity); cpml_extents_add(&extents, adg_entity_get_extents(quote_entity)); - /*adg_matrix_copy(&data->quote.global_map, + adg_matrix_copy(&data->quote.global_map, adg_entity_get_global_map(quote_entity)); - adg_matrix_copy(&data->quote.local_map, - adg_entity_get_local_map(quote_entity));*/ } if (data->marker1 != NULL) { -- 2.11.4.GIT