ComposerClient[Writer/Reader]: enforce a specific display
Add a new parameter and member to ComposerClient[Writer/Reader] representing the only display it should apply to. The caller is responsible for ensuring that they only ever refer to that same display. The display is recorded here for error checking. This isn't strictly necessary, but crashing here verifies that we only use the proper display. This is helpful for use with DisplayCapability.MULTI_THREADED_PRESENT, although it is fine to use a single display per writer/reader without the capability. For the Reader, make the display optional, so that a single reader can continue to be used for multiple displays. This allows devices without the new DisplayCapability to continue to work without changes. Remove copy constructor and operator=. Add a move constructor. This ensures it will be properly moved when used in containers. Bug: 241285491 Test: make Change-Id: Ic7116e64138280747a32500c67dedeeabd7c669b
Loading
Please register or sign in to comment