[calligra/krita-iterators2-rempt] krita/image/tiles3: Handle the situation where the ng iterators get an empty stretch

Dmitry Kazakov dimula73 at gmail.com
Wed Apr 25 21:00:51 UTC 2012


> > This approach is free from both the issues: it has no additional function
> > call for isDone() (what Cyrille wanted to achieve), and it doesn't
> > introduce any preconditions for the iterators, which mean they can handle
> > empty and invalid rects as well.
>
> On the other hand, it add extra complexity to the "nextPixel" function,
> hence
> cycles, to cover a corner case. Since you would have to either have a
> check to
> "nextPixel" to handle the first call or to positionate the iterator at
> beginning-1, and take the risk that the iterator request an useless tile.
>

Is there a benchmark for iterators in master?

-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120426/c803929a/attachment.html>


More information about the kimageshop mailing list