[4.0] Added an devel-API to check whether video texture is supported 82/155682/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:29:13 +0000 (11:29 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:29:23 +0000 (11:29 +0900)
This reverts commit 9b639a223f9e0c389f646bbb6f09608476495c3d.

Change-Id: I3869a13e0f7252d8add6a26a5e579cb84bcec66d

adaptors/common/video-player-impl.cpp
adaptors/common/video-player-impl.h
adaptors/devel-api/adaptor-framework/video-player-plugin.h
adaptors/devel-api/adaptor-framework/video-player.cpp
adaptors/devel-api/adaptor-framework/video-player.h

index 50e3e6b..0807e2a 100644 (file)
@@ -289,6 +289,16 @@ void VideoPlayer::Backward( int millisecond )
   }
 }
 
+bool VideoPlayer::IsVideoTextureSupported()
+{
+  if( mPlugin != NULL )
+  {
+    return mPlugin->IsVideoTextureSupported();
+  }
+
+  return false;
+}
+
 } // namespace Adaptor;
 } // namespace Internal;
 } // namespace Dali;
index e37b5f6..498a761 100644 (file)
@@ -159,6 +159,11 @@ public:
    */
   void Backward( int millisecond );
 
+  /**
+   * @brief Dali::VideoPlayer::IsVideoTextureSupported()
+   */
+  bool IsVideoTextureSupported();
+
 private:
 
   /**
index 4bbcc04..10a6d5d 100644 (file)
@@ -211,6 +211,12 @@ public:
    */
   virtual void Backward( int millisecond ) = 0;
 
+  /**
+   * @brief Checks whether the video texture is supported
+   * @return True if supported, otherwise false.
+   */
+  virtual bool IsVideoTextureSupported() = 0;
+
 };
 
 } // namespace Dali;
index fb4b2a2..048a9f0 100644 (file)
@@ -171,5 +171,10 @@ void VideoPlayer::Backward( int millisecond )
   GetImplementation( *this ).Backward( millisecond );
 }
 
+bool VideoPlayer::IsVideoTextureSupported()
+{
+  return GetImplementation( *this ).IsVideoTextureSupported();
+}
+
 } // namespace Dali;
 
index 8c69719..c630c72 100644 (file)
@@ -241,6 +241,12 @@ public:
    */
   void Backward( int millisecond );
 
+  /**
+   * @brief Checks whether the video texture is supported
+   * @return True if supported, otherwise false.
+   */
+  bool IsVideoTextureSupported();
+
 private: // Not intended for application developers
 
   /**