diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-12-10 12:46:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-12-10 14:24:53 +0100 |
commit | e369efa01183b4c304b49603628a7393aeb9ced0 (patch) | |
tree | fc8f5ae0e0131380cac56c4b12d9325a09167160 /vcl | |
parent | 1f1ce06a185abcbf0c533cb3aa288418ecaa5ef4 (diff) |
[loplugin:external] in vcl/skia/SkiaHelper.cxx
Following 2c86b79e87bc8579f5213708954d5c85fe231407
cache Skia drawing based on checksum of bitmap content (tdf#146095)
Change-Id: I184a7d96988b7a52100de026c13f422590755ded
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126635
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/skia/SkiaHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/SkiaHelper.cxx b/vcl/skia/SkiaHelper.cxx index 2a4a7f1a6d7f..8dc3827b097a 100644 --- a/vcl/skia/SkiaHelper.cxx +++ b/vcl/skia/SkiaHelper.cxx @@ -648,7 +648,7 @@ tools::Long maxImageCacheSize() static o3tl::lru_map<uint32_t, uint32_t> checksumCache(256); -uint32_t computeSkPixmapChecksum(const SkPixmap& pixmap) +static uint32_t computeSkPixmapChecksum(const SkPixmap& pixmap) { // Use uint32_t because that's what SkOpts::hash_fn() returns. static_assert(std::is_same_v<uint32_t, decltype(SkOpts::hash_fn(nullptr, 0, 0))>); |