Index: mojo/services/gfx/composition/cpp/formatting.cc |
diff --git a/mojo/services/gfx/composition/cpp/formatting.cc b/mojo/services/gfx/composition/cpp/formatting.cc |
index 4666619eb9e286e76b93a03d9bf026a6199f53c8..73911be9ae90dfd3e779f12ee981da088fc47599 100644 |
--- a/mojo/services/gfx/composition/cpp/formatting.cc |
+++ b/mojo/services/gfx/composition/cpp/formatting.cc |
@@ -80,7 +80,20 @@ std::ostream& operator<<( |
std::ostream& os, |
const mojo::gfx::composition::MailboxTextureResource& value) { |
return os << "{sync_point=" << value.sync_point << ", size=" << value.size |
- << "}"; |
+ << ", origin=" << &value.origin << "}"; |
+} |
+ |
+std::ostream& operator<<( |
+ std::ostream& os, |
+ const mojo::gfx::composition::MailboxTextureResource::Origin* value) { |
+ switch (*value) { |
+ case mojo::gfx::composition::MailboxTextureResource::Origin::TOP_LEFT: |
+ return os << "TOP_LEFT"; |
+ case mojo::gfx::composition::MailboxTextureResource::Origin::BOTTOM_LEFT: |
+ return os << "BOTTOM_LEFT"; |
+ default: |
+ return os << "???"; |
+ } |
} |
std::ostream& operator<<(std::ostream& os, |