diff options
author | Mark Hung <marklh9@gmail.com> | 2020-04-03 23:46:54 +0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-14 09:27:31 +0200 |
commit | 6de9dc3c949391ea8c6f68e7ca2b0df992fadb9c (patch) | |
tree | e880bc8b4ccf6f0f2bf9d703a3de9b1d4f371d78 /drawinglayer | |
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>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/hittestprocessor2d.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx index eb57052de924..225fe4d5fb97 100644 --- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx +++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx @@ -469,6 +469,7 @@ namespace drawinglayer::processor2d 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: |