-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply cleanups to
RenderingMixPresentationFinalizer
.
- Replace constructor and `Initialize` with a factory function (`Create`): - Protects from misuse as it can never be an in an uninitialized state. - Class can hold fewer variables, since they are only needed at initialize. - Pass in `absl::Nullable`-annotated pointer for factories that are safe to disable. Ownership transfer via unique_ptr is not needed because the factory is no longer held. - `Finalize`: Remove duplicate use of `validate_loudness`. It was previously duplicated at the constructor (now factory function). - `PushTemporalUnit`: Remove unused OBU argument. - `PushTemporalUnit`: Simplify to directly take a reference to a list of parameter blocks. Now we no longer need to deal with iterators since the callsite code always holds one temporal unit at a time. - Move some structs in the interface to private where feasible. PiperOrigin-RevId: 713417852
- Loading branch information
Showing
5 changed files
with
194 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.