Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: mojo/services/gfx/composition/cpp/formatting.cc

Issue 1776643004: Mozart: Specify texture origin explicitly. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « mojo/services/gfx/composition/cpp/formatting.h ('k') | mojo/services/gfx/composition/interfaces/resources.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698