[scenic] Opacity support is a HACK.
(this relands I5705b27f46002b904e8d025e360b30f501871de7, modified for a soft transition) For reasons outside the scope of this CL description, Scenic wishes to avoid the use of translucent objects within 3D scenes; modifying opacity should only be available as a 2D operation. However, Scenic does not yet support 2D scenes; "everything" is currently part of a 3D scene. As a short term solution, we therefore allow OpacityNode to modify the opacity of shapes in the 3D scene, but mark it as a HACK to indicate that this support will be removed at some point in the future. SCN-478 #comment Testability: no functional change. Change-Id: Iec09f956655ca1fa49c241066d70b7b5dabd948b
Showing
- garnet/lib/ui/gfx/engine/gfx_command_applier.cc 4 additions, 2 deletionsgarnet/lib/ui/gfx/engine/gfx_command_applier.cc
- garnet/lib/ui/gfx/engine/gfx_command_applier.h 6 additions, 4 deletionsgarnet/lib/ui/gfx/engine/gfx_command_applier.h
- garnet/testing/views/opacity_view.h 1 addition, 1 deletiongarnet/testing/views/opacity_view.h
- sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx.api 2 additions, 2 deletionssdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx.api
- sdk/fidl/fuchsia.ui.gfx/nodes.fidl 1 addition, 1 deletionsdk/fidl/fuchsia.ui.gfx/nodes.fidl
- sdk/fidl/fuchsia.ui.gfx/resources.fidl 1 addition, 1 deletionsdk/fidl/fuchsia.ui.gfx/resources.fidl
- sdk/lib/ui/scenic/cpp/commands.cc 2 additions, 2 deletionssdk/lib/ui/scenic/cpp/commands.cc
- sdk/lib/ui/scenic/cpp/commands.h 1 addition, 1 deletionsdk/lib/ui/scenic/cpp/commands.h
- sdk/lib/ui/scenic/cpp/resources.cc 16 additions, 3 deletionssdk/lib/ui/scenic/cpp/resources.cc
- sdk/lib/ui/scenic/cpp/resources.h 12 additions, 0 deletionssdk/lib/ui/scenic/cpp/resources.h
- sdk/lib/ui/scenic/cpp/scenic_cpp.api 2 additions, 2 deletionssdk/lib/ui/scenic/cpp/scenic_cpp.api
Loading
Please register or sign in to comment