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

Unified Diff: services/gfx/compositor/compositor_impl.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/compositor_impl.h
diff --git a/services/gfx/compositor/compositor_impl.h b/services/gfx/compositor/compositor_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..78e35adc6cf7d3ab0cce24e6ef387efdbc5d8441
--- /dev/null
+++ b/services/gfx/compositor/compositor_impl.h
@@ -0,0 +1,39 @@
+// 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_COMPOSITOR_IMPL_H_
+#define SERVICES_GFX_COMPOSITOR_COMPOSITOR_IMPL_H_
+
+#include "base/macros.h"
+#include "mojo/common/strong_binding_set.h"
+#include "mojo/services/gfx/composition/interfaces/compositor.mojom.h"
+#include "services/gfx/compositor/compositor_engine.h"
+
+namespace compositor {
+
+// Compositor interface implementation.
+class CompositorImpl : public mojo::gfx::composition::Compositor {
+ public:
+ explicit CompositorImpl(CompositorEngine* engine);
+ ~CompositorImpl() override;
+
+ private:
+ // |Compositor|:
+ void CreateScene(
+ mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request,
+ const mojo::String& label,
+ const CreateSceneCallback& callback) override;
+ void CreateRenderer(
+ mojo::ContextProviderPtr context_provider,
+ mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
+ const mojo::String& label) override;
+
+ CompositorEngine* engine_;
+
+ DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
+};
+
+} // namespace compositor
+
+#endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698