Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9ffcd42 authored by xiahong.bao's avatar xiahong.bao
Browse files

BufferPoolClient: Increase kReceiveTimeoutUs to 2000000



Increase BufferPoolClient's kReceiveTimeoutUs to 2000000 because
in some cts tests, such as
android.video.cts.VideoEncoderDecoderTest#testAvcGoog0Qual1920x1080
it has many CPU read with hardware's non-cacheable framebuffer,
this CPU read operation cost too much time and will lead to buffer
timeout in BufferPoolClient. BufferPoolClient shlould take it into
consideration and increase kReceiveTimeoutUs.

Bug: 153613044

Signed-off-by: default avatarxiahong.bao <xiahong.bao@nxp.com>
Change-Id: I79d4deafbd7c8af246a03a197e3215e4308a9453
parent c9c79ff6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ namespace bufferpool {
namespace V2_0 {
namespace V2_0 {
namespace implementation {
namespace implementation {


static constexpr int64_t kReceiveTimeoutUs = 1000000; // 100ms
static constexpr int64_t kReceiveTimeoutUs = 2000000; // 2s
static constexpr int kPostMaxRetry = 3;
static constexpr int kPostMaxRetry = 3;
static constexpr int kCacheTtlUs = 1000000; // TODO: tune
static constexpr int kCacheTtlUs = 1000000; // TODO: tune
static constexpr size_t kMaxCachedBufferCount = 64;
static constexpr size_t kMaxCachedBufferCount = 64;