From 5127a97bd8df18f6b2c40ca2540be58377362bcb Mon Sep 17 00:00:00 2001 From: Marin Shalamanov Date: Tue, 29 Sep 2020 16:03:55 +0200 Subject: [PATCH] Update the comment for ReplacedHandle Test: n/a Bug: n/a Change-Id: I388af766fb1b5e78aabfc72c70883e71d05ce18c --- .../include/composer-resources/2.1/ComposerResources.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/ComposerResources.h b/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/ComposerResources.h index 3738278559..df5513ea0a 100644 --- a/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/ComposerResources.h +++ b/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/ComposerResources.h @@ -177,7 +177,8 @@ class ComposerResources { bool mustValidateDisplay(Display display); // When a buffer in the cache is replaced by a new one, we must keep it - // alive until it has been replaced in ComposerHal. + // alive until it has been replaced in ComposerHal because it is still using + // the old buffer. class ReplacedHandle { public: explicit ReplacedHandle(bool isBuffer) : mIsBuffer(isBuffer) {}