[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/core
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2005-04-12 17:55:32
Message-ID: 20050412175532.4C199633 () office ! kde ! org
[Download RAW message or body]

CVS commit by coppens: 

Big (well, relatively speaking ;)) speedup for the fill painter by using KisPixelRO \
instead of the slower KisPixel


  M +2 -2      kis_fill_painter.cc   1.29
  M +1 -1      kis_fill_painter.h   1.17


--- koffice/krita/core/kis_fill_painter.cc  #1.28:1.29
@@ -295,5 +295,5 @@ int KisFillPainter::floodSegment(int x, 
                 m_map[y*m_width + x] = true;
                 ++m_pixelsDone;
-                KisPixel data = it.pixel();
+                KisPixelRO data = it.rawData();
                 diff = difference(m_oldColor, data);
                 if (diff == MAX_SELECTED) {
@@ -321,5 +321,5 @@ int KisFillPainter::floodSegment(int x, 
 
 /* RGB-only I fear */
-QUANTUM KisFillPainter::difference(const QUANTUM* src, KisPixel dst)
+QUANTUM KisFillPainter::difference(const QUANTUM* src, KisPixelRO dst)
 {
         QUANTUM max = 0, diff = 0;

--- koffice/krita/core/kis_fill_painter.h  #1.16:1.17
@@ -115,5 +115,5 @@ private:
          * returned when anti-aliasing is off
          **/
-        QUANTUM difference(const QUANTUM* src, KisPixel dst);
+        QUANTUM difference(const QUANTUM* src, KisPixelRO dst);
         void genericFillStart(int startX, int startY);
         void genericFillEnd(KisLayerSP filled);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic