commit | 6e47b7e024ec38f32e4c1acec41462828be85c3d | [log] [tgz] |
---|---|---|
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | Wed Jan 22 14:36:03 2020 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Wed Jan 22 14:36:03 2020 -0800 |
tree | 52c7d1ab4ee989cbe15a04db229631f732bcd50d | |
parent | 43837ca0f4414dd5c35da32165eda2324c4957c0 [diff] | |
parent | af46079fc7fd7789b16fd40a3429b910320d8593 [diff] |
Merge "benchmark: Support "software" instance of codec2 service" am: af46079fc7 Change-Id: I9e0d7b3967054c792b43f701f418f119a7ae6288
diff --git a/media/tests/benchmark/src/native/common/BenchmarkC2Common.cpp b/media/tests/benchmark/src/native/common/BenchmarkC2Common.cpp index 622a0e1..e09f468 100644 --- a/media/tests/benchmark/src/native/common/BenchmarkC2Common.cpp +++ b/media/tests/benchmark/src/native/common/BenchmarkC2Common.cpp
@@ -22,6 +22,9 @@ int32_t BenchmarkC2Common::setupCodec2() { ALOGV("In %s", __func__); mClient = android::Codec2Client::CreateFromService("default"); + if (!mClient) { + mClient = android::Codec2Client::CreateFromService("software"); + } if (!mClient) return -1; std::shared_ptr<C2AllocatorStore> store = android::GetCodec2PlatformAllocatorStore();