diff --git a/DEPS b/DEPS index 41fd627a82..22736c28c1 100644 --- a/DEPS +++ b/DEPS @@ -12,7 +12,7 @@ }, { "url": "${PAG_GROUP}/tgfx.git", - "commit": "9ad584b3b86df66ce03e6393fbf19e47296d6f57", + "commit": "d864aeeb6184c97664bfaec7a164a22d4ab723b7", "dir": "third_party/tgfx" }, { diff --git a/src/rendering/caches/RenderCache.cpp b/src/rendering/caches/RenderCache.cpp index 21f18362cb..b9fbd14d34 100644 --- a/src/rendering/caches/RenderCache.cpp +++ b/src/rendering/caches/RenderCache.cpp @@ -214,7 +214,7 @@ void RenderCache::detachFromContext() { clearExpiredDecodedImages(); clearExpiredSnapshots(); if (!timestamps.empty()) { - // Always purge scratch resources that haven't been used in 1 frame. + // Always purge recycled resources that haven't been used in 1 frame. context->purgeResourcesNotUsedSince(timestamps.back(), true); } if (context->memoryUsage() + graphicsMemory > PURGEABLE_GRAPHICS_MEMORY && diff --git a/src/rendering/video/SoftwareDecoderWrapper.cpp b/src/rendering/video/SoftwareDecoderWrapper.cpp index 27153498ff..2b94d8bb18 100644 --- a/src/rendering/video/SoftwareDecoderWrapper.cpp +++ b/src/rendering/video/SoftwareDecoderWrapper.cpp @@ -43,11 +43,11 @@ class SoftwareI420Data : public tgfx::YUVData { return data.size(); } - const void* getBaseAddressAt(int planeIndex) const override { + const void* getBaseAddressAt(size_t planeIndex) const override { return data[planeIndex]; } - size_t getRowBytesAt(int planeIndex) const override { + size_t getRowBytesAt(size_t planeIndex) const override { return rowBytes[planeIndex]; }