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

Unified Diff: services/gfx/compositor/compositor_impl.cc

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/compositor_impl.h ('k') | services/gfx/compositor/graph/node_def.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/compositor_impl.cc
diff --git a/services/gfx/compositor/compositor_impl.cc b/services/gfx/compositor/compositor_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5d140030fc665fd31aa9fba01a64f65cc068fe01
--- /dev/null
+++ b/services/gfx/compositor/compositor_impl.cc
@@ -0,0 +1,32 @@
+// 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.
+
+#include "services/gfx/compositor/compositor_impl.h"
+
+#include "services/gfx/compositor/scene_impl.h"
+
+namespace compositor {
+
+CompositorImpl::CompositorImpl(CompositorEngine* engine) : engine_(engine) {}
+
+CompositorImpl::~CompositorImpl() {}
+
+void CompositorImpl::CreateScene(
+ mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request,
+ const mojo::String& label,
+ const CreateSceneCallback& callback) {
+ mojo::gfx::composition::SceneTokenPtr scene_token =
+ engine_->CreateScene(scene_request.Pass(), label);
+ callback.Run(scene_token.Pass());
+}
+
+void CompositorImpl::CreateRenderer(
+ mojo::ContextProviderPtr context_provider,
+ mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
+ const mojo::String& label) {
+ engine_->CreateRenderer(context_provider.Pass(), renderer_request.Pass(),
+ label);
+}
+
+} // namespace compositor
« no previous file with comments | « services/gfx/compositor/compositor_impl.h ('k') | services/gfx/compositor/graph/node_def.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698