
Instead of invoking "undefined behavior" may occur when a class is used incorrectly, which is clear but not very helpful to callers, specify what Apps or users of a class should do when issues occur. Apply this to Compositor as well, where this otherwise might seem unclear. PiperOrigin-RevId: 563406219