Change SetNativeImageSource() to SetSource() 11/60811/1
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 2 Mar 2016 09:21:36 +0000 (18:21 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 2 Mar 2016 09:56:19 +0000 (18:56 +0900)
 - Change API name before ACR for the API.

Change-Id: I5aa6310ff1e3e91def89983f5cf1807085ae847d

adaptors/public-api/adaptor-framework/native-image-source.cpp
adaptors/public-api/adaptor-framework/native-image-source.h
adaptors/tizen/native-image-source-impl-tizen.cpp
adaptors/tizen/native-image-source-impl.h
adaptors/x11/native-image-source-impl-x.cpp
adaptors/x11/native-image-source-impl.h

index 9efc7d3608bd8d790f92e74c6e37822e485d85cb..c4764e4f0b8ece4931bd8ea6597c4dc21ca2415b 100644 (file)
@@ -55,9 +55,9 @@ bool NativeImageSource::EncodeToFile(const std::string& filename) const
   return mImpl->EncodeToFile(filename);
 }
 
-void NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+void NativeImageSource::SetSource( Any source )
 {
-  mImpl->SetNativeImageSource( nativeImageSource );
+  mImpl->SetSource( source );
 }
 
 bool NativeImageSource::GlExtensionCreate()
index 2ec3ec296ee527d47824be4a0aa90443d11d2336..e626cd5385fa918641ef9afe98b0620d72e8e676 100644 (file)
@@ -129,12 +129,12 @@ public:
   bool EncodeToFile(const std::string& filename) const;
 
   /**
-   * @brief Set an existing native image source
+   * @brief Set an existing source
    *
    * @SINCE_1_1.19
-   * @param[in] source Any handle with native image source
+   * @param[in] source Any handle with the source
    */
-  void SetNativeImageSource( Any source );
+  void SetSource( Any source );
 
 private:   // native image
 
index 4ebed3707a3cbb3e9658205e57f281fc88713ec6..f9d1923590c5c8d051baa7e4a0bbb47a6ee1c897 100644 (file)
@@ -289,7 +289,7 @@ bool NativeImageSource::EncodeToFile(const std::string& filename) const
   return false;
 }
 
-void NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+void NativeImageSource::SetSource( Any source )
 {
   if( mOwnTbmsurface && mTbmsurface != NULL )
   {
@@ -301,7 +301,7 @@ void NativeImageSource::SetNativeImageSource( Any nativeImageSource )
     mTbmsurface = NULL;
   }
 
-  mTbmsurface = GetSurfaceFromAny( nativeImageSource );
+  mTbmsurface = GetSurfaceFromAny( source );
   mOwnTbmsurface = false;
 
   if( mTbmsurface != NULL )
index 03170475ca61ddc537ac0607d9353c07cdeb69f0..5e251b7395a5ccb8365a3cfa2ce99aa5ee0e89c3 100644 (file)
@@ -72,9 +72,9 @@ public:
   bool EncodeToFile(const std::string& filename) const;
 
   /**
-   * @copydoc Dali::NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+   * @copydoc Dali::NativeImageSource::SetSource( Any source )
    */
-  void SetNativeImageSource( Any nativeImageSource );
+  void SetSource( Any source );
 
   /**
    * destructor
index 84d78875fbeac361f2ad712e7e000faf145a33c2..f97b681c2e57615a2c2728278687b13db977721c 100644 (file)
@@ -273,9 +273,9 @@ bool NativeImageSource::EncodeToFile(const std::string& filename) const
   return false;
 }
 
-void NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+void NativeImageSource::SetSource( Any source )
 {
-  mPixmap = GetPixmapFromAny( nativeImageSource );
+  mPixmap = GetPixmapFromAny( source );
 
   if (mPixmap)
   {
index c7e235741fb5445c5db690f5166af70c8db3cc99..20f4585ca923970591c2a64cde6c8a5bd6ff75b5 100644 (file)
@@ -70,9 +70,9 @@ public:
   bool EncodeToFile(const std::string& filename) const;
 
   /**
-   * @copydoc Dali::NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+   * @copydoc Dali::NativeImageSource::SetSource( Any source )
    */
-  void SetNativeImageSource( Any nativeImageSource );
+  void SetSource( Any source );
 
   /**
    * destructor