From 250c654efecb084f5da8157eae2e210a4eddf19f Mon Sep 17 00:00:00 2001 From: Valerie Hau Date: Thu, 31 Jan 2019 14:23:43 -0800 Subject: 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 --- libs/ui/Gralloc3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ui/Gralloc3.cpp') diff --git a/libs/ui/Gralloc3.cpp b/libs/ui/Gralloc3.cpp index acb6b01188..306a74b80c 100644 --- a/libs/ui/Gralloc3.cpp +++ b/libs/ui/Gralloc3.cpp @@ -92,7 +92,7 @@ Gralloc3Mapper::Gralloc3Mapper() { } } -bool Gralloc3Mapper::isSupported() const { +bool Gralloc3Mapper::isLoaded() const { return mMapper != nullptr; } @@ -322,7 +322,7 @@ Gralloc3Allocator::Gralloc3Allocator(const Gralloc3Mapper& mapper) : mMapper(map } } -bool Gralloc3Allocator::isSupported() const { +bool Gralloc3Allocator::isLoaded() const { return mAllocator != nullptr; } -- cgit v1.2.3-59-g8ed1b