summaryrefslogtreecommitdiffstats
path: root/cppu
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-06-30 15:24:48 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-07-01 07:38:10 +0200
commit1fca8d1f7d97816ae469f2eb3079ecda9542bd44 (patch)
tree4b1884965f9def4264817b296745ce90588c0821 /cppu
parentoptimize Bitmap::Erase() for Skia by delaying the erase (tdf#134363) (diff)
downloadcore-1fca8d1f7d97816ae469f2eb3079ecda9542bd44.tar.gz
core-1fca8d1f7d97816ae469f2eb3079ecda9542bd44.zip
avoid costly to-monochrome-bitmap conversion with Skia (tdf#134365)
The BitmapEx 1bpp monochrome bitmap mask constructor forces the mask to be 1bpp, which is done in software by BitmapMonochromeFilter. Which with Vulkan leads to fetching all the data from the GPU, usually only to be converted and then pushed back to the GPU. Similarly to MACOSX and iOS, just use AlphaMask, which is just better (8bit is easier to handle and in Skia's case it's also optimized to avoid fetching the data if possible). Change-Id: I5770c2b0c298c1534b7ff56cc905d2d668d3a8df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97525 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'cppu')
0 files changed, 0 insertions, 0 deletions