Update comment on Scenic shapes following feedback from schwa423@ (#4563)

This commit is contained in:
amirh
2018-01-17 14:39:40 -08:00
committed by GitHub
parent 4822507560
commit d5cd548b5d
+4 -2
View File
@@ -24,10 +24,12 @@ class PhysicalShapeLayer : public ContainerLayer {
} else if (path.isRRect(&frameRRect_)) {
isRect_ = frameRRect_.isRect();
} else {
// Fuchsia's compositor currently only supports rounded rectangle frames.
// Scenic currently doesn't provide an easy way to create shapes from
// arbitrary paths.
// For shapes that cannot be represented as a rounded rectangle we
// default to use the bounding rectangle.
// TODO(amirh): fix this once Fuchsia supports arbitrary shaped frames.
// TODO(amirh): fix this once we have a way to create a Scenic shape from
// an SkPath.
frameRRect_ = SkRRect::MakeRect(path.getBounds());
}
}