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

Side by Side Diff: services/gfx/compositor/graph/snapshot.h

Issue 1782733002: Mozart: The great RectF-ication. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-9
Patch Set: rebase 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/graph/scene_def.cc ('k') | services/gfx/compositor/graph/snapshot.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_GRAPH_SNAPSHOT_H_ 5 #ifndef SERVICES_GFX_COMPOSITOR_GRAPH_SNAPSHOT_H_
6 #define SERVICES_GFX_COMPOSITOR_GRAPH_SNAPSHOT_H_ 6 #define SERVICES_GFX_COMPOSITOR_GRAPH_SNAPSHOT_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool HasDependency(const SceneDef* scene) const; 65 bool HasDependency(const SceneDef* scene) const;
66 66
67 // Creates a frame for rendering. 67 // Creates a frame for rendering.
68 // Only valid if |!is_blocked()|. 68 // Only valid if |!is_blocked()|.
69 std::shared_ptr<RenderFrame> CreateFrame( 69 std::shared_ptr<RenderFrame> CreateFrame(
70 const mojo::Rect& viewport, 70 const mojo::Rect& viewport,
71 const mojo::gfx::composition::FrameInfo& frame_info) const; 71 const mojo::gfx::composition::FrameInfo& frame_info) const;
72 72
73 // Performs a hit test at the specified point, populating the result. 73 // Performs a hit test at the specified point, populating the result.
74 // Only valid if |!is_blocked()|. 74 // Only valid if |!is_blocked()|.
75 void HitTest(const mojo::Point& point, 75 void HitTest(const mojo::PointF& point,
76 mojo::gfx::composition::HitTestResult* result) const; 76 mojo::gfx::composition::HitTestResult* result) const;
77 77
78 // Returns true if the specified node was blocked from rendering. 78 // Returns true if the specified node was blocked from rendering.
79 // Only valid if |!is_blocked()|. 79 // Only valid if |!is_blocked()|.
80 bool IsNodeBlocked(const NodeDef* node) const; 80 bool IsNodeBlocked(const NodeDef* node) const;
81 81
82 // Gets the scene content which was resolved by following a scene node link. 82 // Gets the scene content which was resolved by following a scene node link.
83 // Only valid if |!is_blocked()|. 83 // Only valid if |!is_blocked()|.
84 const SceneContent* GetResolvedSceneContent( 84 const SceneContent* GetResolvedSceneContent(
85 const SceneNodeDef* scene_node) const; 85 const SceneNodeDef* scene_node) const;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 std::ostream* const block_log_; 153 std::ostream* const block_log_;
154 scoped_refptr<Snapshot> snapshot_; 154 scoped_refptr<Snapshot> snapshot_;
155 const SceneContent* cycle_ = nullptr; // point where a cycle was detected 155 const SceneContent* cycle_ = nullptr; // point where a cycle was detected
156 156
157 DISALLOW_COPY_AND_ASSIGN(SnapshotBuilder); 157 DISALLOW_COPY_AND_ASSIGN(SnapshotBuilder);
158 }; 158 };
159 159
160 } // namespace compositor 160 } // namespace compositor
161 161
162 #endif // SERVICES_GFX_COMPOSITOR_GRAPH_SNAPSHOT_H_ 162 #endif // SERVICES_GFX_COMPOSITOR_GRAPH_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « services/gfx/compositor/graph/scene_def.cc ('k') | services/gfx/compositor/graph/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698