diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-12-08 12:46:40 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-12-09 11:50:33 +0100 |
commit | 991b4e032a4834779aac100607ffc13758328c4a (patch) | |
tree | d79c1aa24e9c5fc0b5753dbcbc873dbbd93b5154 /vcl | |
parent | 65b47341fe668e74430cf12aa84f9357e0dbd6bb (diff) |
better name for a helper Skia function
What it really does is converting RGBA to R, so name it after
what it does. That the result happens to be kind-of-grey of the RGBA
is just a result of VCL providing the data that way.
Change-Id: Ic017e34d91879679e0a7dad4d6ab35650fc3a89b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107408
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/skia/salbmp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index eeb528267b0f..0ce99d5778e4 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -1072,8 +1072,7 @@ void SkiaSalBitmap::EnsureBitmapData() { // no actual data conversion, use one color channel as the gray value if (int(bitmap.rowBytes()) == mSize.Width() * 4 && mSize.Width() * 1 == mScanlineSize) { - SkConvertRGBAToGrayFast(mBuffer.get(), bitmap.getAddr32(0, 0), - mSize.Height() * mSize.Width()); + SkConvertRGBAToR(mBuffer.get(), bitmap.getAddr32(0, 0), mSize.Height() * mSize.Width()); } else { @@ -1081,7 +1080,7 @@ void SkiaSalBitmap::EnsureBitmapData() { const uint32_t* src = bitmap.getAddr32(0, y); sal_uInt8* dest = mBuffer.get() + mScanlineSize * y; - SkConvertRGBAToGrayFast(dest, src, mSize.Width()); + SkConvertRGBAToR(dest, src, mSize.Width()); } } } |