summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-09-30 19:32:15 +0200
committerLuboš Luňák <l.lunak@collabora.com>2020-10-02 07:26:15 +0200
commit4374e57dd337c9be37431339323cf78dad66dd3e (patch)
tree83abf7b79c6b5791a6953ec5ffc80babb120a238 /vcl
parentc1206e12eab237ffa7dde728da5bf1883a05ddb0 (diff)
add operator<< for SkMatrix
Change-Id: Ib3b0cd624e52ffcd765bb2ac48cafd6abfc476cb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103744 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/skia/utils.hxx9
1 files changed, 9 insertions, 0 deletions
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
@@ -117,6 +117,15 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t
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)
{
// G - on GPU