| commit | 6de9dc3c949391ea8c6f68e7ca2b0df992fadb9c | [log] |
|---|---|---|
| author | Mark Hung <marklh9@gmail.com> | Fri Apr 03 23:46:54 2020 +0800 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Tue Apr 14 09:27:31 2020 +0200 |
| tree | e880bc8b4ccf6f0f2bf9d703a3de9b1d4f371d78 | |
| parent | b8c2e08b68722972d65f08107d74ba4a10f713df [diff] |
tdf#104225: speedup hit test for FillGraphicPrimitive2D. Default is to decompose and process the primitive recursively, but it is not necessary since the shape is regular. So perform the hit test using getB2DRange() like FillHatchPrimitive2D or FillGraidentPrimtive2D. Change-Id: Ie9d91943d2f3502938e41b7f6b0a364d9da15d63 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92135 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx index eb57052..225fe4d 100644 --- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx +++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx
@@ -469,6 +469,7 @@ case PRIMITIVE2D_ID_METAFILEPRIMITIVE2D : case PRIMITIVE2D_ID_CONTROLPRIMITIVE2D : case PRIMITIVE2D_ID_FILLGRADIENTPRIMITIVE2D : case PRIMITIVE2D_ID_FILLGRAPHICPRIMITIVE2D : case PRIMITIVE2D_ID_FILLHATCHPRIMITIVE2D : case PRIMITIVE2D_ID_PAGEPREVIEWPRIMITIVE2D : case PRIMITIVE2D_ID_MEDIAPRIMITIVE2D: