diff --git a/src/doc/algorithm/shrink_bounds.cpp b/src/doc/algorithm/shrink_bounds.cpp index 20938def1..db55a64eb 100644 --- a/src/doc/algorithm/shrink_bounds.cpp +++ b/src/doc/algorithm/shrink_bounds.cpp @@ -141,6 +141,9 @@ bool shrink_bounds_templ(const Image* image, gfx::Rect& bounds, color_t refpixel gfx::Rect leftBounds(bounds), rightBounds(bounds), topBounds(bounds), bottomBounds(bounds); + + // TODO use a base::thread_pool and a base::task for each border + std::thread left ([&]{ shrink_bounds_left_templ (image, leftBounds, refpixel, rowSize); }); std::thread right ([&]{ shrink_bounds_right_templ (image, rightBounds, refpixel, rowSize); }); std::thread top ([&]{ shrink_bounds_top_templ (image, topBounds, refpixel); });