[3.0] Fixed issue with Indicator when plugging/unplugging charger 51/113751/2
authorPaul Wisbey <p.wisbey@samsung.com>
Wed, 8 Feb 2017 19:03:45 +0000 (19:03 +0000)
committerPaul Wisbey <p.wisbey@samsung.com>
Wed, 8 Feb 2017 19:56:03 +0000 (11:56 -0800)
RequestUpdate()
Update thread wakes up in UpdateRenderReady()
* update & render *
* Indicator is updated *
RequestUpdateOnce()
   IsUpdateRenderThreadPaused() returns false
ProcessSleepRequest()
Update thread sleeps in UpdateRenderReady()

In other words we're sleeping too soon, before the Indicator has been rendered.
This is more likely to occur on mobile, since we get spammed with damage events.

Change-Id: I587c80a6545c0f5623c02dd5443b8e2ea2319be4

adaptors/base/combined-update-render/combined-update-render-controller.cpp

index a1496db..738da28 100644 (file)
@@ -245,6 +245,12 @@ void CombinedUpdateRenderController::RequestUpdate()
 
 void CombinedUpdateRenderController::RequestUpdateOnce()
 {
+  // Increment the update-request count to the maximum
+  if( mUpdateRequestCount < MAXIMUM_UPDATE_REQUESTS )
+  {
+    ++mUpdateRequestCount;
+  }
+
   if( IsUpdateRenderThreadPaused() )
   {
     LOG_EVENT_TRACE;