Loading libs/ui/Region.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -513,6 +513,12 @@ void Region::rasterizer::flushSpan() bool Region::validate(const Region& reg, const char* name, bool silent) { if (reg.mStorage.isEmpty()) { ALOGE_IF(!silent, "%s: mStorage is empty, which is never valid", name); // return immediately as the code below assumes mStorage is non-empty return false; } bool result = true; const_iterator cur = reg.begin(); const_iterator const tail = reg.end(); Loading Loading
libs/ui/Region.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -513,6 +513,12 @@ void Region::rasterizer::flushSpan() bool Region::validate(const Region& reg, const char* name, bool silent) { if (reg.mStorage.isEmpty()) { ALOGE_IF(!silent, "%s: mStorage is empty, which is never valid", name); // return immediately as the code below assumes mStorage is non-empty return false; } bool result = true; const_iterator cur = reg.begin(); const_iterator const tail = reg.end(); Loading