summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_coordinates.h
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-01-11 21:56:48 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-11 21:56:48 +0000
commit7c0a92e1761dddaf6ed84e3bea723dc7a40c8685 (patch)
treeaf3fae8b8025d77faf9233e8f50d7663254c6c3e /core/fxcrt/fx_coordinates.h
parent923948632fe798d1c17000803d9d4b1559b4ffa1 (diff)
downloadpdfium-7c0a92e1761dddaf6ed84e3bea723dc7a40c8685.tar.xz
Add operator<< to CFX_FloatRect.
This helps debugging. Change-Id: I4d14dd5975d8d8f4566009ed4a4127f9c56d36dd Reviewed-on: https://pdfium-review.googlesource.com/22790 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_coordinates.h')
-rw-r--r--core/fxcrt/fx_coordinates.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h
index c53d157610..69d16d1c55 100644
--- a/core/fxcrt/fx_coordinates.h
+++ b/core/fxcrt/fx_coordinates.h
@@ -357,6 +357,10 @@ class CFX_FloatRect {
float top;
};
+#ifndef NDEBUG
+std::ostream& operator<<(std::ostream& os, const CFX_FloatRect& rect);
+#endif
+
// LTWH rectangles (y-axis runs downwards).
template <class BaseType>
class CFX_RTemplate {