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

Unified Diff: mojo/services/gfx/composition/cpp/logging.h

Issue 1552963002: Initial checkin of the new Mozart compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-11
Patch Set: Created 4 years, 12 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/logging.h
diff --git a/mojo/services/gfx/composition/cpp/logging.h b/mojo/services/gfx/composition/cpp/logging.h
new file mode 100644
index 0000000000000000000000000000000000000000..3b8041728dc060b6ee3c420226954d95b44e95b2
--- /dev/null
+++ b/mojo/services/gfx/composition/cpp/logging.h
@@ -0,0 +1,68 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SERVICES_GFX_COMPOSITION_CPP_LOGGING_H_
+#define MOJO_SERVICES_GFX_COMPOSITION_CPP_LOGGING_H_
+
+#include <iosfwd>
+
+#include "mojo/services/geometry/cpp/logging.h"
+#include "mojo/services/gfx/composition/interfaces/compositor.mojom.h"
+#include "mojo/services/gfx/composition/interfaces/scheduling.mojom.h"
+
+namespace mojo {
+namespace gfx {
+namespace composition {
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::SceneToken& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::SceneUpdate& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::SceneMetadata& value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Resource& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::SceneResource& value);
+std::ostream& operator<<(
+ std::ostream& os,
+ const mojo::gfx::composition::MailboxTextureResource& value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Node& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::NodeOp& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::RectNodeOp& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::ImageNodeOp& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::SceneNodeOp& value);
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::LayerNodeOp& value);
+
+// FIXME(jeffbrown): Passing as a pointer to disambiguate with the operator<<
+// generated by mojom itself for this enum, which unfortunately doesn't print
+// names. We should improve mojom then get rid of this overload.
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Node::Combinator* value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Color& value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Clip& value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::Blend& value);
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::gfx::composition::FrameInfo& value);
+
+} // namespace composition
+} // namespace gfx
+} // namespace mojo
+
+#endif // MOJO_SERVICES_GFX_COMPOSITION_CPP_LOGGING_H_

Powered by Google App Engine
This is Rietveld 408576698