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

Side by Side 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, 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 #ifndef SERVICES_GFX_COMPOSITOR_COMPOSITOR_IMPL_H_
6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/common/strong_binding_set.h"
10 #include "mojo/services/gfx/composition/interfaces/compositor.mojom.h"
11 #include "services/gfx/compositor/compositor_engine.h"
12
13 namespace compositor {
14
15 // Compositor interface implementation.
16 class CompositorImpl : public mojo::gfx::composition::Compositor {
17 public:
18 explicit CompositorImpl(CompositorEngine* engine);
19 ~CompositorImpl() override;
20
21 private:
22 // |Compositor|:
23 void CreateScene(
24 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request,
25 const mojo::String& label,
26 const CreateSceneCallback& callback) override;
27 void CreateRenderer(
28 mojo::ContextProviderPtr context_provider,
29 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
30 const mojo::String& label) override;
31
32 CompositorEngine* engine_;
33
34 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
35 };
36
37 } // namespace compositor
38
39 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698