Skip to content
  • Dmitry Kazakov's avatar
    Rename KisImage::lock() into KisImage::immediateLockForReadOnly() · 5c6d30a5
    Dmitry Kazakov authored
    If we lock for write we must regenerate LodN planes, which
    is not possible right inside the stroke. Therefore, if you
    need to lock the image for write you need to use
    image->barrierLock(). It ensures that all the strokes are
    finished before you do any modifications to the image.
    
    CCBUG:434647
    5c6d30a5