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

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

Issue 1779933003: Mozart: Replace Set/Reset nomenclature with Set/Clear. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-8
Patch Set: Created 4 years, 9 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // RENDERER REQUESTS 61 // RENDERER REQUESTS
62 62
63 // Sets the root scene. 63 // Sets the root scene.
64 // Destroys |renderer_state| if an error occurs. 64 // Destroys |renderer_state| if an error occurs.
65 void SetRootScene(RendererState* renderer_state, 65 void SetRootScene(RendererState* renderer_state,
66 mojo::gfx::composition::SceneTokenPtr scene_token, 66 mojo::gfx::composition::SceneTokenPtr scene_token,
67 uint32 scene_version, 67 uint32 scene_version,
68 mojo::RectPtr viewport); 68 mojo::RectPtr viewport);
69 69
70 // Resets the root scene. 70 // Removes the root scene.
71 // Destroys |renderer_state| if an error occurs. 71 // Destroys |renderer_state| if an error occurs.
72 void ResetRootScene(RendererState* renderer_state); 72 void ClearRootScene(RendererState* renderer_state);
73 73
74 // Performs a hit test. 74 // Performs a hit test.
75 void HitTest( 75 void HitTest(
76 RendererState* renderer_state, 76 RendererState* renderer_state,
77 mojo::PointPtr point, 77 mojo::PointPtr point,
78 const mojo::gfx::composition::HitTester::HitTestCallback& callback); 78 const mojo::gfx::composition::HitTester::HitTestCallback& callback);
79 79
80 private: 80 private:
81 void OnSceneConnectionError(SceneState* scene_state); 81 void OnSceneConnectionError(SceneState* scene_state);
82 void DestroyScene(SceneState* scene_state); 82 void DestroyScene(SceneState* scene_state);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 std::vector<RendererState*> renderers_; 132 std::vector<RendererState*> renderers_;
133 133
134 base::WeakPtrFactory<CompositorEngine> weak_factory_; 134 base::WeakPtrFactory<CompositorEngine> weak_factory_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(CompositorEngine); 136 DISALLOW_COPY_AND_ASSIGN(CompositorEngine);
137 }; 137 };
138 138
139 } // namespace compositor 139 } // namespace compositor
140 140
141 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_ 141 #endif // SERVICES_GFX_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mojo/services/ui/views/interfaces/view_trees.mojom ('k') | services/gfx/compositor/compositor_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698