summaryrefslogtreecommitdiffstats
path: root/media/codec2/hidl/client/include/codec2/hidl/client.h
diff options
context:
space:
mode:
authorPawin Vongmasa <pawin@google.com>2020-03-05 04:36:08 -0800
committerBruno Martins <bgcngm@gmail.com>2020-06-06 18:17:47 +0200
commiteb8b20132fdcff88d4a1f2a7db6881eee02e5794 (patch)
tree9728be2742607204d7a6d02293e4bd473333335f /media/codec2/hidl/client/include/codec2/hidl/client.h
parent472ff18aac21b921e25756ed917ffb70ead1dc0d (diff)
downloadframeworks_av-eb8b20132fdcff88d4a1f2a7db6881eee02e5794.tar.gz
frameworks_av-eb8b20132fdcff88d4a1f2a7db6881eee02e5794.tar.bz2
frameworks_av-eb8b20132fdcff88d4a1f2a7db6881eee02e5794.zip
Codec2Client: Add function to set preferred store
Test: None Bug: 142782942 Change-Id: Ic2bc89bb3b44652717ee65d2bfd73b7d4af8d080 Merged-In: Ic2bc89bb3b44652717ee65d2bfd73b7d4af8d080 (cherry picked from commit a87e24eac1287fd36891c76fb19ebcc5e5664390)
Diffstat (limited to 'media/codec2/hidl/client/include/codec2/hidl/client.h')
-rw-r--r--media/codec2/hidl/client/include/codec2/hidl/client.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/media/codec2/hidl/client/include/codec2/hidl/client.h b/media/codec2/hidl/client/include/codec2/hidl/client.h
index c37407f5a4..f5884a0634 100644
--- a/media/codec2/hidl/client/include/codec2/hidl/client.h
+++ b/media/codec2/hidl/client/include/codec2/hidl/client.h
@@ -172,8 +172,15 @@ struct Codec2Client : public Codec2ConfigurableClient {
// Note: A software service will have "_software" as a suffix.
static std::vector<std::string> const& GetServiceNames();
- // Create a service with a given service name.
- static std::shared_ptr<Codec2Client> CreateFromService(char const* name);
+ // Create a client to a service with a given name.
+ //
+ // After a client to the service is successfully created, if
+ // setAsPreferredCodec2ComponentStore is true, the component store that the
+ // service hosts will be set as the preferred C2ComponentStore for this
+ // process. (See SetPreferredCodec2ComponentStore() for more information.)
+ static std::shared_ptr<Codec2Client> CreateFromService(
+ char const* name,
+ bool setAsPreferredCodec2ComponentStore = false);
// Get clients to all services.
static std::vector<std::shared_ptr<Codec2Client>> CreateFromAllServices();