Loading graphics/composer/2.1/utils/hal/include/composer-hal/2.1/ComposerResources.h +2 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ class ComposerHandleCache { } Error lookupCache(uint32_t slot, const native_handle_t** outHandle) { if (slot < mHandles.size()) { if (slot >= 0 && slot < mHandles.size()) { *outHandle = mHandles[slot]; return Error::NONE; } else { Loading @@ -180,7 +180,7 @@ class ComposerHandleCache { Error updateCache(uint32_t slot, const native_handle_t* handle, const native_handle** outReplacedHandle) { if (slot < mHandles.size()) { if (slot >= 0 && slot < mHandles.size()) { auto& cachedHandle = mHandles[slot]; *outReplacedHandle = cachedHandle; cachedHandle = handle; Loading Loading
graphics/composer/2.1/utils/hal/include/composer-hal/2.1/ComposerResources.h +2 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ class ComposerHandleCache { } Error lookupCache(uint32_t slot, const native_handle_t** outHandle) { if (slot < mHandles.size()) { if (slot >= 0 && slot < mHandles.size()) { *outHandle = mHandles[slot]; return Error::NONE; } else { Loading @@ -180,7 +180,7 @@ class ComposerHandleCache { Error updateCache(uint32_t slot, const native_handle_t* handle, const native_handle** outReplacedHandle) { if (slot < mHandles.size()) { if (slot >= 0 && slot < mHandles.size()) { auto& cachedHandle = mHandles[slot]; *outReplacedHandle = cachedHandle; cachedHandle = handle; Loading