Merge "Added an devel-API to check whether video texture is supported" into devel...
authorHyunJu Shin <hyunjushin@samsung.com>
Tue, 17 Oct 2017 08:08:05 +0000 (08:08 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Tue, 17 Oct 2017 08:08:05 +0000 (08:08 +0000)
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..7a66095 100644 (file)
@@ -289,6 +289,16 @@ void VideoPlayer::Backward( int millisecond )
   }
 }
 
+bool VideoPlayer::IsVideoTextureSupported() const
+{
+  if( mPlugin != NULL )
+  {
+    return mPlugin->IsVideoTextureSupported();
+  }
+
+  return false;
+}
+
 } // namespace Adaptor;
 } // namespace Internal;
 } // namespace Dali;
index e37b5f6..eaaa2fb 100644 (file)
@@ -159,6 +159,11 @@ public:
    */
   void Backward( int millisecond );
 
+  /**
+   * @brief Dali::VideoPlayer::IsVideoTextureSupported()
+   */
+  bool IsVideoTextureSupported() const;
+
 private:
 
   /**
index 4bbcc04..f1c309b 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() const = 0;
+
 };
 
 } // namespace Dali;
index fb4b2a2..281ae39 100644 (file)
@@ -171,5 +171,10 @@ void VideoPlayer::Backward( int millisecond )
   GetImplementation( *this ).Backward( millisecond );
 }
 
+bool VideoPlayer::IsVideoTextureSupported() const
+{
+  return GetImplementation( *this ).IsVideoTextureSupported();
+}
+
 } // namespace Dali;
 
index 8c69719..f548ab1 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() const;
+
 private: // Not intended for application developers
 
   /**