KisPrescaleProjection::updateCache should not depend on ant UI data
So now it doesn't fill in the KisUpadteInfo fully, it just saves the dirty image rect in it and fetches the data. All the UI related actions are performed in KisPrescaleProjection::recalculateCache. Added some unittests for KisPrescaleProjection, including the testcase for bug 289915. CCBUG:289790 CCBUG:289915
Showing
- krita/sdk/tests/testutil.h 28 additions, 0 deletionskrita/sdk/tests/testutil.h
- krita/ui/canvas/kis_image_pyramid.cpp 2 additions, 2 deletionskrita/ui/canvas/kis_image_pyramid.cpp
- krita/ui/canvas/kis_image_pyramid.h 1 addition, 1 deletionkrita/ui/canvas/kis_image_pyramid.h
- krita/ui/canvas/kis_prescaled_projection.cpp 30 additions, 23 deletionskrita/ui/canvas/kis_prescaled_projection.cpp
- krita/ui/canvas/kis_prescaled_projection.h 23 additions, 4 deletionskrita/ui/canvas/kis_prescaled_projection.h
- krita/ui/canvas/kis_projection_backend.h 1 addition, 1 deletionkrita/ui/canvas/kis_projection_backend.h
- krita/ui/tests/data/prescaled_projection_test/testScrollingZoom50/testScrollingZoom50_initial.png 0 additions, 0 deletions..._test/testScrollingZoom50/testScrollingZoom50_initial.png
- krita/ui/tests/data/prescaled_projection_test/testScrollingZoom50/testScrollingZoom50_zoom50.png 0 additions, 0 deletions...n_test/testScrollingZoom50/testScrollingZoom50_zoom50.png
- krita/ui/tests/data/prescaled_projection_test/testScrollingZoom50/testScrollingZoom50_zoom50_moved50.png 0 additions, 0 deletions...estScrollingZoom50/testScrollingZoom50_zoom50_moved50.png
- krita/ui/tests/data/prescaled_projection_test/testUpdates/testUpdates_cleared.png 0 additions, 0 deletions...caled_projection_test/testUpdates/testUpdates_cleared.png
- krita/ui/tests/data/prescaled_projection_test/testUpdates/testUpdates_zoom50.png 0 additions, 0 deletions...scaled_projection_test/testUpdates/testUpdates_zoom50.png
- krita/ui/tests/kis_prescaled_projection_test.cpp 128 additions, 30 deletionskrita/ui/tests/kis_prescaled_projection_test.cpp
- krita/ui/tests/kis_prescaled_projection_test.h 3 additions, 1 deletionkrita/ui/tests/kis_prescaled_projection_test.h
Loading
Please register or sign in to comment