Updates following 'Rename BitmapImage as BufferImage' 14/35714/2
authorXiangyin Ma <x1.ma@samsung.com>
Mon, 23 Feb 2015 17:21:03 +0000 (17:21 +0000)
committerXiangyin Ma <x1.ma@samsung.com>
Tue, 24 Feb 2015 18:42:50 +0000 (10:42 -0800)
Change-Id: I208e8b7f810ad7094d158346b1381de83a78dcc3

demo/dali-table-view.cpp
demo/dali-table-view.h
examples/item-view/item-view-example.cpp

index b0376ec..81190fb 100644 (file)
@@ -685,7 +685,7 @@ void DaliTableView::OnKeyEvent( const KeyEvent& event )
 void DaliTableView::SetupBackground( Actor bubbleContainer, Actor backgroundLayer, const Vector2& size )
 {
   // Create distance field shape.
-  BitmapImage distanceField;
+  BufferImage distanceField;
   Size imageSize( 512, 512 );
   CreateShapeImage( CIRCLE, imageSize, distanceField );
 
@@ -703,7 +703,7 @@ void DaliTableView::SetupBackground( Actor bubbleContainer, Actor backgroundLaye
   AddBackgroundActors( bubbleContainer, NUM_BACKGROUND_IMAGES, distanceField, size );
 }
 
-void DaliTableView::AddBackgroundActors( Actor layer, int count, BitmapImage distanceField, const Dali::Vector2& size )
+void DaliTableView::AddBackgroundActors( Actor layer, int count, BufferImage distanceField, const Dali::Vector2& size )
 {
   for( int i = 0; i < count; ++i )
   {
@@ -751,10 +751,10 @@ void DaliTableView::AddBackgroundActors( Actor layer, int count, BitmapImage dis
   }
 }
 
-void DaliTableView::CreateShapeImage( ShapeType shapeType, const Size& size, BitmapImage& distanceFieldOut )
+void DaliTableView::CreateShapeImage( ShapeType shapeType, const Size& size, BufferImage& distanceFieldOut )
 {
   // this bitmap will hold the alpha map for the distance field shader
-  distanceFieldOut = BitmapImage::New( size.width, size.height, Pixel::A8 );
+  distanceFieldOut = BufferImage::New( size.width, size.height, Pixel::A8 );
 
   // Generate bit pattern
   std::vector< unsigned char > imageDataA8;
index 98423de..bc77fba 100644 (file)
@@ -288,17 +288,16 @@ private: // Application callbacks & implementation
    * @param[in] distanceField The distance field bitmap to use
    * @param[in] size The size of the actor
    */
-  void AddBackgroundActors( Dali::Actor layer, int count, Dali::BitmapImage distanceField, const Dali::Vector2& size );
+  void AddBackgroundActors( Dali::Actor layer, int count, Dali::BufferImage distanceField, const Dali::Vector2& size );
 
   /**
    * Create a bitmap with the specified shape and also output a distance field
    *
    * @param[in] shapeType The shape to generate
    * @param[in] size The size of the bitmap to create
-   * @param[out] imageOut The return bitmap
    * @param[out] distanceFieldOut The return depth field alpha map
    */
-  void CreateShapeImage( ShapeType shapeType, const Dali::Size& size, Dali::BitmapImage& distanceFieldOut );
+  void CreateShapeImage( ShapeType shapeType, const Dali::Size& size, Dali::BufferImage& distanceFieldOut );
 
   /**
    * Generate a square bit pattern and depth field
index 00da668..8fcb35d 100644 (file)
@@ -342,7 +342,7 @@ public:
     SetLayoutImage();
 
     // Store one 1x1 white image for multiple items to share for backgrounds:
-    mWhiteImage = BitmapImage::WHITE();
+    mWhiteImage = BufferImage::WHITE();
   }
 
   Actor OnKeyboardPreFocusChange( Actor current, Actor proposed, Control::KeyboardFocusNavigationDirection direction )
@@ -1124,7 +1124,7 @@ private:
 
   unsigned int mAlphaFuncIndex;
   TextView mAlphaFunctionText;
-  BitmapImage mWhiteImage;
+  BufferImage mWhiteImage;
 };
 
 void RunTest(Application& app)