koffice/krita

Adrian Page adrian at pagenet.plus.com
Fri Feb 17 18:24:37 CET 2006


Boudewijn Rempt wrote:
  > How about this:
> 
> * all calls to KisImage::notify() become calls to KisLayer::setDirty(rect). 
> KisLayer::setDirty() informs the image of the new dirty rect, the image keeps
> a list of dirty rects.
> 
> * access to the rootlayer's projection is done through KisImage.  KisImage 
> then consolidates the dirty rects into a list of non-overlapping dirty rects. 
> That would be fairly cheap, I guess, and finally starts to merge.

That sounds good.

> I'm not sure whether we should allow access to the cached paint device of the 
> adj. layer and the group layers outside the core library.

I suppose probably not, until a compelling reason to do so arises. As 
long as we control the access, like with the root layer's projection, 
that's the main thing.

Adrian


More information about the kimageshop mailing list