1111
1212namespace flow {
1313
14- SceneUpdateContext::SceneUpdateContext (scenic_lib ::Session* session,
14+ SceneUpdateContext::SceneUpdateContext (scenic ::Session* session,
1515 SurfaceProducer* surface_producer)
1616 : session_(session), surface_producer_(surface_producer) {
1717 FXL_DCHECK (surface_producer_ != nullptr );
@@ -40,7 +40,7 @@ void SceneUpdateContext::RemoveExportNode(ExportNode* export_node) {
4040 export_nodes_.erase (export_node);
4141}
4242
43- void SceneUpdateContext::CreateFrame (scenic_lib ::EntityNode& entity_node,
43+ void SceneUpdateContext::CreateFrame (scenic ::EntityNode& entity_node,
4444 const SkRRect& rrect,
4545 SkColor color,
4646 const SkRect& paint_bounds,
@@ -56,7 +56,7 @@ void SceneUpdateContext::CreateFrame(scenic_lib::EntityNode& entity_node,
5656 // and possibly for its texture.
5757 // TODO(MZ-137): Need to be able to express the radii as vectors.
5858 SkRect shape_bounds = rrect.getBounds ();
59- scenic_lib ::RoundedRectangle shape (
59+ scenic ::RoundedRectangle shape (
6060 session_, // session
6161 rrect.width (), // width
6262 rrect.height (), // height
@@ -65,7 +65,7 @@ void SceneUpdateContext::CreateFrame(scenic_lib::EntityNode& entity_node,
6565 rrect.radii (SkRRect::kLowerRight_Corner ).x (), // bottom_right_radius
6666 rrect.radii (SkRRect::kLowerLeft_Corner ).x () // bottom_left_radius
6767 );
68- scenic_lib ::ShapeNode shape_node (session_);
68+ scenic ::ShapeNode shape_node (session_);
6969 shape_node.SetShape (shape);
7070 shape_node.SetTranslation (shape_bounds.width () * 0 .5f + shape_bounds.left (),
7171 shape_bounds.height () * 0 .5f + shape_bounds.top (),
@@ -93,9 +93,9 @@ void SceneUpdateContext::CreateFrame(scenic_lib::EntityNode& entity_node,
9393 if (inner_bounds != shape_bounds && rrect.contains (inner_bounds)) {
9494 SetShapeColor (shape_node, color);
9595
96- scenic_lib ::Rectangle inner_shape (session_, inner_bounds.width (),
96+ scenic ::Rectangle inner_shape (session_, inner_bounds.width (),
9797 inner_bounds.height ());
98- scenic_lib ::ShapeNode inner_node (session_);
98+ scenic ::ShapeNode inner_node (session_);
9999 inner_node.SetShape (inner_shape);
100100 inner_node.SetTranslation (inner_bounds.width () * 0 .5f + inner_bounds.left (),
101101 inner_bounds.height () * 0 .5f + inner_bounds.top (),
@@ -112,16 +112,16 @@ void SceneUpdateContext::CreateFrame(scenic_lib::EntityNode& entity_node,
112112}
113113
114114void SceneUpdateContext::SetShapeTextureOrColor (
115- scenic_lib ::ShapeNode& shape_node,
115+ scenic ::ShapeNode& shape_node,
116116 SkColor color,
117117 SkScalar scale_x,
118118 SkScalar scale_y,
119119 const SkRect& paint_bounds,
120120 std::vector<Layer*> paint_layers) {
121- scenic_lib ::Image* image = GenerateImageIfNeeded (
121+ scenic ::Image* image = GenerateImageIfNeeded (
122122 color, scale_x, scale_y, paint_bounds, std::move (paint_layers));
123123 if (image != nullptr ) {
124- scenic_lib ::Material material (session_);
124+ scenic ::Material material (session_);
125125 material.SetTexture (*image);
126126 shape_node.SetMaterial (material);
127127 return ;
@@ -130,18 +130,18 @@ void SceneUpdateContext::SetShapeTextureOrColor(
130130 SetShapeColor (shape_node, color);
131131}
132132
133- void SceneUpdateContext::SetShapeColor (scenic_lib ::ShapeNode& shape_node,
133+ void SceneUpdateContext::SetShapeColor (scenic ::ShapeNode& shape_node,
134134 SkColor color) {
135135 if (SkColorGetA (color) == 0 )
136136 return ;
137137
138- scenic_lib ::Material material (session_);
138+ scenic ::Material material (session_);
139139 material.SetColor (SkColorGetR (color), SkColorGetG (color), SkColorGetB (color),
140140 SkColorGetA (color));
141141 shape_node.SetMaterial (material);
142142}
143143
144- scenic_lib ::Image* SceneUpdateContext::GenerateImageIfNeeded (
144+ scenic ::Image* SceneUpdateContext::GenerateImageIfNeeded (
145145 SkColor color,
146146 SkScalar scale_x,
147147 SkScalar scale_y,
@@ -219,10 +219,10 @@ SceneUpdateContext::Entity::~Entity() {
219219}
220220
221221SceneUpdateContext::Clip::Clip (SceneUpdateContext& context,
222- scenic_lib ::Shape& shape,
222+ scenic ::Shape& shape,
223223 const SkRect& shape_bounds)
224224 : Entity(context) {
225- scenic_lib ::ShapeNode shape_node (context.session ());
225+ scenic ::ShapeNode shape_node (context.session ());
226226 shape_node.SetShape (shape);
227227 shape_node.SetTranslation (shape_bounds.width () * 0 .5f + shape_bounds.left (),
228228 shape_bounds.height () * 0 .5f + shape_bounds.top (),
0 commit comments