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

Side by Side Diff: services/gfx/compositor/renderer_state.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
« no previous file with comments | « services/gfx/compositor/renderer_impl.cc ('k') | services/gfx/compositor/renderer_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_STATE_H_ 5 #ifndef SERVICES_GFX_COMPOSITOR_RENDERER_STATE_H_
6 #define SERVICES_GFX_COMPOSITOR_RENDERER_STATE_H_ 6 #define SERVICES_GFX_COMPOSITOR_RENDERER_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 SceneState* root_scene() { return root_scene_; } 44 SceneState* root_scene() { return root_scene_; }
45 uint32_t root_scene_version() { return root_scene_version_; } 45 uint32_t root_scene_version() { return root_scene_version_; }
46 const mojo::Rect& root_scene_viewport() { return root_scene_viewport_; } 46 const mojo::Rect& root_scene_viewport() { return root_scene_viewport_; }
47 47
48 // Sets the root scene. 48 // Sets the root scene.
49 // If a change occurred, clears the current snapshot and returns true. 49 // If a change occurred, clears the current snapshot and returns true.
50 bool SetRootScene(SceneState* scene, 50 bool SetRootScene(SceneState* scene,
51 uint32_t version, 51 uint32_t version,
52 const mojo::Rect& viewport); 52 const mojo::Rect& viewport);
53 53
54 // Resets the root scene. 54 // Removes the root scene.
55 // If a change occurred, clears the current snapshot and returns true. 55 // If a change occurred, clears the current snapshot and returns true.
56 bool ResetRootScene(); 56 bool ClearRootScene();
57 57
58 // The currently visible frame, or null if none. 58 // The currently visible frame, or null if none.
59 scoped_refptr<const Snapshot> visible_snapshot() const { 59 scoped_refptr<const Snapshot> visible_snapshot() const {
60 return visible_snapshot_; 60 return visible_snapshot_;
61 } 61 }
62 62
63 // The most recent snapshot (which may be blocked from rendering), or 63 // The most recent snapshot (which may be blocked from rendering), or
64 // null if none. 64 // null if none.
65 scoped_refptr<const Snapshot> current_snapshot() const { 65 scoped_refptr<const Snapshot> current_snapshot() const {
66 return current_snapshot_; 66 return current_snapshot_;
(...skipping 25 matching lines...) Expand all
92 base::WeakPtrFactory<RendererState> weak_factory_; 92 base::WeakPtrFactory<RendererState> weak_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(RendererState); 94 DISALLOW_COPY_AND_ASSIGN(RendererState);
95 }; 95 };
96 96
97 std::ostream& operator<<(std::ostream& os, RendererState* renderer_state); 97 std::ostream& operator<<(std::ostream& os, RendererState* renderer_state);
98 98
99 } // namespace compositor 99 } // namespace compositor
100 100
101 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_STATE_H_ 101 #endif // SERVICES_GFX_COMPOSITOR_RENDERER_STATE_H_
OLDNEW
« no previous file with comments | « services/gfx/compositor/renderer_impl.cc ('k') | services/gfx/compositor/renderer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698