We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c0bc4ae + 72ddb9c commit ed5de1cCopy full SHA for ed5de1c
1 file changed
libs/gui/tests/BufferItemConsumer_test.cpp
@@ -30,6 +30,7 @@ static constexpr int kWidth = 100;
30
static constexpr int kHeight = 100;
31
static constexpr int kMaxLockedBuffers = 3;
32
static constexpr int kFormat = HAL_PIXEL_FORMAT_RGBA_8888;
33
+static constexpr int kUsage = GRALLOC_USAGE_SW_READ_RARELY;
34
static constexpr int kFrameSleepUs = 30 * 1000;
35
36
class BufferItemConsumerTest : public ::testing::Test {
@@ -56,7 +57,7 @@ class BufferItemConsumerTest : public ::testing::Test {
56
57
};
58
59
void SetUp() override {
- mBIC = new BufferItemConsumer(kFormat, kMaxLockedBuffers, true);
60
+ mBIC = new BufferItemConsumer(kUsage, kMaxLockedBuffers, true);
61
String8 name("BufferItemConsumer_Under_Test");
62
mBIC->setName(name);
63
mBFL = new BufferFreedListener(this);
0 commit comments