Flush pipeline cache only if required. 97/301097/4
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 8 Nov 2023 10:46:25 +0000 (19:46 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 13 Nov 2023 02:02:51 +0000 (11:02 +0900)
commit2ffec90bdeda18dd17c3aca29f291a6d36b829d9
tree129be1b203a69bbeb830773efd50ae524b328200
parent6a04c47d9944a5b14b48fd9cfbd3950aaeb0fd23
Flush pipeline cache only if required.

Previously, we always flush pipeline cache every frame.

But actually, PipelineImpl / ProgramImpl reference count never be reduced
when we don't call destructor.

So, let we flush cache only if DiscardQueue exist at this frame.

Change-Id: I2a7dfb03d2580d10651a9f924991e0e943e29a24
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/egl-graphics-controller.cpp
dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.cpp [changed mode: 0755->0644]
dali/internal/graphics/gles-impl/gles-graphics-pipeline-cache.h