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

Unified Diff: services/gfx/compositor/backend/output.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: services/gfx/compositor/backend/output.h
diff --git a/services/gfx/compositor/backend/output.h b/services/gfx/compositor/backend/output.h
new file mode 100644
index 0000000000000000000000000000000000000000..e3df5d25d0731a84c9f282d858413a290bf213a5
--- /dev/null
+++ b/services/gfx/compositor/backend/output.h
@@ -0,0 +1,35 @@
+// 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 SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_
+#define SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_
+
+#include <memory>
+
+#include "base/macros.h"
+
+namespace compositor {
+
+class RenderFrame;
+class Scheduler;
+
+// Renders snapshotted frames of the scene graph to a display output.
viettrungluu 2016/01/04 21:08:23 Could you comment on any thread-safety requirement
jeffbrown 2016/01/16 03:28:31 Done.
+class Output {
+ public:
+ Output() = default;
viettrungluu 2016/01/04 21:08:23 nit: I think we'd usually just say "{}" instead of
jeffbrown 2016/01/16 03:28:31 Yeah. I'm experimenting with the style mostly. U
+ virtual ~Output() = default;
+
+ // Gets the output's frame scheduler.
+ virtual Scheduler* scheduler() = 0;
viettrungluu 2016/01/04 21:08:23 nit: lowercase_c_style() is usually reserved for i
jeffbrown 2016/01/16 03:28:31 Done.
+
+ // Submits a frame to be rendered to the display.
+ virtual void SubmitFrame(const std::shared_ptr<RenderFrame>& frame) = 0;
viettrungluu 2016/01/04 21:08:23 I wonder if this should take an std::shared_ptr<Re
jeffbrown 2016/01/16 03:28:31 I think the style guide says we should only use &&
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Output);
+};
+
+} // namespace compositor
+
+#endif // SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_

Powered by Google App Engine
This is Rietveld 408576698