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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/gfx/compositor/compositor_impl.h"
6
7 #include "services/gfx/compositor/scene_impl.h"
8
9 namespace compositor {
10
11 CompositorImpl::CompositorImpl(CompositorEngine* engine) : engine_(engine) {}
12
13 CompositorImpl::~CompositorImpl() {}
14
15 void CompositorImpl::CreateScene(
16 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request,
17 const mojo::String& label,
18 const CreateSceneCallback& callback) {
19 mojo::gfx::composition::SceneTokenPtr scene_token =
20 engine_->CreateScene(scene_request.Pass(), label);
21 callback.Run(scene_token.Pass());
22 }
23
24 void CompositorImpl::CreateRenderer(
25 mojo::ContextProviderPtr context_provider,
26 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
27 const mojo::String& label) {
28 engine_->CreateRenderer(context_provider.Pass(), renderer_request.Pass(),
29 label);
30 }
31
32 } // namespace compositor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698