summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc2.cpp
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2019-01-31 14:23:43 -0800
committer Valerie Hau <vhau@google.com> 2019-02-01 09:59:38 -0800
commit250c654efecb084f5da8157eae2e210a4eddf19f (patch)
tree6859d5ee4bb2a46f6c27247caf25544379298b4a /libs/ui/Gralloc2.cpp
parent4701f467ea47478ee26b7a7caf997a36bab54143 (diff)
Adding optional 3.0 lock support to GraphicBuffer
Adding optional 3.0 lock parameters to GraphicBuffer Modifying isSupported to isLoaded Bug: 123423521 Test: build, boot Change-Id: If4a92bd7916072c2cd7005ca6f332f4a90098d27
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
-rw-r--r--libs/ui/Gralloc2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ui/Gralloc2.cpp b/libs/ui/Gralloc2.cpp
index 2c4b5f32b1..92ea07cbc4 100644
--- a/libs/ui/Gralloc2.cpp
+++ b/libs/ui/Gralloc2.cpp
@@ -94,7 +94,7 @@ Gralloc2Mapper::Gralloc2Mapper() {
mMapperV2_1 = IMapper::castFrom(mMapper);
}
-bool Gralloc2Mapper::isSupported() const {
+bool Gralloc2Mapper::isLoaded() const {
return mMapper != nullptr;
}
@@ -359,7 +359,7 @@ Gralloc2Allocator::Gralloc2Allocator(const Gralloc2Mapper& mapper) : mMapper(map
}
}
-bool Gralloc2Allocator::isSupported() const {
+bool Gralloc2Allocator::isLoaded() const {
return mAllocator != nullptr;
}