summaryrefslogtreecommitdiff
path: root/licenses/cc-by-sa-v4.0.txt
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-05 17:11:51 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-06-10 17:29:27 +0300
commit33534000275020cacaeddde6bee7f98377bf1170 (patch)
tree914eac5112d5ae967489f0d65333ffe1aad8f16c /licenses/cc-by-sa-v4.0.txt
parent339e9b2d976cc726ee4ec7de78ab5b7978b2eb8e (diff)
libcamera: pipeline_handler: Optimise factory implementation
The REGISTER_PIPELINE_HANDLER() macro defines and instantiates a subclass of the PipelineHandlerFactory class that specialises the virtual create() method. Now that create() does more than just creating an instance, boilerplate code gets duplicated between different factories. Factor out the instance creation code to a new virtual createInstance() method, and turn create() into a non-virtual method of the base class that can then be defined in the .cpp file. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'licenses/cc-by-sa-v4.0.txt')
0 files changed, 0 insertions, 0 deletions