diff options
author | 2023-04-28 20:12:38 +0000 | |
---|---|---|
committer | 2023-04-28 20:12:38 +0000 | |
commit | ee324d5fe81414b3971ae9579878a70afa8f5c7f (patch) | |
tree | 2a219ea31d038873cb86b0cc670a6aa9a667a15a | |
parent | 0011553e6e60a8403600765b32192ebe228ab94b (diff) | |
parent | fd1f557c48bf3a36f3a5313484698abf61df9b45 (diff) |
Merge "Convert backend texture creation failure from ALOGE to FATAL log" into udc-dev
-rw-r--r-- | libs/renderengine/skia/AutoBackendTexture.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/renderengine/skia/AutoBackendTexture.cpp b/libs/renderengine/skia/AutoBackendTexture.cpp index 932be56cde..c412c9cff7 100644 --- a/libs/renderengine/skia/AutoBackendTexture.cpp +++ b/libs/renderengine/skia/AutoBackendTexture.cpp @@ -43,10 +43,12 @@ AutoBackendTexture::AutoBackendTexture(GrDirectContext* context, AHardwareBuffer createProtectedImage, backendFormat, isOutputBuffer); mColorType = GrAHardwareBufferUtils::GetSkColorTypeFromBufferFormat(desc.format); - ALOGE_IF(!mBackendTexture.isValid(), - "Failed to create a valid texture. [%p]:[%d,%d] isProtected:%d isWriteable:%d " - "format:%d", - this, desc.width, desc.height, createProtectedImage, isOutputBuffer, desc.format); + if (!mBackendTexture.isValid() || !desc.width || !desc.height) { + LOG_ALWAYS_FATAL("Failed to create a valid texture. [%p]:[%d,%d] isProtected:%d " + "isWriteable:%d format:%d", + this, desc.width, desc.height, createProtectedImage, isOutputBuffer, + desc.format); + } } AutoBackendTexture::~AutoBackendTexture() { |