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

Side by Side Diff: services/gfx/compositor/compositor_engine.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_
6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ 6 #define SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // COMPOSITOR REQUESTS 28 // COMPOSITOR REQUESTS
29 29
30 // Registers a scene. 30 // Registers a scene.
31 mojo::gfx::composition::SceneTokenPtr CreateScene( 31 mojo::gfx::composition::SceneTokenPtr CreateScene(
32 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request, 32 mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene_request,
33 const mojo::String& label); 33 const mojo::String& label);
34 34
35 // Creates a scene graph renderer. 35 // Creates a scene graph renderer.
36 void CreateRenderer( 36 void CreateRenderer(
37 mojo::ContextProviderPtr context_provider, 37 mojo::InterfaceHandle<mojo::ContextProvider> context_provider,
38 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request, 38 mojo::InterfaceRequest<mojo::gfx::composition::Renderer> renderer_request,
39 const mojo::String& label); 39 const mojo::String& label);
40 40
41 // SCENE REQUESTS 41 // SCENE REQUESTS
42 42
43 // Sets the scene listener. 43 // Sets the scene listener.
44 void SetListener(SceneState* scene_state, 44 void SetListener(SceneState* scene_state,
45 mojo::gfx::composition::SceneListenerPtr listener); 45 mojo::gfx::composition::SceneListenerPtr listener);
46 46
47 // Updates a scene. 47 // Updates a scene.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 std::vector<RendererState*> renderers_; 128 std::vector<RendererState*> renderers_;
129 129
130 base::WeakPtrFactory<CompositorEngine> weak_factory_; 130 base::WeakPtrFactory<CompositorEngine> weak_factory_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); 132 DISALLOW_COPY_AND_ASSIGN(CompositorEngine);
133 }; 133 };
134 134
135 } // namespace compositor 135 } // namespace compositor
136 136
137 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ 137 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « services/gfx/compositor/backend/gpu_rasterizer.cc ('k') | services/gfx/compositor/compositor_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698