Added a method so that we can render once more, even if we're paused 92/148092/2
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 6 Sep 2017 18:19:45 +0000 (19:19 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 7 Sep 2017 09:45:13 +0000 (10:45 +0100)
Change-Id: Ide4ab561faaf11954d265639b674a629296738e0

adaptors/common/adaptor-impl.cpp
adaptors/common/adaptor-impl.h
adaptors/common/adaptor.cpp
adaptors/integration-api/adaptor.h

index 6201c5c..3d8f002 100644 (file)
@@ -744,6 +744,11 @@ void Adaptor::NotifyLanguageChanged()
   mLanguageChangedSignal.Emit( mAdaptor );
 }
 
+void Adaptor::RenderOnce()
+{
+  RequestUpdateOnce();
+}
+
 void Adaptor::RequestUpdateOnce()
 {
   if( PAUSED_WHILE_HIDDEN != mState )
index 5920b85..3ace87b 100644 (file)
@@ -351,6 +351,11 @@ public:
    */
   void SetRootLayoutDirection( std::string locale );
 
+  /**
+   * @copydoc Dali::Adaptor::RenderOnce
+   */
+  void RenderOnce();
+
 public:  //AdaptorInternalServices
 
   /**
index 847f42e..78c33ab 100644 (file)
@@ -184,6 +184,11 @@ void Adaptor::SetStereoBase(  float stereoBase )
   mImpl->SetStereoBase( stereoBase );
 }
 
+void Adaptor::RenderOnce()
+{
+  mImpl->RenderOnce();
+}
+
 Adaptor::Adaptor()
 : mImpl( NULL )
 {
index 08d7f4b..cbb290e 100644 (file)
@@ -339,6 +339,12 @@ public:
    */
   void SetStereoBase( float stereoBase );
 
+  /**
+   * @brief Renders once more even if we're paused
+   * @note Will not work if the window is hidden.
+   */
+  void RenderOnce();
+
 public:  // Signals
 
   /**