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

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: fix android build Created 4 years, 11 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
« no previous file with comments | « services/gfx/compositor/backend/gpu_rasterizer.cc ('k') | services/gfx/compositor/backend/scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8891d54bae2e1d49fc32c592079e8878a5aff46f
--- /dev/null
+++ b/services/gfx/compositor/backend/output.h
@@ -0,0 +1,40 @@
+// 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.
+//
+// The output object is created on the compositor's main thread and frames
+// are submitted to it from there. Behind the scenes, the implementation of
+// Output may use some number of worker threads. How this is accomplished
+// is left up to the implementation of the Output to decide.
+class Output {
+ public:
+ Output() = default;
+ virtual ~Output() = default;
+
+ // Gets the output's frame scheduler.
+ virtual Scheduler* GetScheduler() = 0;
+
+ // Submits a frame to be rendered to the display.
+ virtual void SubmitFrame(const std::shared_ptr<RenderFrame>& frame) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Output);
+};
+
+} // namespace compositor
+
+#endif // SERVICES_GFX_COMPOSITOR_BACKEND_OUTPUT_H_
« no previous file with comments | « services/gfx/compositor/backend/gpu_rasterizer.cc ('k') | services/gfx/compositor/backend/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698