Add notify functions to enqueue read buffer and image calls

This commit adds notifications to enqueue read buffer and image calls
and setters/getters to mark/check if an allocation is dumpable.

Change-Id: I123f24752d2a86abcf934e0d404f4e0ecf1729cc
This commit is contained in:
Milczarek, Slawomir
2018-08-22 18:41:52 +02:00
parent b91c14f70e
commit f6f9c0f456
9 changed files with 66 additions and 0 deletions

View File

@@ -481,3 +481,10 @@ TEST(MemObj, givenNotSharedMemObjectWhenChangingGfxAllocationThenOldAllocationIs
EXPECT_EQ(newGfxAllocation, memObj.getGraphicsAllocation());
}
TEST(MemObj, givenGraphicsAllocationWhenCallingIsAllocDumpableThenItReturnsTheCorrectValue) {
GraphicsAllocation gfxAllocation(nullptr, 0);
EXPECT_FALSE(gfxAllocation.isAllocDumpable());
gfxAllocation.setAllocDumpable(true);
EXPECT_TRUE(gfxAllocation.isAllocDumpable());
}