summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-01-07 13:48:46 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-01-07 13:48:46 +0000
commitd52a730282ed3e22d7fe83c533d723f0179bddb8 (patch)
tree37fafaaef09f6c5405d33f204bce5d3e6b68016e /src
parentwhen bailing out on update due to missing curve or style, don't forget to upd... (diff)
downloadinkscape-d52a730282ed3e22d7fe83c533d723f0179bddb8.tar.gz
inkscape-d52a730282ed3e22d7fe83c533d723f0179bddb8.zip
comment on possible optimization
(bzr r2144)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-arena-item.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/display/nr-arena-item.cpp b/src/display/nr-arena-item.cpp
index 0657144ed..e7eab8b85 100644
--- a/src/display/nr-arena-item.cpp
+++ b/src/display/nr-arena-item.cpp
@@ -262,7 +262,10 @@ nr_arena_item_invoke_update (NRArenaItem *item, NRRectL *area, NRGC *gc,
/* Clipping */
if (item->clip) {
- unsigned int newstate = nr_arena_item_invoke_update (item->clip, area, &childgc, state, reset);
+ // FIXME: since here we only need bbox, consider passing
+ // ((state & !(NR_ARENA_ITEM_STATE_RENDER)) | NR_ARENA_ITEM_STATE_BBOX)
+ // instead of state, so it does not have to create rendering structures in nr_arena_shape_update
+ unsigned int newstate = nr_arena_item_invoke_update (item->clip, area, &childgc, state, reset);
if (newstate & NR_ARENA_ITEM_STATE_INVALID) {
item->state |= NR_ARENA_ITEM_STATE_INVALID;
return item->state;