[3.0] Change SetNativeImageSource() to SetSource() 13/60813/2
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 2 Mar 2016 09:21:36 +0000 (18:21 +0900)
committerTaeyoon Lee <taeyoon0.lee@samsung.com>
Wed, 2 Mar 2016 09:59:47 +0000 (01:59 -0800)
 - 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 9efc7d3..c4764e4 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 2ec3ec2..e626cd5 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 4ebed37..f9d1923 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 0317047..5e251b7 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 84d7887..f97b681 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 c7e2357..20f4585 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