未验证 提交 5cec4778 编写于 作者: M mikejurka 提交者: GitHub

[fuchsia] Re-enable shadows. (#17380)

Now that client apps use the same elevations on
Fuchsia and other platforms, shadows should look
identical.
上级 b3c7741d
......@@ -140,18 +140,7 @@ void PhysicalShapeLayer::Paint(PaintContext& context) const {
TRACE_EVENT0("flutter", "PhysicalShapeLayer::Paint");
FML_DCHECK(needs_painting());
#if defined(OS_FUCHSIA)
// TODO(mikejurka,dworsham,liyl): Re-enable shadow drawing here.
// Shadows are not rendered for PhysicalShapeLayers that exist as separate
// system services; this is to maintain compatibility with the previous
// implementation and has the added benefit of requiring smaller textures,
// since extra space is not needed for the shadows. This behavior might change
// after clients adjust their usage of PhysicalShaperLayer to make elevation
// correlate to desired shadow size.
if (false && !child_layer_exists_below_ && elevation_ != 0) {
#else
if (elevation_ != 0) {
#endif
DrawShadow(context.leaf_nodes_canvas, path_, shadow_color_, elevation_,
SkColorGetA(color_) != 0xff, context.frame_device_pixel_ratio);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册