vcl/inc/skia/utils.hxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 4374e57dd337c9be37431339323cf78dad66dd3e
Author: Luboš Luňák <[email protected]>
AuthorDate: Wed Sep 30 19:32:15 2020 +0200
Commit: Luboš Luňák <[email protected]>
CommitDate: Fri Oct 2 07:26:15 2020 +0200
add operator<< for SkMatrix
Change-Id: Ib3b0cd624e52ffcd765bb2ac48cafd6abfc476cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103744
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <[email protected]>
diff --git a/vcl/inc/skia/utils.hxx b/vcl/inc/skia/utils.hxx
index 222a413b511e..473edfdf0d3f 100644
--- a/vcl/inc/skia/utils.hxx
+++ b/vcl/inc/skia/utils.hxx
@@ -115,6 +115,15 @@ inline std::basic_ostream<charT, traits>&
operator<<(std::basic_ostream<charT, t
return stream;
}
+template <typename charT, typename traits>
+inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT,
traits>& stream,
+ const SkMatrix& matrix)
+{
+ return stream << "[" << matrix[0] << " " << matrix[1] << " " << matrix[2]
<< "]"
+ << "[" << matrix[3] << " " << matrix[4] << " " << matrix[5]
<< "]"
+ << "[" << matrix[6] << " " << matrix[7] << " " << matrix[8]
<< "]";
+}
+
template <typename charT, typename traits>
inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT,
traits>& stream,
const SkImage& image)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits