Rename of Control Renderers to Visuals 60/81060/11
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 22 Jul 2016 13:01:16 +0000 (14:01 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 22 Jul 2016 17:17:32 +0000 (18:17 +0100)
Change-Id: I86d4eab33c7c55cecb8ad4708c24cffd862b1225

87 files changed:
automated-tests/src/dali-toolkit/CMakeLists.txt
automated-tests/src/dali-toolkit/utc-Dali-DebugVisual.cpp [moved from automated-tests/src/dali-toolkit/utc-Dali-DebugRenderer.cpp with 69% similarity]
automated-tests/src/dali-toolkit/utc-Dali-ToolBar.cpp
automated-tests/src/dali-toolkit/utc-Dali-Visual.cpp [moved from automated-tests/src/dali-toolkit/utc-Dali-ControlRenderer.cpp with 71% similarity]
automated-tests/src/dali-toolkit/utc-Dali-VisualFactory.cpp [moved from automated-tests/src/dali-toolkit/utc-Dali-RendererFactory.cpp with 71% similarity]
build/tizen/dali-toolkit/Makefile.am
dali-toolkit/devel-api/controls/visual-factory/visual-factory.cpp [moved from dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.cpp with 50% similarity]
dali-toolkit/devel-api/controls/visual-factory/visual-factory.h [moved from dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h with 74% similarity]
dali-toolkit/devel-api/controls/visual-factory/visual.cpp [moved from dali-toolkit/devel-api/controls/renderer-factory/control-renderer.cpp with 60% similarity]
dali-toolkit/devel-api/controls/visual-factory/visual.h [moved from dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h with 86% similarity]
dali-toolkit/devel-api/file.list
dali-toolkit/devel-api/shader-effects/motion-blur-effect.h
dali-toolkit/devel-api/shader-effects/motion-stretch-effect.h
dali-toolkit/internal/controls/buttons/button-impl.cpp
dali-toolkit/internal/controls/effects-view/effects-view-impl.cpp
dali-toolkit/internal/controls/effects-view/effects-view-impl.h
dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.h
dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp
dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp
dali-toolkit/internal/controls/renderers/border/border-visual.cpp [moved from dali-toolkit/internal/controls/renderers/border/border-renderer.cpp with 81% similarity]
dali-toolkit/internal/controls/renderers/border/border-visual.h [moved from dali-toolkit/internal/controls/renderers/border/border-renderer.h with 82% similarity]
dali-toolkit/internal/controls/renderers/color/color-visual.cpp [moved from dali-toolkit/internal/controls/renderers/color/color-renderer.cpp with 62% similarity]
dali-toolkit/internal/controls/renderers/color/color-visual.h [moved from dali-toolkit/internal/controls/renderers/color/color-renderer.h with 76% similarity]
dali-toolkit/internal/controls/renderers/debug/debug-visual.cpp [moved from dali-toolkit/internal/controls/renderers/debug/debug-renderer.cpp with 76% similarity]
dali-toolkit/internal/controls/renderers/debug/debug-visual.h [moved from dali-toolkit/internal/controls/renderers/debug/debug-renderer.h with 77% similarity]
dali-toolkit/internal/controls/renderers/gradient/gradient-visual.cpp [moved from dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.cpp with 86% similarity]
dali-toolkit/internal/controls/renderers/gradient/gradient-visual.h [moved from dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h with 84% similarity]
dali-toolkit/internal/controls/renderers/image-atlas-manager.h
dali-toolkit/internal/controls/renderers/image/image-visual.cpp [moved from dali-toolkit/internal/controls/renderers/image/image-renderer.cpp with 87% similarity]
dali-toolkit/internal/controls/renderers/image/image-visual.h [moved from dali-toolkit/internal/controls/renderers/image/image-renderer.h with 86% similarity]
dali-toolkit/internal/controls/renderers/mesh/mesh-visual.cpp [moved from dali-toolkit/internal/controls/renderers/mesh/mesh-renderer.cpp with 94% similarity]
dali-toolkit/internal/controls/renderers/mesh/mesh-visual.h [moved from dali-toolkit/internal/controls/renderers/mesh/mesh-renderer.h with 88% similarity]
dali-toolkit/internal/controls/renderers/npatch/npatch-visual.cpp [moved from dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.cpp with 88% similarity]
dali-toolkit/internal/controls/renderers/npatch/npatch-visual.h [moved from dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h with 90% similarity]
dali-toolkit/internal/controls/renderers/primitive/primitive-visual.cpp [moved from dali-toolkit/internal/controls/renderers/primitive/primitive-renderer.cpp with 93% similarity]
dali-toolkit/internal/controls/renderers/primitive/primitive-visual.h [moved from dali-toolkit/internal/controls/renderers/primitive/primitive-renderer.h with 94% similarity]
dali-toolkit/internal/controls/renderers/svg/svg-rasterize-thread.cpp
dali-toolkit/internal/controls/renderers/svg/svg-rasterize-thread.h
dali-toolkit/internal/controls/renderers/svg/svg-visual.cpp [moved from dali-toolkit/internal/controls/renderers/svg/svg-renderer.cpp with 79% similarity]
dali-toolkit/internal/controls/renderers/svg/svg-visual.h [moved from dali-toolkit/internal/controls/renderers/svg/svg-renderer.h with 81% similarity]
dali-toolkit/internal/controls/renderers/visual-data-impl.cpp [moved from dali-toolkit/internal/controls/renderers/control-renderer-data-impl.cpp with 93% similarity]
dali-toolkit/internal/controls/renderers/visual-data-impl.h [moved from dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h with 93% similarity]
dali-toolkit/internal/controls/renderers/visual-factory-cache.cpp [moved from dali-toolkit/internal/controls/renderers/renderer-factory-cache.cpp with 79% similarity]
dali-toolkit/internal/controls/renderers/visual-factory-cache.h [moved from dali-toolkit/internal/controls/renderers/renderer-factory-cache.h with 93% similarity]
dali-toolkit/internal/controls/renderers/visual-factory-impl.cpp [moved from dali-toolkit/internal/controls/renderers/renderer-factory-impl.cpp with 57% similarity]
dali-toolkit/internal/controls/renderers/visual-factory-impl.h [moved from dali-toolkit/internal/controls/renderers/renderer-factory-impl.h with 58% similarity]
dali-toolkit/internal/controls/renderers/visual-impl.cpp [moved from dali-toolkit/internal/controls/renderers/control-renderer-impl.cpp with 72% similarity]
dali-toolkit/internal/controls/renderers/visual-impl.h [moved from dali-toolkit/internal/controls/renderers/control-renderer-impl.h with 59% similarity]
dali-toolkit/internal/controls/renderers/visual-string-constants.cpp [moved from dali-toolkit/internal/controls/renderers/renderer-string-constants.cpp with 98% similarity]
dali-toolkit/internal/controls/renderers/visual-string-constants.h [moved from dali-toolkit/internal/controls/renderers/renderer-string-constants.h with 100% similarity]
dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp
dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h
dali-toolkit/internal/controls/video-view/video-view-impl.cpp
dali-toolkit/internal/controls/video-view/video-view-impl.h
dali-toolkit/internal/file.list
dali-toolkit/internal/filters/emboss-filter.cpp
dali-toolkit/internal/filters/emboss-filter.h
dali-toolkit/internal/transition-effects/cube-transition-effect-impl.cpp
dali-toolkit/public-api/controls/control-impl.cpp
docs/content/images/debug-visual/debug-blocks.png [moved from docs/content/images/debug-renderer/debug-blocks.png with 100% similarity]
docs/content/images/visuals/bevelled-cube-high.png [moved from docs/content/images/renderers/bevelled-cube-high.png with 100% similarity]
docs/content/images/visuals/bevelled-cube-low.png [moved from docs/content/images/renderers/bevelled-cube-low.png with 100% similarity]
docs/content/images/visuals/border-renderer.png [moved from docs/content/images/renderers/border-renderer.png with 100% similarity]
docs/content/images/visuals/color-renderer.png [moved from docs/content/images/renderers/color-renderer.png with 100% similarity]
docs/content/images/visuals/cone.png [moved from docs/content/images/renderers/cone.png with 100% similarity]
docs/content/images/visuals/conical-frustrum.png [moved from docs/content/images/renderers/conical-frustrum.png with 100% similarity]
docs/content/images/visuals/cube.png [moved from docs/content/images/renderers/cube.png with 100% similarity]
docs/content/images/visuals/cylinder.png [moved from docs/content/images/renderers/cylinder.png with 100% similarity]
docs/content/images/visuals/image-renderer.png [moved from docs/content/images/renderers/image-renderer.png with 100% similarity]
docs/content/images/visuals/linear-gradient-renderer.png [moved from docs/content/images/renderers/linear-gradient-renderer.png with 100% similarity]
docs/content/images/visuals/mesh-renderer.png [moved from docs/content/images/renderers/mesh-renderer.png with 100% similarity]
docs/content/images/visuals/n-patch-renderer.png [moved from docs/content/images/renderers/n-patch-renderer.png with 100% similarity]
docs/content/images/visuals/octahedron.png [moved from docs/content/images/renderers/octahedron.png with 100% similarity]
docs/content/images/visuals/radial-gradient-renderer.png [moved from docs/content/images/renderers/radial-gradient-renderer.png with 100% similarity]
docs/content/images/visuals/slices.png [moved from docs/content/images/renderers/slices.png with 100% similarity]
docs/content/images/visuals/sphere.png [moved from docs/content/images/renderers/sphere.png with 100% similarity]
docs/content/images/visuals/stacks.png [moved from docs/content/images/renderers/stacks.png with 100% similarity]
docs/content/images/visuals/svg-renderer.svg [moved from docs/content/images/renderers/svg-renderer.svg with 100% similarity]
docs/content/main.md
docs/content/programming-guide/background.h
docs/content/programming-guide/image-view.h
docs/content/programming-guide/shader-intro.h
docs/content/shared-javascript-and-cpp-documentation/creating-custom-controls.md
docs/content/shared-javascript-and-cpp-documentation/debug-renderer.md [deleted file]
docs/content/shared-javascript-and-cpp-documentation/debug-visual.md [new file with mode: 0644]
docs/content/shared-javascript-and-cpp-documentation/visuals.md [moved from docs/content/shared-javascript-and-cpp-documentation/control-renderers.md with 91% similarity]

index d6aa2fb..0db0538 100644 (file)
@@ -48,9 +48,9 @@ SET(TC_SOURCES
    utc-Dali-SuperBlurView.cpp
    utc-Dali-Toolkit.cpp
    utc-Dali-Model3dView.cpp
-   utc-Dali-ControlRenderer.cpp
-   utc-Dali-RendererFactory.cpp
-   utc-Dali-DebugRenderer.cpp
+   utc-Dali-Visual.cpp
+   utc-Dali-VisualFactory.cpp
+   utc-Dali-DebugVisual.cpp
    utc-Dali-ImageAtlas.cpp
    utc-Dali-VideoView.cpp
 )
@@ -16,7 +16,7 @@
  */
 
 #include <dali-toolkit-test-suite-utils.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 #include <dali/public-api/rendering/renderer.h>
 #include <dali/public-api/rendering/geometry.h>
 
@@ -30,9 +30,9 @@ namespace
 const char* TEST_IMAGE_FILE_NAME =  "image_01.jpg";
 const char* TEST_NPATCH_FILE_NAME =  "image_01.9.jpg";
 
-bool IsDebugRenderer( ControlRenderer& renderer )
+bool IsDebugVisual( Visual& renderer )
 {
-  bool isDebugRendererType = false;
+  bool isDebugVisualType = false;
   bool isGeometryLineType = false;
 
   Property::Map propertyMap;
@@ -40,7 +40,7 @@ bool IsDebugRenderer( ControlRenderer& renderer )
   Property::Value* typeValue = propertyMap.Find( "rendererType",  Property::STRING );
   if ( typeValue )
   {
-    isDebugRendererType = ( typeValue->Get<std::string>() == "DEBUG" );
+    isDebugVisualType = ( typeValue->Get<std::string>() == "DEBUG" );
   }
 
   Actor actor = Actor::New();
@@ -48,7 +48,7 @@ bool IsDebugRenderer( ControlRenderer& renderer )
   Geometry geometry = actor.GetRendererAt( 0 ).GetGeometry();
   isGeometryLineType = ( geometry.GetGeometryType() == Geometry::LINES );
 
-  return isDebugRendererType && isGeometryLineType;
+  return isDebugVisualType && isGeometryLineType;
 }
 }
 
@@ -62,31 +62,31 @@ void dali_debug_renderer_cleanup(void)
   test_return_value = TET_PASS;
 }
 
-int UtcDaliDebugRendererGetRenderer1(void)
+int UtcDaliDebugVisualGetRenderer1(void)
 {
   EnvironmentVariable::SetTestingEnvironmentVariable(true);
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliDebugRendererGetRenderer1:  Request renderer with a Property::Map" );
+  tet_infoline( "UtcDaliDebugVisualGetRenderer1:  Request renderer with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   // Test that color renderer is replaced with debug renderer
   Property::Map propertyMap1;
   propertyMap1.Insert("rendererType",  "COLOR");
   propertyMap1.Insert("mixColor",  Color::BLUE);
-  ControlRenderer colorRenderer = factory.CreateControlRenderer(propertyMap1);
+  Visual colorRenderer = factory.CreateVisual(propertyMap1);
   DALI_TEST_CHECK( colorRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( colorRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( colorRenderer ) );
 
   // Test that border renderer is replaced with debug renderer
   Property::Map propertyMap2;
   propertyMap2.Insert("rendererType",  "BORDER");
   propertyMap2.Insert("borderColor",  Color::BLUE);
   propertyMap2.Insert("borderSize",  2.f);
-  ControlRenderer borderRenderer = factory.CreateControlRenderer(propertyMap2);
+  Visual borderRenderer = factory.CreateVisual(propertyMap2);
   DALI_TEST_CHECK( borderRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( borderRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( borderRenderer ) );
 
   // Test that gradient renderer is replaced with debug renderer
   Property::Map propertyMap3;
@@ -104,37 +104,37 @@ int UtcDaliDebugRendererGetRenderer1(void)
   stopColors.PushBack( Color::RED );
   stopColors.PushBack( Color::GREEN );
   propertyMap3.Insert("stopColor", stopColors);
-  ControlRenderer gradientRenderer = factory.CreateControlRenderer(propertyMap3);
+  Visual gradientRenderer = factory.CreateVisual(propertyMap3);
   DALI_TEST_CHECK( gradientRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( gradientRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( gradientRenderer ) );
 
   // Test that image renderer is replaced with debug renderer
   Property::Map propertyMap4;
   propertyMap4.Insert( "rendererType",  "IMAGE" );
   propertyMap4.Insert( "url",  TEST_IMAGE_FILE_NAME );
-  ControlRenderer imageRenderer = factory.CreateControlRenderer( propertyMap4 );
+  Visual imageRenderer = factory.CreateVisual( propertyMap4 );
   DALI_TEST_CHECK( imageRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( imageRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( imageRenderer ) );
 
   // Test that n patch renderer is replaced with debug renderer
   Property::Map propertyMap5;
   propertyMap5.Insert( "rendererType",  "IMAGE" );
   propertyMap5.Insert( "url",  TEST_NPATCH_FILE_NAME );
-  ControlRenderer nPatchRenderer = factory.CreateControlRenderer( propertyMap4 );
+  Visual nPatchRenderer = factory.CreateVisual( propertyMap4 );
   DALI_TEST_CHECK( nPatchRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( nPatchRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( nPatchRenderer ) );
 
   EnvironmentVariable::SetTestingEnvironmentVariable(false);
   END_TEST;
 }
 
-int UtcDaliDebugRendererGetRenderer2(void)
+int UtcDaliDebugVisualGetRenderer2(void)
 {
   EnvironmentVariable::SetTestingEnvironmentVariable(true);
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliDebugRendererGetRenderer2: Request renderer with various parameters" );
+  tet_infoline( "UtcDaliDebugVisualGetRenderer2: Request renderer with various parameters" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   // Test that color renderer is replaced with debug renderer
@@ -142,29 +142,29 @@ int UtcDaliDebugRendererGetRenderer2(void)
   map[ "rendererType" ] = "COLOR";
   map[ "mixColor" ] = Color::CYAN;
 
-  ControlRenderer colorRenderer = factory.CreateControlRenderer( map);
+  Visual colorRenderer = factory.CreateVisual( map);
   DALI_TEST_CHECK( colorRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( colorRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( colorRenderer ) );
 
   // Test that border renderer is replaced with debug renderer
   map.Clear();
   map[ "rendererType" ] = "BORDER";
   map[ "borderColor"  ] = Color::GREEN;
   map[ "borderSize"   ] = 2.f;
-  ControlRenderer borderRenderer = factory.CreateControlRenderer( map );
+  Visual borderRenderer = factory.CreateVisual( map );
   DALI_TEST_CHECK( borderRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( borderRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( borderRenderer ) );
 
   // Test that image renderer is replaced with debug renderer
   Image image = ResourceImage::New(TEST_IMAGE_FILE_NAME);
-  ControlRenderer imageRenderer = factory.CreateControlRenderer( image );
+  Visual imageRenderer = factory.CreateVisual( image );
   DALI_TEST_CHECK( imageRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( imageRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( imageRenderer ) );
 
   // Test that n patch renderer is replaced with debug renderer
-  ControlRenderer nPatchRenderer = factory.CreateControlRenderer( TEST_NPATCH_FILE_NAME, ImageDimensions() );
+  Visual nPatchRenderer = factory.CreateVisual( TEST_NPATCH_FILE_NAME, ImageDimensions() );
   DALI_TEST_CHECK( nPatchRenderer );
-  DALI_TEST_CHECK( IsDebugRenderer( nPatchRenderer ) );
+  DALI_TEST_CHECK( IsDebugVisual( nPatchRenderer ) );
 
   EnvironmentVariable::SetTestingEnvironmentVariable(false);
   END_TEST;
index db745a4..029654d 100644 (file)
@@ -21,7 +21,7 @@
 #include <dali-toolkit/dali-toolkit.h>
 #include <dali/integration-api/events/touch-event-integ.h>
 #include <dali-toolkit/devel-api/controls/tool-bar/tool-bar.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 using namespace Dali;
 using namespace Toolkit;
@@ -39,11 +39,11 @@ Actor CreateColorActor( const Vector4& color )
 {
   Actor solidColorActor = Actor::New();
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Dali::Property::Map map;
   map[ "rendererType" ] = "COLOR";
   map[ "mixColor" ] = color;
-  ControlRenderer colorRenderer = factory.CreateControlRenderer( map );
+  Visual colorRenderer = factory.CreateVisual( map );
   colorRenderer.SetOnStage( solidColorActor );
 
   return solidColorActor;
@@ -20,7 +20,7 @@
 #include <dali/public-api/rendering/renderer.h>
 #include <dali/public-api/rendering/texture-set.h>
 #include <dali/public-api/rendering/shader.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 using namespace Dali;
 using namespace Dali::Toolkit;
@@ -35,130 +35,130 @@ const char* TEST_MTL_FILE_NAME = TEST_RESOURCE_DIR "/ToyRobot-Metal.mtl";
 const char* TEST_RESOURCE_LOCATION = TEST_RESOURCE_DIR "/";
 }
 
-void dali_control_renderer_startup(void)
+void dali_visual_startup(void)
 {
   test_return_value = TET_UNDEF;
 }
 
-void dali_control_renderer_cleanup(void)
+void dali_visual_cleanup(void)
 {
   test_return_value = TET_PASS;
 }
 
-int UtcDaliControlRendererCopyAndAssignment(void)
+int UtcDaliVisualCopyAndAssignment(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererCopyAndAssignment" );
+  tet_infoline( "UtcDaliVisualCopyAndAssignment" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "COLOR");
   propertyMap.Insert("mixColor",  Color::BLUE);
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual visual = factory.CreateVisual( propertyMap );
 
-  ControlRenderer controlRendererCopy( controlRenderer );
-  DALI_TEST_CHECK(controlRenderer == controlRendererCopy);
+  Visual visualCopy( visual );
+  DALI_TEST_CHECK(visual == visualCopy);
 
-  ControlRenderer emptyControlRenderer;
-  ControlRenderer emptyControlRendererCopy( emptyControlRenderer );
-  DALI_TEST_CHECK(emptyControlRenderer == emptyControlRendererCopy);
+  Visual emptyVisual;
+  Visual emptyVisualCopy( emptyVisual );
+  DALI_TEST_CHECK(emptyVisual == emptyVisualCopy);
 
-  ControlRenderer controlRendererEquals;
-  controlRendererEquals = controlRenderer;
-  DALI_TEST_CHECK(controlRenderer == controlRendererEquals);
+  Visual visualEquals;
+  visualEquals = visual;
+  DALI_TEST_CHECK(visual == visualEquals);
 
-  ControlRenderer emptyControlRendererEquals;
-  emptyControlRendererEquals = emptyControlRenderer;
-  DALI_TEST_CHECK( emptyControlRenderer == emptyControlRendererEquals );
+  Visual emptyVisualEquals;
+  emptyVisualEquals = emptyVisual;
+  DALI_TEST_CHECK( emptyVisual == emptyVisualEquals );
 
   //self assignment
-  controlRenderer = controlRenderer;
-  DALI_TEST_CHECK( controlRenderer = controlRendererCopy );
+  visual = visual;
+  DALI_TEST_CHECK( visual = visualCopy );
 
   END_TEST;
 }
 
-int UtcDaliControlRendererSetGetDepthIndex(void)
+int UtcDaliVisualSetGetDepthIndex(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererSetDepthIndex" );
+  tet_infoline( "UtcDaliVisualSetDepthIndex" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "COLOR");
   propertyMap.Insert("mixColor",  Color::BLUE);
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual visual = factory.CreateVisual( propertyMap );
 
-  controlRenderer.SetDepthIndex( 1.f );
+  visual.SetDepthIndex( 1.f );
 
   Actor actor = Actor::New();
   actor.SetSize(200.f, 200.f);
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetOnStage( actor );
+  visual.SetOnStage( actor );
 
   int depthIndex = actor.GetRendererAt(0u).GetProperty<int>( Renderer::Property::DEPTH_INDEX );
   DALI_TEST_EQUALS( depthIndex, 1, TEST_LOCATION );
-  DALI_TEST_EQUALS( controlRenderer.GetDepthIndex(), 1.f, TEST_LOCATION );
+  DALI_TEST_EQUALS( visual.GetDepthIndex(), 1.f, TEST_LOCATION );
 
-  controlRenderer.SetDepthIndex( -1.f );
+  visual.SetDepthIndex( -1.f );
   depthIndex = actor.GetRendererAt(0u).GetProperty<int>( Renderer::Property::DEPTH_INDEX );
   DALI_TEST_EQUALS( depthIndex, -1, TEST_LOCATION );
-  DALI_TEST_EQUALS( controlRenderer.GetDepthIndex(), -1.f, TEST_LOCATION );
+  DALI_TEST_EQUALS( visual.GetDepthIndex(), -1.f, TEST_LOCATION );
 
   END_TEST;
 }
 
-int UtcDaliControlRendererSize(void)
+int UtcDaliVisualSize(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetNaturalSize" );
+  tet_infoline( "UtcDaliVisualGetNaturalSize" );
 
-  RendererFactory factory = RendererFactory::Get();
-  Vector2 rendererSize( 20.f, 30.f );
+  VisualFactory factory = VisualFactory::Get();
+  Vector2 visualSize( 20.f, 30.f );
   Vector2 naturalSize;
 
-  // color renderer
+  // color colorVisual 
   Dali::Property::Map map;
   map[ "rendererType" ] = "COLOR";
   map[ "mixColor" ] = Color::MAGENTA;
-  ControlRenderer colorRenderer = factory.CreateControlRenderer( map );
-  colorRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( colorRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  colorRenderer.GetNaturalSize(naturalSize);
+  Visual colorVisual = factory.CreateVisual( map );
+  colorVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( colorVisual.GetSize(), visualSize, TEST_LOCATION );
+  colorVisual.GetNaturalSize(naturalSize);
   DALI_TEST_EQUALS( naturalSize, Vector2::ZERO, TEST_LOCATION );
 
-  // image renderer
+  // image visual
   Image image = ResourceImage::New(TEST_IMAGE_FILE_NAME, ImageDimensions(100, 200));
-  ControlRenderer imageRenderer = factory.CreateControlRenderer( image );
-  imageRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( imageRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  imageRenderer.GetNaturalSize(naturalSize);
+  Visual imageVisual = factory.CreateVisual( image );
+  imageVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( imageVisual.GetSize(), visualSize, TEST_LOCATION );
+  imageVisual.GetNaturalSize(naturalSize);
   DALI_TEST_EQUALS( naturalSize, Vector2(100.f, 200.f), TEST_LOCATION );
 
-  // n patch renderer
+  // n patch visual
   TestPlatformAbstraction& platform = application.GetPlatform();
   Vector2 testSize(80.f, 160.f);
   platform.SetClosestImageSize(testSize);
   image = ResourceImage::New(TEST_NPATCH_FILE_NAME);
-  ControlRenderer nPatchRenderer = factory.CreateControlRenderer( image );
-  nPatchRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( nPatchRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  nPatchRenderer.GetNaturalSize(naturalSize);
+  Visual nPatchVisual = factory.CreateVisual( image );
+  nPatchVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( nPatchVisual.GetSize(), visualSize, TEST_LOCATION );
+  nPatchVisual.GetNaturalSize(naturalSize);
   DALI_TEST_EQUALS( naturalSize, testSize, TEST_LOCATION );
 
-  // border renderer
+  // border visual
   float borderSize = 5.f;
   map.Clear();
   map[ "rendererType" ] = "BORDER";
   map[ "borderColor"  ] = Color::RED;
   map[ "borderSize"   ] = borderSize;
-  ControlRenderer borderRenderer = factory.CreateControlRenderer( map );
-  borderRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( borderRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  borderRenderer.GetNaturalSize(naturalSize);
+  Visual borderVisual = factory.CreateVisual( map );
+  borderVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( borderVisual.GetSize(), visualSize, TEST_LOCATION );
+  borderVisual.GetNaturalSize(naturalSize);
   DALI_TEST_EQUALS( naturalSize, Vector2::ZERO, TEST_LOCATION );
 
-  // gradient renderer
+  // gradient gradientVisual
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "GRADIENT");
   Vector2 start(-1.f, -1.f);
@@ -170,17 +170,17 @@ int UtcDaliControlRendererSize(void)
   stopColors.PushBack( Color::RED );
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor",   stopColors);
-  ControlRenderer gradientRenderer = factory.CreateControlRenderer(propertyMap);
-  gradientRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( gradientRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  gradientRenderer.GetNaturalSize(naturalSize);
+  Visual gradientVisual = factory.CreateVisual(propertyMap);
+  gradientVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( gradientVisual.GetSize(), visualSize, TEST_LOCATION );
+  gradientVisual.GetNaturalSize(naturalSize);
   DALI_TEST_EQUALS( naturalSize, Vector2::ZERO,TEST_LOCATION );
 
-  //svg renderer
-  ControlRenderer svgRenderer = factory.CreateControlRenderer( TEST_SVG_FILE_NAME, ImageDimensions() );
-  svgRenderer.SetSize( rendererSize );
-  DALI_TEST_EQUALS( svgRenderer.GetSize(), rendererSize, TEST_LOCATION );
-  svgRenderer.GetNaturalSize(naturalSize);
+  //svg visual
+  Visual svgVisual = factory.CreateVisual( TEST_SVG_FILE_NAME, ImageDimensions() );
+  svgVisual.SetSize( visualSize );
+  DALI_TEST_EQUALS( svgVisual.GetSize(), visualSize, TEST_LOCATION );
+  svgVisual.GetNaturalSize(naturalSize);
   // TEST_SVG_FILE:
   //  <svg width="100" height="100">
   //  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
@@ -189,16 +189,16 @@ int UtcDaliControlRendererSize(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererSetOnOffStage(void)
+int UtcDaliVisualSetOnOffStage(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererSetDepthIndex" );
+  tet_infoline( "UtcDaliVisualSetDepthIndex" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "COLOR");
   propertyMap.Insert("mixColor",  Color::BLUE);
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual visual = factory.CreateVisual( propertyMap );
 
   Actor actor = Actor::New();
   actor.SetSize(200.f, 200.f);
@@ -208,12 +208,12 @@ int UtcDaliControlRendererSetOnOffStage(void)
   application.Render(0);
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
-  controlRenderer.SetOnStage( actor );
+  visual.SetOnStage( actor );
   application.SendNotification();
   application.Render(0);
   DALI_TEST_CHECK( actor.GetRendererCount() == 1u );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   application.SendNotification();
   application.Render(0);
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
@@ -221,22 +221,22 @@ int UtcDaliControlRendererSetOnOffStage(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererRemoveAndReset(void)
+int UtcDaliVisualRemoveAndReset(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "intUtcDaliControlRendererRemoveAndReset" );
+  tet_infoline( "intUtcDaliVisualRemoveAndReset" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
 
   Actor actor = Actor::New();
   actor.SetSize(200.f, 200.f);
   Stage::GetCurrent().Add( actor );
 
-  ControlRenderer imageRenderer;
+  Visual imageVisual;
   // test calling RemoveAndReset with an empty handle
   try
   {
-    imageRenderer.RemoveAndReset( actor );
+    imageVisual.RemoveAndReset( actor );
     tet_result(TET_PASS);
   }
   catch (DaliException& exception)
@@ -245,36 +245,36 @@ int UtcDaliControlRendererRemoveAndReset(void)
   }
 
   Image image = ResourceImage::New(TEST_IMAGE_FILE_NAME, ImageDimensions(100, 200));
-  imageRenderer = factory.CreateControlRenderer(image);
-  DALI_TEST_CHECK( imageRenderer );
+  imageVisual = factory.CreateVisual(image);
+  DALI_TEST_CHECK( imageVisual );
 
-  imageRenderer.SetOnStage( actor );
+  imageVisual.SetOnStage( actor );
   application.SendNotification();
   application.Render(0);
   DALI_TEST_CHECK( actor.GetRendererCount() == 1u );
 
-  imageRenderer.RemoveAndReset( actor );
+  imageVisual.RemoveAndReset( actor );
   application.SendNotification();
   application.Render(0);
-  DALI_TEST_CHECK( actor.GetRendererCount() == 0u ); // renderer is removed from actor
-  DALI_TEST_CHECK( !imageRenderer ); // control renderer is reset
+  DALI_TEST_CHECK( actor.GetRendererCount() == 0u ); // visual is removed from actor
+  DALI_TEST_CHECK( !imageVisual ); // visual is reset
 
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap1(void)
+int UtcDaliVisualGetPropertyMap1(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap1: ColorRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap1: ColorVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "COLOR");
   propertyMap.Insert("mixColor",  Color::BLUE);
-  ControlRenderer colorRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual colorVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  colorRenderer.CreatePropertyMap( resultMap );
+  colorVisual.CreatePropertyMap( resultMap );
 
   Property::Value* typeValue = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( typeValue );
@@ -286,10 +286,10 @@ int UtcDaliControlRendererGetPropertyMap1(void)
 
   // change the blend color
   Actor actor;
-  colorRenderer.RemoveAndReset( actor );
+  colorVisual.RemoveAndReset( actor );
   propertyMap["mixColor"] = Color::CYAN;
-  colorRenderer = factory.CreateControlRenderer( propertyMap  );
-  colorRenderer.CreatePropertyMap( resultMap );
+  colorVisual = factory.CreateVisual( propertyMap  );
+  colorVisual.CreatePropertyMap( resultMap );
 
   colorValue = resultMap.Find( "mixColor",  Property::VECTOR4 );
   DALI_TEST_CHECK( colorValue );
@@ -298,22 +298,22 @@ int UtcDaliControlRendererGetPropertyMap1(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap2(void)
+int UtcDaliVisualGetPropertyMap2(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap2: BorderRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap2: BorderVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert("rendererType",  "BORDER");
   propertyMap.Insert("borderColor",  Color::BLUE);
   propertyMap.Insert("borderSize",  5.f);
-  ControlRenderer borderRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual borderVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  borderRenderer.CreatePropertyMap( resultMap );
+  borderVisual.CreatePropertyMap( resultMap );
 
-  // check the property values from the returned map from control renderer
+  // check the property values from the returned map from visual
   Property::Value* typeValue = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( typeValue );
   DALI_TEST_CHECK( typeValue->Get<std::string>() == "BORDER" );
@@ -330,8 +330,8 @@ int UtcDaliControlRendererGetPropertyMap2(void)
   propertyMap1[ "rendererType" ] = "BORDER";
   propertyMap1[ "borderColor"  ] = Color::CYAN;
   propertyMap1[ "borderSize"   ] = 10.0f;
-  borderRenderer = factory.CreateControlRenderer( propertyMap1 );
-  borderRenderer.CreatePropertyMap( resultMap );
+  borderVisual = factory.CreateVisual( propertyMap1 );
+  borderVisual.CreatePropertyMap( resultMap );
 
   typeValue = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( typeValue );
@@ -348,12 +348,12 @@ int UtcDaliControlRendererGetPropertyMap2(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap3(void)
+int UtcDaliVisualGetPropertyMap3(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap3: linear GradientRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap3: linear GradientVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -372,12 +372,12 @@ int UtcDaliControlRendererGetPropertyMap3(void)
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor",   stopColors);
 
-  ControlRenderer gradientRenderer = factory.CreateControlRenderer(propertyMap);
+  Visual gradientVisual = factory.CreateVisual(propertyMap);
 
   Property::Map resultMap;
-  gradientRenderer.CreatePropertyMap( resultMap );
+  gradientVisual.CreatePropertyMap( resultMap );
 
-  // check the property values from the returned map from control renderer
+  // check the property values from the returned map from visual
   Property::Value* value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "GRADIENT" );
@@ -415,12 +415,12 @@ int UtcDaliControlRendererGetPropertyMap3(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap4(void)
+int UtcDaliVisualGetPropertyMap4(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap4: radial GradientRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap4: radial GradientVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -439,13 +439,13 @@ int UtcDaliControlRendererGetPropertyMap4(void)
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor",   stopColors);
 
-  ControlRenderer gradientRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( gradientRenderer );
+  Visual gradientVisual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( gradientVisual );
 
   Property::Map resultMap;
-  gradientRenderer.CreatePropertyMap( resultMap );
+  gradientVisual.CreatePropertyMap( resultMap );
 
-  // check the property values from the returned map from control renderer
+  // check the property values from the returned map from visual
   Property::Value* value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "GRADIENT" );
@@ -486,12 +486,12 @@ int UtcDaliControlRendererGetPropertyMap4(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap5(void)
+int UtcDaliVisualGetPropertyMap5(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap5: ImageRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap5: ImageVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  "IMAGE" );
   propertyMap.Insert( "url",  TEST_IMAGE_FILE_NAME );
@@ -501,13 +501,13 @@ int UtcDaliControlRendererGetPropertyMap5(void)
   propertyMap.Insert( "samplingMode",   "BOX_THEN_NEAREST" );
   propertyMap.Insert( "synchronousLoading",   true );
 
-  ControlRenderer imageRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( imageRenderer );
+  Visual imageVisual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( imageVisual );
 
   Property::Map resultMap;
-  imageRenderer.CreatePropertyMap( resultMap );
+  imageVisual.CreatePropertyMap( resultMap );
 
-  // check the property values from the returned map from control renderer
+  // check the property values from the returned map from visual
   Property::Value* value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "IMAGE" );
@@ -536,10 +536,10 @@ int UtcDaliControlRendererGetPropertyMap5(void)
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<bool>() == true );
 
-  // Get an image renderer with an image handle, and test the default property values
+  // Get an image visual with an image handle, and test the default property values
   Image image = ResourceImage::New(TEST_IMAGE_FILE_NAME, ImageDimensions(100, 200));
-  imageRenderer = factory.CreateControlRenderer(image);
-  imageRenderer.CreatePropertyMap( resultMap );
+  imageVisual = factory.CreateVisual(image);
+  imageVisual.CreatePropertyMap( resultMap );
 
   value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
@@ -572,22 +572,22 @@ int UtcDaliControlRendererGetPropertyMap5(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap6(void)
+int UtcDaliVisualGetPropertyMap6(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap6: NPatchRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap6: NPatchVisual" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  "IMAGE" );
   propertyMap.Insert( "url",  TEST_NPATCH_FILE_NAME );
   propertyMap.Insert( "borderOnly",  true );
-  ControlRenderer nPatchRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual nPatchVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  nPatchRenderer.CreatePropertyMap( resultMap );
+  nPatchVisual.CreatePropertyMap( resultMap );
 
-  // check the property values from the returned map from control renderer
+  // check the property values from the returned map from visual
   Property::Value* value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "IMAGE" );
@@ -603,21 +603,21 @@ int UtcDaliControlRendererGetPropertyMap6(void)
   END_TEST;
 }
 
-int UtcDaliControlRendererGetPropertyMap7(void)
+int UtcDaliVisualGetPropertyMap7(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap7: SvgRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap7: SvgVisual" );
 
-  // request SvgRenderer with a property map
-  RendererFactory factory = RendererFactory::Get();
+  // request SvgVisual with a property map
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  "IMAGE" );
   propertyMap.Insert( "url",  TEST_SVG_FILE_NAME );
-  ControlRenderer svgRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual svgVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  svgRenderer.CreatePropertyMap( resultMap );
-  // check the property values from the returned map from control renderer
+  svgVisual.CreatePropertyMap( resultMap );
+  // check the property values from the returned map from a visual
   Property::Value* value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "IMAGE" );
@@ -626,11 +626,11 @@ int UtcDaliControlRendererGetPropertyMap7(void)
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == TEST_SVG_FILE_NAME );
 
-  // request SvgRenderer with an URL
-  ControlRenderer svgRenderer2 = factory.CreateControlRenderer( TEST_SVG_FILE_NAME, ImageDimensions() );
+  // request SvgVisual with an URL
+  Visual svgVisual2 = factory.CreateVisual( TEST_SVG_FILE_NAME, ImageDimensions() );
   resultMap.Clear();
-  svgRenderer2.CreatePropertyMap( resultMap );
-  // check the property values from the returned map from control renderer
+  svgVisual2.CreatePropertyMap( resultMap );
+  // check the property values from the returned map from a visual
   value = resultMap.Find( "rendererType",  Property::STRING );
   DALI_TEST_CHECK( value );
   DALI_TEST_CHECK( value->Get<std::string>() == "IMAGE" );
@@ -642,14 +642,14 @@ int UtcDaliControlRendererGetPropertyMap7(void)
   END_TEST;
 }
 
-//Mesh renderer
-int UtcDaliControlRendererGetPropertyMap8(void)
+//Mesh visual
+int UtcDaliVisualGetPropertyMap8(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap8: MeshRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap8: MeshVisual" );
 
-  //Request MeshRenderer using a property map.
-  RendererFactory factory = RendererFactory::Get();
+  //Request MeshVisual using a property map.
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -657,10 +657,10 @@ int UtcDaliControlRendererGetPropertyMap8(void)
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_LOCATION );
   propertyMap.Insert( "shaderType", "TEXTURELESS" );
   propertyMap.Insert( "lightPosition", Vector3( 5.0f, 10.0f, 15.0f) );
-  ControlRenderer meshRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual meshVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  meshRenderer.CreatePropertyMap( resultMap );
+  meshVisual.CreatePropertyMap( resultMap );
 
   //Check values in the result map are identical to the initial map's values.
   Property::Value* value = resultMap.Find( "rendererType", Property::STRING );
@@ -690,17 +690,17 @@ int UtcDaliControlRendererGetPropertyMap8(void)
   END_TEST;
 }
 
-//Primitive shape renderer
-int UtcDaliControlRendererGetPropertyMap9(void)
+//Primitive shape visual
+int UtcDaliVisualGetPropertyMap9(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliControlRendererGetPropertyMap9: PrimitiveRenderer" );
+  tet_infoline( "UtcDaliVisualGetPropertyMap9: PrimitiveVisual" );
 
   Vector4 color = Vector4( 1.0, 0.8, 0.6, 1.0);
   Vector3 dimensions = Vector3( 1.0, 2.0, 3.0 );
 
-  //Request PrimitiveRenderer using a property map.
-  RendererFactory factory = RendererFactory::Get();
+  //Request PrimitiveVisual using a property map.
+  VisualFactory factory = VisualFactory::Get();
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "CUBE" );
@@ -715,10 +715,10 @@ int UtcDaliControlRendererGetPropertyMap9(void)
   propertyMap.Insert( "bevelPercentage", 0.3f );
   propertyMap.Insert( "bevelSmoothness", 0.6f );
   propertyMap.Insert( "lightPosition", Vector3( 5.0f, 10.0f, 15.0f) );
-  ControlRenderer primitiveRenderer = factory.CreateControlRenderer( propertyMap );
+  Visual primitiveVisual = factory.CreateVisual( propertyMap );
 
   Property::Map resultMap;
-  primitiveRenderer.CreatePropertyMap( resultMap );
+  primitiveVisual.CreatePropertyMap( resultMap );
 
   //Check values in the result map are identical to the initial map's values.
   Property::Value* value = resultMap.Find( "rendererType", Property::STRING );
@@ -21,7 +21,7 @@
 #include <dali/public-api/rendering/renderer.h>
 #include <dali/public-api/rendering/texture-set.h>
 #include <dali/public-api/rendering/shader.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 using namespace Dali;
 using namespace Dali::Toolkit;
@@ -173,9 +173,9 @@ Integration::ResourcePointer CustomizeNinePatch( TestApplication& application,
   return resourcePtr;
 }
 
-void TestControlRendererRender( ToolkitTestApplication& application,
+void TestVisualRender( ToolkitTestApplication& application,
                                 Actor& actor,
-                                ControlRenderer& controlRenderer,
+                                Visual& visual,
                                 std::size_t expectedSamplers = 0,
                                 ImageDimensions imageDimensions = ImageDimensions(),
                                 Integration::ResourcePointer resourcePtr = Integration::ResourcePointer())
@@ -188,8 +188,8 @@ void TestControlRendererRender( ToolkitTestApplication& application,
 
   actor.SetSize( 200.f, 200.f );
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize( Vector2(200.f, 200.f) );
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize( Vector2(200.f, 200.f) );
+  visual.SetOnStage( actor );
 
   DALI_TEST_CHECK( actor.GetRendererCount() == 1u );
 
@@ -221,33 +221,33 @@ void TestControlRendererRender( ToolkitTestApplication& application,
 } // namespace
 
 
-void dali_renderer_factory_startup(void)
+void dali_visual_factory_startup(void)
 {
   test_return_value = TET_UNDEF;
 }
 
-void dali_renderer_factory_cleanup(void)
+void dali_visual_factory_cleanup(void)
 {
   test_return_value = TET_PASS;
 }
 
-int UtcDaliRendererFactoryGet(void)
+int UtcDaliVisualFactoryGet(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactory" );
+  tet_infoline( "UtcDaliVisualFactory" );
 
   //Register type
   TypeInfo type;
-  type = TypeRegistry::Get().GetTypeInfo( "RendererFactory" );
+  type = TypeRegistry::Get().GetTypeInfo( "VisualFactory" );
   DALI_TEST_CHECK( type );
   BaseHandle handle = type.CreateInstance();
   DALI_TEST_CHECK( handle );
 
-  RendererFactory factory;
-  factory = RendererFactory::Get();
+  VisualFactory factory;
+  factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
-  RendererFactory newFactory = RendererFactory::Get();
+  VisualFactory newFactory = VisualFactory::Get();
   DALI_TEST_CHECK( newFactory );
 
   // Check that renderer factory is a singleton
@@ -256,24 +256,24 @@ int UtcDaliRendererFactoryGet(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryCopyAndAssignment(void)
+int UtcDaliVisualFactoryCopyAndAssignment(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryCopyAndAssignment" );
-  RendererFactory factory = RendererFactory::Get();
+  tet_infoline( "UtcDaliVisualFactoryCopyAndAssignment" );
+  VisualFactory factory = VisualFactory::Get();
 
-  RendererFactory factoryCopy( factory );
+  VisualFactory factoryCopy( factory );
   DALI_TEST_CHECK(factory == factoryCopy);
 
-  RendererFactory emptyFactory;
-  RendererFactory emptyFactoryCopy( emptyFactory );
+  VisualFactory emptyFactory;
+  VisualFactory emptyFactoryCopy( emptyFactory );
   DALI_TEST_CHECK(emptyFactory == emptyFactoryCopy);
 
-  RendererFactory factoryEquals;
+  VisualFactory factoryEquals;
   factoryEquals = factory;
   DALI_TEST_CHECK(factory == factoryEquals);
 
-  RendererFactory emptyFactoryEquals;
+  VisualFactory emptyFactoryEquals;
   emptyFactoryEquals = emptyFactory;
   DALI_TEST_CHECK( emptyFactory == emptyFactoryEquals );
 
@@ -284,12 +284,12 @@ int UtcDaliRendererFactoryCopyAndAssignment(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetColorRenderer1(void)
+int UtcDaliVisualFactoryGetColorVisual1(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetColorRenderer1:  Request color renderer with a Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetColorVisual1:  Request color visual with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -297,11 +297,11 @@ int UtcDaliRendererFactoryGetColorRenderer1(void)
   propertyMap.Insert("rendererType",  "COLOR");
   propertyMap.Insert("mixColor",  testColor);
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
-  TestControlRendererRender( application, actor, controlRenderer );
+  TestVisualRender( application, actor, visual );
 
   Vector4 actualValue(Vector4::ZERO);
   TestGlAbstraction& gl = application.GetGlAbstraction();
@@ -311,41 +311,41 @@ int UtcDaliRendererFactoryGetColorRenderer1(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetColorRenderer2(void)
+int UtcDaliVisualFactoryGetColorVisual2(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetColorRenderer2: Request color renderer with a Vector4" );
+  tet_infoline( "UtcDaliVisualFactoryGetColorVisual2: Request color visual with a Vector4" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Vector4 testColor( 1.f, 0.5f, 0.3f, 0.2f );
   Dali::Property::Map map;
   map[ "rendererType" ] = "COLOR";
   map[ "mixColor" ] = testColor;
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( map );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( map );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
-  TestControlRendererRender( application, actor, controlRenderer );
+  TestVisualRender( application, actor, visual );
 
   Vector4 actualValue(Vector4::ZERO);
   TestGlAbstraction& gl = application.GetGlAbstraction();
   DALI_TEST_CHECK( gl.GetUniformValue<Vector4>( "mixColor", actualValue ) );
   DALI_TEST_EQUALS( actualValue, testColor, TEST_LOCATION );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetBorderRenderer1(void)
+int UtcDaliVisualFactoryGetBorderVisual1(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetBorderRenderer1:  Request border renderer with a Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetBorderVisual1:  Request border visual with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -355,14 +355,14 @@ int UtcDaliRendererFactoryGetBorderRenderer1(void)
   propertyMap.Insert("borderColor",  testColor);
   propertyMap.Insert("borderSize",  testSize);
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
   actor.SetSize(200.f, 200.f);
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize(Vector2(200.f, 200.f));
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize(Vector2(200.f, 200.f));
+  visual.SetOnStage( actor );
 
   DALI_TEST_CHECK( actor.GetRendererCount() == 1u );
   int blendMode = actor.GetRendererAt(0u).GetProperty<int>( Renderer::Property::BLEND_MODE );
@@ -381,18 +381,18 @@ int UtcDaliRendererFactoryGetBorderRenderer1(void)
   DALI_TEST_CHECK( gl.GetUniformValue<float>( "borderSize", actualSize ) );
   DALI_TEST_EQUALS( actualSize, testSize, TEST_LOCATION );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetBorderRenderer2(void)
+int UtcDaliVisualFactoryGetBorderVisual2(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetBorderRenderer2:  Request border renderer with a borderSize and a borderColor" );
+  tet_infoline( "UtcDaliVisualFactoryGetBorderVisual2:  Request border visual with a borderSize and a borderColor" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Vector4 testColor( 1.f, 0.5f, 0.3f, 1.f );
@@ -402,14 +402,14 @@ int UtcDaliRendererFactoryGetBorderRenderer2(void)
   propertyMap[ "rendererType" ] = "BORDER";
   propertyMap[ "borderColor"  ] = testColor;
   propertyMap[ "borderSize"   ] = testSize;
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
   actor.SetSize(200.f, 200.f);
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize(Vector2(200.f, 200.f));
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize(Vector2(200.f, 200.f));
+  visual.SetOnStage( actor );
 
   DALI_TEST_CHECK( actor.GetRendererCount() == 1u );
 
@@ -429,7 +429,7 @@ int UtcDaliRendererFactoryGetBorderRenderer2(void)
   DALI_TEST_CHECK( gl.GetUniformValue<float>( "borderSize", actualSize ) );
   DALI_TEST_EQUALS( actualSize, testSize, TEST_LOCATION );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
 
   // enable the anti-aliasing
   Dali::Property::Map map;
@@ -437,8 +437,8 @@ int UtcDaliRendererFactoryGetBorderRenderer2(void)
   map[ "borderColor"  ] = testColor;
   map[ "borderSize"   ] = testSize;
   map[ "antiAliasing"   ] = true;
-  controlRenderer = factory.CreateControlRenderer( map );
-  controlRenderer.SetOnStage( actor );
+  visual = factory.CreateVisual( map );
+  visual.SetOnStage( actor );
 
   application.SendNotification();
   application.Render(0);
@@ -448,12 +448,12 @@ int UtcDaliRendererFactoryGetBorderRenderer2(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetLinearGradientRenderer(void)
+int UtcDaliVisualFactoryGetLinearGradientVisual(void)
 {
   ToolkitTestApplication application;
-  tet_infoline("UtcDaliRendererFactoryGetRadialGradientRenderer");
+  tet_infoline("UtcDaliVisualFactoryGetRadialGradientVisual");
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -475,25 +475,25 @@ int UtcDaliRendererFactoryGetLinearGradientRenderer(void)
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor", stopColors);
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( visual );
 
   // A lookup texture is generated and pass to shader as sampler
   Actor actor = Actor::New();
-  TestControlRendererRender( application, actor, controlRenderer, 1u );
+  TestVisualRender( application, actor, visual, 1u );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetRadialGradientRenderer(void)
+int UtcDaliVisualFactoryGetRadialGradientVisual(void)
 {
   ToolkitTestApplication application;
-  tet_infoline("UtcDaliRendererFactoryGetRadialGradientRenderer");
+  tet_infoline("UtcDaliVisualFactoryGetRadialGradientVisual");
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -515,12 +515,12 @@ int UtcDaliRendererFactoryGetRadialGradientRenderer(void)
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor",   stopColors);
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( visual );
 
   // A lookup texture is generated and pass to shader as sampler
   Actor actor = Actor::New();
-  TestControlRendererRender( application, actor, controlRenderer, 1u );
+  TestVisualRender( application, actor, visual, 1u );
 
   Matrix3 alignMatrix( radius, 0.f, 0.f, 0.f, radius, 0.f, center.x, center.y, 1.f );
   alignMatrix.Invert();
@@ -533,12 +533,12 @@ int UtcDaliRendererFactoryGetRadialGradientRenderer(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryDefaultOffsetsGradientRenderer(void)
+int UtcDaliVisualFactoryDefaultOffsetsGradientVisual(void)
 {
   ToolkitTestApplication application;
-  tet_infoline("UtcDaliRendererFactoryGetRadialGradientRenderer");
+  tet_infoline("UtcDaliVisualFactoryGetRadialGradientVisual");
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
@@ -555,33 +555,33 @@ int UtcDaliRendererFactoryDefaultOffsetsGradientRenderer(void)
   stopColors.PushBack( Color::GREEN );
   propertyMap.Insert("stopColor", stopColors);
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer(propertyMap);
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual(propertyMap);
+  DALI_TEST_CHECK( visual );
 
   // A lookup texture is generated and pass to shader as sampler
   Actor actor = Actor::New();
-  TestControlRendererRender( application, actor, controlRenderer, 1u );
+  TestVisualRender( application, actor, visual, 1u );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetImageRenderer1(void)
+int UtcDaliVisualFactoryGetImageVisual1(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetImageRenderer1: Request image renderer with a Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetImageVisual1: Request image renderer with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  "IMAGE" );
   propertyMap.Insert( "url",  TEST_IMAGE_FILE_NAME );
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
   // For tesing the LoadResourceFunc is called, a big image size should be set, so the atlasing is not applied.
@@ -596,28 +596,28 @@ int UtcDaliRendererFactoryGetImageRenderer1(void)
   Integration::Bitmap* bitmap = Integration::Bitmap::New( Integration::Bitmap::BITMAP_2D_PACKED_PIXELS, ResourcePolicy::OWNED_DISCARD );
   bitmap->GetPackedPixelsProfile()->ReserveBuffer( Pixel::RGBA8888, width, height,width, height );
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(width, height),
                              Integration::ResourcePointer( bitmap ) );
 
   DALI_TEST_EQUALS( textureTrace.FindMethod("BindTexture"), true, TEST_LOCATION );
 
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetImageRenderer2(void)
+int UtcDaliVisualFactoryGetImageVisual2(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetImageRenderer2: Request image renderer with an image handle" );
+  tet_infoline( "UtcDaliVisualFactoryGetImageVisual2: Request image renderer with an image handle" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Image image = ResourceImage::New(TEST_IMAGE_FILE_NAME);
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( image );
+  Visual visual = factory.CreateVisual( image );
 
   Actor actor = Actor::New();
   // For tesing the LoadResourceFunc is called, a big image size should be set, so the atlasing is not applied.
@@ -633,7 +633,7 @@ int UtcDaliRendererFactoryGetImageRenderer2(void)
   TraceCallStack& textureTrace = gl.GetTextureTrace();
   textureTrace.Enable(true);
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(width, height),
                              Integration::ResourcePointer(bitmap) );
 
@@ -642,12 +642,12 @@ int UtcDaliRendererFactoryGetImageRenderer2(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRenderer1(void)
+int UtcDaliVisualFactoryGetNPatchVisual1(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRenderer1: Request 9-patch renderer with a Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisual1: Request 9-patch renderer with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   const unsigned int ninePatchImageHeight = 18;
@@ -663,8 +663,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void)
   propertyMap.Insert( "url",  TEST_NPATCH_FILE_NAME );
   {
     tet_infoline( "whole grid" );
-    ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-    DALI_TEST_CHECK( controlRenderer );
+    Visual visual = factory.CreateVisual( propertyMap );
+    DALI_TEST_CHECK( visual );
 
     Actor actor = Actor::New();
 
@@ -672,7 +672,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void)
     TraceCallStack& textureTrace = gl.GetTextureTrace();
     textureTrace.Enable(true);
 
-    TestControlRendererRender( application, actor, controlRenderer, 1u,
+    TestVisualRender( application, actor, visual, 1u,
                                ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                                ninePatchResource );
 
@@ -682,8 +682,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void)
   propertyMap.Insert( "borderOnly",  true );
   {
     tet_infoline( "border only" );
-    ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-    DALI_TEST_CHECK( controlRenderer );
+    Visual visual = factory.CreateVisual( propertyMap );
+    DALI_TEST_CHECK( visual );
 
     Actor actor = Actor::New();
 
@@ -691,7 +691,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void)
     TraceCallStack& textureTrace = gl.GetTextureTrace();
     textureTrace.Enable(true);
 
-    TestControlRendererRender( application, actor, controlRenderer, 1u,
+    TestVisualRender( application, actor, visual, 1u,
                                ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                                ninePatchResource );
 
@@ -701,12 +701,12 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRenderer2(void)
+int UtcDaliVisualFactoryGetNPatchVisual2(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRenderer2: Request n-patch renderer with a Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisual2: Request n-patch renderer with a Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   const unsigned int ninePatchImageWidth = 18;
@@ -726,55 +726,55 @@ int UtcDaliRendererFactoryGetNPatchRenderer2(void)
   propertyMap.Insert( "rendererType",  "IMAGE" );
   propertyMap.Insert( "url",  TEST_NPATCH_FILE_NAME );
   {
-    ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-    DALI_TEST_CHECK( controlRenderer );
+    Visual visual = factory.CreateVisual( propertyMap );
+    DALI_TEST_CHECK( visual );
 
     Actor actor = Actor::New();
     TestGlAbstraction& gl = application.GetGlAbstraction();
     TraceCallStack& textureTrace = gl.GetTextureTrace();
     textureTrace.Enable(true);
 
-    TestControlRendererRender( application, actor, controlRenderer, 1u,
+    TestVisualRender( application, actor, visual, 1u,
                                ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                                ninePatchResource );
 
 
     DALI_TEST_EQUALS( textureTrace.FindMethod("BindTexture"), true, TEST_LOCATION );
 
-    controlRenderer.SetOffStage( actor );
+    visual.SetOffStage( actor );
     DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
   }
 
   propertyMap.Insert( "borderOnly",  true );
   {
     tet_infoline( "border only" );
-    ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-    DALI_TEST_CHECK( controlRenderer );
+    Visual visual = factory.CreateVisual( propertyMap );
+    DALI_TEST_CHECK( visual );
 
     TestGlAbstraction& gl = application.GetGlAbstraction();
     TraceCallStack& textureTrace = gl.GetTextureTrace();
     textureTrace.Enable(true);
     Actor actor = Actor::New();
-    TestControlRendererRender( application, actor, controlRenderer, 1u,
+    TestVisualRender( application, actor, visual, 1u,
                                ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                                ninePatchResource );
 
 
     DALI_TEST_EQUALS( textureTrace.FindMethod("BindTexture"), true, TEST_LOCATION );
 
-    controlRenderer.SetOffStage( actor );
+    visual.SetOffStage( actor );
     DALI_TEST_CHECK( actor.GetRendererCount() == 0u );
   }
 
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRenderer3(void)
+int UtcDaliVisualFactoryGetNPatchVisual3(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRenderer3: Request 9-patch renderer with an image url" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisual3: Request 9-patch renderer with an image url" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   const unsigned int ninePatchImageHeight = 18;
@@ -785,8 +785,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer3(void)
   stretchRangesY.PushBack( Uint16Pair( 4, 5 ) );
   Integration::ResourcePointer ninePatchResource = CustomizeNinePatch( application, ninePatchImageWidth, ninePatchImageHeight, stretchRangesX, stretchRangesY );
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( TEST_NPATCH_FILE_NAME, ImageDimensions() );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( TEST_NPATCH_FILE_NAME, ImageDimensions() );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
 
@@ -794,7 +794,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer3(void)
   TraceCallStack& textureTrace = gl.GetTextureTrace();
   textureTrace.Enable(true);
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                              ninePatchResource );
 
@@ -803,12 +803,12 @@ int UtcDaliRendererFactoryGetNPatchRenderer3(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRenderer4(void)
+int UtcDaliVisualFactoryGetNPatchVisual4(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRenderer4: Request n-patch renderer with an image url" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisual4: Request n-patch visual with an image url" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   const unsigned int ninePatchImageHeight = 18;
@@ -824,8 +824,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer4(void)
   stretchRangesY.PushBack( Uint16Pair( 25, 27 ) );
   Integration::ResourcePointer ninePatchResource = CustomizeNinePatch( application, ninePatchImageWidth, ninePatchImageHeight, stretchRangesX, stretchRangesY );
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( TEST_NPATCH_FILE_NAME, ImageDimensions() );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( TEST_NPATCH_FILE_NAME, ImageDimensions() );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
 
@@ -833,7 +833,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer4(void)
   TraceCallStack& textureTrace = gl.GetTextureTrace();
   textureTrace.Enable(true);
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(ninePatchImageWidth, ninePatchImageHeight),
                              ninePatchResource );
 
@@ -842,18 +842,18 @@ int UtcDaliRendererFactoryGetNPatchRenderer4(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRendererN1(void)
+int UtcDaliVisualFactoryGetNPatchVisualN1(void)
 {
   //This should still load but display an error image
 
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRendererN: Request n-patch renderer with an invalid image url" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisualN: Request n-patch visual with an invalid image url" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( "ERROR.9.jpg", ImageDimensions() );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( "ERROR.9.jpg", ImageDimensions() );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
 
@@ -865,7 +865,7 @@ int UtcDaliRendererFactoryGetNPatchRendererN1(void)
   TraceCallStack& textureTrace = gl.GetTextureTrace();
   textureTrace.Enable(true);
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(),
                              Integration::ResourcePointer(bitmap) );
 
@@ -874,22 +874,22 @@ int UtcDaliRendererFactoryGetNPatchRendererN1(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetNPatchRendererN2(void)
+int UtcDaliVisualFactoryGetNPatchVisualN2(void)
 {
   //This should still load but display an error image
 
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetNPatchRendererN: Request n-patch renderer with an invalid Property::Map" );
+  tet_infoline( "UtcDaliVisualFactoryGetNPatchVisualN: Request n-patch visual with an invalid Property::Map" );
 
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  111 );
   propertyMap.Insert( "url",  "ERROR.9.jpg" );
 
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
   Actor actor = Actor::New();
 
@@ -901,7 +901,7 @@ int UtcDaliRendererFactoryGetNPatchRendererN2(void)
   TraceCallStack& textureTrace = gl.GetTextureTrace();
   textureTrace.Enable(true);
 
-  TestControlRendererRender( application, actor, controlRenderer, 1u,
+  TestVisualRender( application, actor, visual, 1u,
                              ImageDimensions(),
                              Integration::ResourcePointer(bitmap) );
 
@@ -910,14 +910,14 @@ int UtcDaliRendererFactoryGetNPatchRendererN2(void)
   END_TEST;
 }
 
-int UtcDaliRendererFactoryGetSvgRenderer(void)
+int UtcDaliVisualFactoryGetSvgVisual(void)
 {
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliRendererFactoryGetSvgRenderer: Request svg renderer with a svg url" );
+  tet_infoline( "UtcDaliVisualFactoryGetSvgVisual: Request svg visual with a svg url" );
 
-  RendererFactory factory = RendererFactory::Get();
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( TEST_SVG_FILE_NAME, ImageDimensions() );
-  DALI_TEST_CHECK( controlRenderer );
+  VisualFactory factory = VisualFactory::Get();
+  Visual visual = factory.CreateVisual( TEST_SVG_FILE_NAME, ImageDimensions() );
+  DALI_TEST_CHECK( visual );
 
   TestGlAbstraction& gl = application.GetGlAbstraction();
   TraceCallStack& textureTrace = gl.GetTextureTrace();
@@ -926,8 +926,8 @@ int UtcDaliRendererFactoryGetSvgRenderer(void)
   Actor actor = Actor::New();
   actor.SetSize( 200.f, 200.f );
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize( Vector2(200.f, 200.f) );
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize( Vector2(200.f, 200.f) );
+  visual.SetOnStage( actor );
   application.SendNotification();
   application.Render();
 
@@ -952,21 +952,21 @@ int UtcDaliRendererFactoryGetSvgRenderer(void)
 
 //Creates a mesh renderer from the given propertyMap and tries to load it on stage in the given application.
 //This is expected to succeed, which will then pass the test.
-void MeshRendererLoadsCorrectlyTest( Property::Map& propertyMap, ToolkitTestApplication& application )
+void MeshVisualLoadsCorrectlyTest( Property::Map& propertyMap, ToolkitTestApplication& application )
 {
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
-  //Create a mesh renderer.
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  //Create a mesh visual.
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
-  //Create an actor on stage to house the renderer.
+  //Create an actor on stage to house the visual.
   Actor actor = Actor::New();
   actor.SetSize( 200.f, 200.f );
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize( Vector2( 200.f, 200.f ) );
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize( Vector2( 200.f, 200.f ) );
+  visual.SetOnStage( actor );
 
   //Ensure set on stage.
   DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION );
@@ -992,27 +992,27 @@ void MeshRendererLoadsCorrectlyTest( Property::Map& propertyMap, ToolkitTestAppl
   DALI_TEST_EQUALS( actualScaleMatrix, testScaleMatrix, Math::MACHINE_EPSILON_100, TEST_LOCATION );
 
   //Finish by setting off stage, and ensuring this was successful.
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_EQUALS( actor.GetRendererCount(), 0u, TEST_LOCATION );
 }
 
-//Creates a mesh renderer from the given propertyMap and tries to load it on stage in the given application.
+//Creates a mesh visual from the given propertyMap and tries to load it on stage in the given application.
 //This is expected to fail, which will then pass the test.
-void MeshRendererDoesNotLoadCorrectlyTest( Property::Map& propertyMap, ToolkitTestApplication& application )
+void MeshVisualDoesNotLoadCorrectlyTest( Property::Map& propertyMap, ToolkitTestApplication& application )
 {
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
-  //Create a mesh renderer.
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  //Create a mesh visual.
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
-  //Create an actor on stage to house the renderer.
+  //Create an actor on stage to house the visual.
   Actor actor = Actor::New();
   actor.SetSize( 200.f, 200.f );
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize( Vector2( 200.f, 200.f ) );
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize( Vector2( 200.f, 200.f ) );
+  visual.SetOnStage( actor );
 
   //Ensure set on stage.
   DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION );
@@ -1034,38 +1034,40 @@ void MeshRendererDoesNotLoadCorrectlyTest( Property::Map& propertyMap, ToolkitTe
   DALI_TEST_CHECK( !application.GetGlAbstraction().GetUniformValue<Matrix>( "uObjectMatrix", scaleMatrix ) );
 
   //Finish by setting off stage, and ensuring this was successful.
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_EQUALS( actor.GetRendererCount(), 0u, TEST_LOCATION );
 }
 
 //Test if mesh loads correctly when supplied with only the bare minimum requirements, an object file.
-int UtcDaliRendererFactoryGetMeshRenderer1(void)
+int UtcDaliVisualFactoryGetMeshVisual1(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer1:  Request mesh renderer with a valid object file only" );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual1:  Request mesh visual with a valid object file only" );
+
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType",  "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
+
 //Test if mesh loads correctly when supplied with an object file as well as a blank material file and images directory.
-int UtcDaliRendererFactoryGetMeshRenderer2(void)
+int UtcDaliVisualFactoryGetMeshVisual2(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer2:  Request mesh renderer with blank material file and images directory" );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual2:  Request mesh visual with blank material file and images directory" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1073,20 +1075,20 @@ int UtcDaliRendererFactoryGetMeshRenderer2(void)
   propertyMap.Insert( "texturesPath", "" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if mesh loads correctly when supplied with all main parameters, an object file, a material file and a directory location.
-int UtcDaliRendererFactoryGetMeshRenderer3(void)
+int UtcDaliVisualFactoryGetMeshVisual3(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer3:  Request mesh renderer with all parameters correct" );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual3:  Request mesh visual with all parameters correct" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1094,20 +1096,21 @@ int UtcDaliRendererFactoryGetMeshRenderer3(void)
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_DIR "/" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
-//Test if mesh renderer can load a correctly supplied mesh without a normal map or gloss map in the material file.
-int UtcDaliRendererFactoryGetMeshRenderer4(void)
+//Test if mesh visual can load a correctly supplied mesh without a normal map or gloss map in the material file.
+int UtcDaliVisualFactoryGetMeshVisual4(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer4:  Request mesh renderer with diffuse texture but not normal or gloss." );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual4:  Request mesh visual with diffuse texture but not normal or gloss." );
 
-  //Set up renderer properties.
+
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1115,20 +1118,21 @@ int UtcDaliRendererFactoryGetMeshRenderer4(void)
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_DIR "/" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
+
 
   END_TEST;
 }
 
-//Test if mesh renderer can load when made to use diffuse textures only.
-int UtcDaliRendererFactoryGetMeshRenderer5(void)
+//Test if mesh visual can load when made to use diffuse textures only.
+int UtcDaliVisualFactoryGetMeshVisual5(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer5:  Request mesh renderer and make it only use diffuse textures." );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual5:  Request mesh visual and make it only use diffuse textures." );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1137,20 +1141,21 @@ int UtcDaliRendererFactoryGetMeshRenderer5(void)
   propertyMap.Insert( "shaderType", "DIFFUSE_TEXTURE" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
+
 
   END_TEST;
 }
 
-//Test if mesh renderer can load when made to not use the supplied textures.
-int UtcDaliRendererFactoryGetMeshRenderer6(void)
+//Test if mesh visual can load when made to not use the supplied textures.
+int UtcDaliVisualFactoryGetMeshVisual6(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer6:  Request mesh renderer and make it not use any textures." );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual6:  Request mesh visual and make it not use any textures." );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1159,19 +1164,20 @@ int UtcDaliRendererFactoryGetMeshRenderer6(void)
   propertyMap.Insert( "shaderType", "TEXTURELESS" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
-//Test if mesh renderer loads correctly when light position is manually set.
-int UtcDaliRendererFactoryGetMeshRenderer7(void)
+//Test if mesh visual loads correctly when light position is manually set.
+int UtcDaliVisualFactoryGetMeshVisual7(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer7:  Request mesh renderer with custom light position." );
 
-  //Set up renderer properties.
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual7:  Request mesh visual with custom light position." );
+
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1180,21 +1186,21 @@ int UtcDaliRendererFactoryGetMeshRenderer7(void)
   propertyMap.Insert( "lightPosition", Vector3( 0.0, 1.0, 2.0 ) );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
-//Test if mesh renderer loads correctly when supplied an object file without face normals or texture points.
+//Test if mesh visual loads correctly when supplied an object file without face normals or texture points.
 //Note that this notably tests object loader functionality.
-int UtcDaliRendererFactoryGetMeshRenderer8(void)
+int UtcDaliVisualFactoryGetMeshVisual8(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRenderer5:  Request mesh renderer with normal-less object file." );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisual5:  Request mesh visual with normal-less object file." );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_SIMPLE_OBJ_FILE_NAME );
@@ -1202,40 +1208,41 @@ int UtcDaliRendererFactoryGetMeshRenderer8(void)
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_DIR "/" );
 
   //Test to see if mesh loads correctly.
-  MeshRendererLoadsCorrectlyTest( propertyMap, application );
+  MeshVisualLoadsCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
-//Test if mesh renderer handles the case of lacking an object file.
-int UtcDaliRendererFactoryGetMeshRendererN1(void)
+//Test if mesh visual handles the case of lacking an object file.
+int UtcDaliVisualFactoryGetMeshVisualN1(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRendererN1:  Request mesh renderer without object file" );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisualN1:  Request mesh visual without object file" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "materialUrl", TEST_MTL_FILE_NAME );
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_DIR "/" );
 
   //Test to see if mesh doesn't load with these properties, as expected.
-  MeshRendererDoesNotLoadCorrectlyTest( propertyMap, application );
+  MeshVisualDoesNotLoadCorrectlyTest( propertyMap, application );
+
 
   END_TEST;
 }
 
-//Test if mesh renderer handles the case of being passed invalid material and images urls.
-int UtcDaliRendererFactoryGetMeshRendererN2(void)
+//Test if mesh visual handles the case of being passed invalid material and images urls.
+int UtcDaliVisualFactoryGetMeshVisualN2(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRendererN2:  Request mesh renderer with invalid material and images urls" );
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisualN2:  Request mesh visual with invalid material and images urls" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", TEST_OBJ_FILE_NAME );
@@ -1243,20 +1250,21 @@ int UtcDaliRendererFactoryGetMeshRendererN2(void)
   propertyMap.Insert( "texturesPath", "also invalid" );
 
   //Test to see if mesh doesn't load with these properties, as expected.
-  MeshRendererDoesNotLoadCorrectlyTest( propertyMap, application );
+  MeshVisualDoesNotLoadCorrectlyTest( propertyMap, application );
+
 
   END_TEST;
 }
 
-//Test if mesh renderer handles the case of being passed an invalid object url
-int UtcDaliRendererFactoryGetMeshRendererN3(void)
+//Test if mesh visual handles the case of being passed an invalid object url
+int UtcDaliVisualFactoryGetMeshVisualN3(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
+  tet_infoline( "UtcDaliVisualFactoryGetMeshVisualN3:  Request mesh visual with invalid object url" );
 
-  tet_infoline( "UtcDaliRendererFactoryGetMeshRendererN3:  Request mesh renderer with invalid object url" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "MESH" );
   propertyMap.Insert( "objectUrl", "invalid" );
@@ -1264,32 +1272,32 @@ int UtcDaliRendererFactoryGetMeshRendererN3(void)
   propertyMap.Insert( "texturesPath", TEST_RESOURCE_DIR "/" );
 
   //Test to see if mesh doesn't load with these properties, as expected.
-  MeshRendererDoesNotLoadCorrectlyTest( propertyMap, application );
+  MeshVisualDoesNotLoadCorrectlyTest( propertyMap, application );
 
   END_TEST;
 }
 
-//Creates a primitive renderer with the given property map and tests to see if it correctly loads in the given application.
-void TestPrimitiveRendererWithProperties( Property::Map& propertyMap, ToolkitTestApplication& application )
+//Creates a primitive visual with the given property map and tests to see if it correctly loads in the given application.
+void TestPrimitiveVisualWithProperties( Property::Map& propertyMap, ToolkitTestApplication& application )
 {
-  RendererFactory factory = RendererFactory::Get();
+  VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
 
-  //Create a primitive renderer.
-  ControlRenderer controlRenderer = factory.CreateControlRenderer( propertyMap );
-  DALI_TEST_CHECK( controlRenderer );
+  //Create a primitive visual.
+  Visual visual = factory.CreateVisual( propertyMap );
+  DALI_TEST_CHECK( visual );
 
-  //Create an actor on stage to house the renderer.
+  //Create an actor on stage to house the visual.
   Actor actor = Actor::New();
   actor.SetSize( 200.f, 200.f );
   Stage::GetCurrent().Add( actor );
-  controlRenderer.SetSize( Vector2( 200.f, 200.f ) );
-  controlRenderer.SetOnStage( actor );
+  visual.SetSize( Vector2( 200.f, 200.f ) );
+  visual.SetOnStage( actor );
 
   //Ensure set on stage.
   DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION );
 
-  //Tell test application to load the renderer.
+  //Tell test application to load the visual.
   application.SendNotification();
   application.Render(0);
 
@@ -1302,38 +1310,38 @@ void TestPrimitiveRendererWithProperties( Property::Map& propertyMap, ToolkitTes
   DALI_TEST_EQUALS( actualScaleMatrix, testScaleMatrix, Math::MACHINE_EPSILON_100, TEST_LOCATION );
 
   //Finish by setting off stage, and ensuring this was successful.
-  controlRenderer.SetOffStage( actor );
+  visual.SetOffStage( actor );
   DALI_TEST_EQUALS( actor.GetRendererCount(), 0u, TEST_LOCATION );
 }
 
 //Test if primitive shape loads correctly when supplied with only the bare minimum requirements, the shape to use.
-int UtcDaliRendererFactoryGetPrimitiveRenderer1(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual1(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer1:  Request primitive renderer with a shape only" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual1:  Request primitive visual with a shape only" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "CUBE" );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads correctly when supplied with all possible parameters
-int UtcDaliRendererFactoryGetPrimitiveRenderer2(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual2(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer2:  Request primitive renderer with everything" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual2:  Request primitive visual with everything" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "CUBE" );
@@ -1349,20 +1357,20 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer2(void)
   propertyMap.Insert( "lightPosition", Vector3( 0.9, 1.0, 1.1 ) );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads a sphere correctly.
-int UtcDaliRendererFactoryGetPrimitiveRenderer3(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual3(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer3:  Request primitive renderer to display a sphere" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual3:  Request primitive visual to display a sphere" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "SPHERE" );
@@ -1371,20 +1379,20 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer3(void)
   propertyMap.Insert( "stacks", 20 );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads a conic section correctly.
-int UtcDaliRendererFactoryGetPrimitiveRenderer4(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual4(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer4:  Request primitive renderer to display a conic section" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual4:  Request primitive visual to display a conic section" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "CONICAL_FRUSTRUM" );
@@ -1395,20 +1403,20 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer4(void)
   propertyMap.Insert( "scaleHeight", 50.0f );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads a bevelled cube correctly.
-int UtcDaliRendererFactoryGetPrimitiveRenderer5(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual5(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer5:  Request primitive renderer to display a bevelled cube" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual5:  Request primitive visual to display a bevelled cube" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "BEVELLED_CUBE" );
@@ -1416,40 +1424,40 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer5(void)
   propertyMap.Insert( "bevelPercentage", 0.7f );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads an octahedron correctly.
-int UtcDaliRendererFactoryGetPrimitiveRenderer6(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual6(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer6:  Request primitive renderer to display an octahedron" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual6:  Request primitive visual to display an octahedron" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "OCTAHEDRON" );
   propertyMap.Insert( "shapeColor", Vector4( 0.5, 0.5, 0.5, 1.0 ) );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads a cone correctly.
-int UtcDaliRendererFactoryGetPrimitiveRenderer7(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual7(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer7:  Request primitive renderer to display a cone" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual7:  Request primitive visual to display a cone" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "CONE" );
@@ -1459,20 +1467,20 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer7(void)
   propertyMap.Insert( "scaleHeight", 50.0f );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape loads correctly when light position is manually set.
-int UtcDaliRendererFactoryGetPrimitiveRenderer8(void)
+int UtcDaliVisualFactoryGetPrimitiveVisual8(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRenderer8:  Request primitive renderer with set light position" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisual8:  Request primitive visual with set light position" );
 
-  //Set up renderer properties.
+  //Set up visual properties.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
   propertyMap.Insert( "shape", "SPHERE" );
@@ -1480,25 +1488,25 @@ int UtcDaliRendererFactoryGetPrimitiveRenderer8(void)
   propertyMap.Insert( "lightPosition", Vector3( 0.0, 1.0, 2.0 ) );
 
   //Test to see if shape loads correctly.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
 
 //Test if primitive shape renderer handles the case of not being passed a specific shape to use.
-int UtcDaliRendererFactoryGetPrimitiveRendererN1(void)
+int UtcDaliVisualFactoryGetPrimitiveVisualN1(void)
 {
   //Set up test application first, so everything else can be handled.
   ToolkitTestApplication application;
 
-  tet_infoline( "UtcDaliRendererFactoryGetPrimitiveRendererN1:  Request primitive renderer without shape" );
+  tet_infoline( "UtcDaliVisualFactoryGetPrimitiveVisualN1:  Request primitive visual without shape" );
 
-  //Set up renderer properties, without supplying shape.
+  //Set up visual properties, without supplying shape.
   Property::Map propertyMap;
   propertyMap.Insert( "rendererType", "PRIMITIVE" );
 
   //Test to see if shape loads regardless of missing input.
-  TestPrimitiveRendererWithProperties( propertyMap, application );
+  TestPrimitiveVisualWithProperties( propertyMap, application );
 
   END_TEST;
 }
index 7383ebe..bce36ca 100644 (file)
@@ -102,7 +102,7 @@ develapibloomviewdir =          $(develapicontrolsdir)/bloom-view
 develapibubbleemitterdir =      $(develapicontrolsdir)/bubble-effect
 develapieffectsviewdir =        $(develapicontrolsdir)/effects-view
 develapimagnifierdir =          $(develapicontrolsdir)/magnifier
-develapirendererfactorydir =    $(develapicontrolsdir)/renderer-factory
+develapivisualfactorydir =      $(develapicontrolsdir)/visual-factory
 develapipopupdir =              $(develapicontrolsdir)/popup
 develapishadowviewdir =         $(develapicontrolsdir)/shadow-view
 develapisuperblurviewdir =      $(develapicontrolsdir)/super-blur-view
@@ -124,7 +124,7 @@ develapifocusmanager_HEADERS =      $(devel_api_focus_manager_header_files)
 develapiimageatlas_HEADERS =        $(devel_api_image_atlas_header_files)
 develapimagnifier_HEADERS =         $(devel_api_magnifier_header_files)
 develapipopup_HEADERS =             $(devel_api_popup_header_files)
-develapirendererfactory_HEADERS =   $(devel_api_renderer_factory_header_files)
+develapivisualfactory_HEADERS =     $(devel_api_visual_factory_header_files)
 develapiscripting_HEADERS =         $(devel_api_scripting_header_files)
 develapishadowview_HEADERS =        $(devel_api_shadow_view_header_files)
 develapishadereffects_HEADERS =     $(devel_api_shader_effects_header_files)
  */
 
 // CLASS HEADER
-#include "renderer-factory.h"
+#include "visual-factory.h"
 
 // EXTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/singleton-service.h>
 #include <dali/devel-api/adaptor-framework/environment-variable.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
 
 namespace Dali
 {
@@ -36,33 +36,33 @@ namespace
   const char * const DALI_DEBUG_RENDERING("DALI_DEBUG_RENDERING");
 }
 
-RendererFactory RendererFactory::Get()
+VisualFactory VisualFactory::Get()
 {
-  RendererFactory factory;
+  VisualFactory factory;
 
-  // Check whether the RendererFactory is already created
+  // Check whether the VisualFactory is already created
   SingletonService singletonService( SingletonService::Get() );
   if( singletonService )
   {
-    BaseHandle handle = singletonService.GetSingleton( typeid(RendererFactory) );
+    BaseHandle handle = singletonService.GetSingleton( typeid(VisualFactory) );
     if( handle )
     {
-      //If so, downcast the handle of singleton to RendererFactory
-      factory = RendererFactory( dynamic_cast<Internal::RendererFactory*>(handle.GetObjectPtr()) );
+      //If so, downcast the handle of singleton to VisualFactory
+      factory = VisualFactory( dynamic_cast<Internal::VisualFactory*>(handle.GetObjectPtr()) );
     }
 
-    if( !factory )// If not, create the RendererFactory and register it as a singleton
+    if( !factory )// If not, create the VisualFactory and register it as a singleton
     {
       // Check whether debug rendering is required
       if( EnvironmentVariable::GetEnvironmentVariable( DALI_DEBUG_RENDERING ) )
       {
-        factory = RendererFactory( new Internal::RendererFactory(true) );
+        factory = VisualFactory( new Internal::VisualFactory(true) );
       }
       else
       {
-        factory = RendererFactory( new Internal::RendererFactory(false) );
+        factory = VisualFactory( new Internal::VisualFactory(false) );
       }
-      singletonService.Register( typeid(RendererFactory), factory );
+      singletonService.Register( typeid(VisualFactory), factory );
 
     }
   }
@@ -70,43 +70,43 @@ RendererFactory RendererFactory::Get()
   return factory;
 }
 
-RendererFactory::RendererFactory()
+VisualFactory::VisualFactory()
 {
 }
 
-RendererFactory::~RendererFactory()
+VisualFactory::~VisualFactory()
 {
 }
 
-RendererFactory::RendererFactory( const RendererFactory& handle )
+VisualFactory::VisualFactory( const VisualFactory& handle )
 : BaseHandle( handle )
 {
 }
 
-RendererFactory& RendererFactory::operator=( const RendererFactory& handle )
+VisualFactory& VisualFactory::operator=( const VisualFactory& handle )
 {
   BaseHandle::operator=( handle );
   return *this;
 }
 
-RendererFactory::RendererFactory(Internal::RendererFactory *impl)
+VisualFactory::VisualFactory(Internal::VisualFactory *impl)
 : BaseHandle(impl)
 {
 }
 
-ControlRenderer RendererFactory::CreateControlRenderer( const Property::Map& propertyMap )
+Visual VisualFactory::CreateVisual( const Property::Map& propertyMap )
 {
-  return GetImplementation( *this ).CreateControlRenderer( propertyMap );
+  return GetImplementation( *this ).CreateVisual( propertyMap );
 }
 
-ControlRenderer RendererFactory::CreateControlRenderer( const Image& image )
+Visual VisualFactory::CreateVisual( const Image& image )
 {
-  return GetImplementation( *this ).CreateControlRenderer( image );
+  return GetImplementation( *this ).CreateVisual( image );
 }
 
-ControlRenderer RendererFactory::CreateControlRenderer( const std::string& url, ImageDimensions size )
+Visual VisualFactory::CreateVisual( const std::string& url, ImageDimensions size )
 {
-  return GetImplementation( *this ).CreateControlRenderer( url, size );
+  return GetImplementation( *this ).CreateVisual( url, size );
 }
 
 } // namespace Toolkit
@@ -22,8 +22,8 @@
 #include <dali/public-api/images/image-operations.h>
 #include <dali/public-api/object/property-map.h>
 
-// INTERNAK INCLUDES
-#include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
+// INTERNAL INCLUDES
+#include <dali-toolkit/devel-api/controls/visual-factory/visual.h>
 
 namespace Dali
 {
@@ -35,11 +35,11 @@ namespace Toolkit
 
 namespace Internal DALI_INTERNAL
 {
-class RendererFactory;
+class VisualFactory;
 }
 
 /**
- * @brief RendererFactory is a singleton object that provides and shares renderers for controls
+ * @brief VisualFactory is a singleton object that provides and shares renderers for controls
  *
  * By setting environment variable 'DALI_DEBUG_RENDERING', all concrete renderer is replaced with the debug renderer which renders a quad wireframe.
  *
@@ -49,37 +49,37 @@ class RendererFactory;
  * |--------------------------|------------------|
  * | rendererType             | STRING           |
  */
-class DALI_IMPORT_API RendererFactory : public BaseHandle
+class DALI_IMPORT_API VisualFactory : public BaseHandle
 {
 public:
 
   /**
-   * @brief Create or retrieve RendererFactory singleton.
+   * @brief Create or retrieve VisualFactory singleton.
    *
-   * @return A handle to the RendererFactory control.
+   * @return A handle to the VisualFactory control.
    */
-  static RendererFactory Get();
+  static VisualFactory Get();
 
   /**
-   * @brief Create a RendererFactory handle.
+   * @brief Create a VisualFactory handle.
    *
    * Calling member functions with an uninitialised handle is not allowed.
    */
-  RendererFactory();
+  VisualFactory();
 
   /**
    * @brief Destructor
    *
    * This is non-virtual since derived Handle types must not contain data or virtual methods.
    */
-  ~RendererFactory();
+  ~VisualFactory();
 
   /**
    * @brief This copy constructor is required for (smart) pointer semantics.
    *
    * @param[in] handle A reference to the copied handle.
    */
-  RendererFactory( const RendererFactory& handle );
+  VisualFactory( const VisualFactory& handle );
 
   /**
    * @brief This assignment operator is required for (smart) pointer semantics.
@@ -87,7 +87,7 @@ public:
    * @param [in] handle  A reference to the copied handle.
    * @return A reference to this.
    */
-  RendererFactory& operator=( const RendererFactory& handle );
+  VisualFactory& operator=( const VisualFactory& handle );
 
   /**
    * @brief Request the control renderer
@@ -96,7 +96,7 @@ public:
    *            Depends on the content of the map, different kind of renderer would be returned.
    * @return The pointer pointing to control renderer
    */
-  ControlRenderer CreateControlRenderer( const Property::Map& propertyMap  );
+  Visual CreateVisual( const Property::Map& propertyMap  );
 
   /**
    * @brief Request the control renderer to render the image.
@@ -104,7 +104,7 @@ public:
    * @param[in] image The image to be rendered.
    * @return The pointer pointing to the control renderer
    */
-  ControlRenderer CreateControlRenderer( const Image& image );
+  Visual CreateVisual( const Image& image );
 
   /**
    * @brief Request the control renderer to render the given resource at the url.
@@ -113,11 +113,11 @@ public:
    * @param[in] size The width and height to fit the loaded image to.
    * @return The pointer pointing to the control renderer
    */
-  ControlRenderer CreateControlRenderer( const std::string& url, ImageDimensions size );
+  Visual CreateVisual( const std::string& url, ImageDimensions size );
 
 private:
 
-  explicit DALI_INTERNAL RendererFactory(Internal::RendererFactory *impl);
+  explicit DALI_INTERNAL VisualFactory(Internal::VisualFactory *impl);
 
 };
 
@@ -125,8 +125,8 @@ private:
 /**
  * @brief Template to allow discard old renderer, get new one and set it on stage if possible
  *
- * @tparam ParameterType0 The type of first argument passed to the CreateControlRenderer()
- * @tparam ParameterType1 The type of second argument passed to the CreateControlRenderer()
+ * @tparam ParameterType0 The type of first argument passed to the CreateVisual()
+ * @tparam ParameterType1 The type of second argument passed to the CreateVisual()
  * @SINCE_1_0.39
  * @param[in] actor Actor for which the renderer will be replaced
  * @param[in,out] renderer The renderer object to be replaced
@@ -134,10 +134,10 @@ private:
  * @param[in] param1 Second template based argument passed to the renderer factory
  */
 template< class ParameterType0, class ParameterType1 >
-void InitializeControlRenderer( Actor& actor, ControlRenderer& renderer, ParameterType0& param0, ParameterType1& param1 )
+void InitializeVisual( Actor& actor, Visual& renderer, ParameterType0& param0, ParameterType1& param1 )
 {
   renderer.RemoveAndReset( actor );
-  renderer = Toolkit::RendererFactory::Get().CreateControlRenderer( param0, param1 );
+  renderer = Toolkit::VisualFactory::Get().CreateVisual( param0, param1 );
   if( renderer && actor && actor.OnStage() )
   {
     renderer.SetOnStage( actor );
@@ -147,17 +147,17 @@ void InitializeControlRenderer( Actor& actor, ControlRenderer& renderer, Paramet
 /**
  * @brief Template to allow discard old renderer, get new one and set it on stage if possible
  *
- * @tparam ParameterType The type of argument passed to the CreateControlRenderer()
+ * @tparam ParameterType The type of argument passed to the CreateVisual()
  * @SINCE_1_0.39
  * @param[in] actor Actor for which the renderer will be replaced
  * @param[in,out] renderer The renderer object to be replaced
  * @param[in] param Template based argument passed to the renderer factory
  */
 template< class ParameterType >
-void InitializeControlRenderer( Actor& actor, ControlRenderer& renderer, ParameterType& param )
+void InitializeVisual( Actor& actor, Visual& renderer, ParameterType& param )
 {
   renderer.RemoveAndReset( actor );
-  renderer =  Toolkit::RendererFactory::Get().CreateControlRenderer( param );
+  renderer =  Toolkit::VisualFactory::Get().CreateVisual( param );
   if( renderer && actor && actor.OnStage() )
   {
     renderer.SetOnStage( actor );
  */
 
 // CLASS HEADER
-#include "control-renderer.h"
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
+#include "visual.h"
 
 namespace Dali
 {
@@ -27,66 +25,66 @@ namespace Dali
 namespace Toolkit
 {
 
-ControlRenderer::ControlRenderer()
+Visual::Visual()
 {
 }
 
-ControlRenderer::~ControlRenderer()
+Visual::~Visual()
 {
 }
 
-ControlRenderer::ControlRenderer( const ControlRenderer& handle )
+Visual::Visual( const Visual& handle )
 : BaseHandle( handle )
 {
 }
 
-ControlRenderer& ControlRenderer::operator=( const ControlRenderer& handle )
+Visual& Visual::operator=( const Visual& handle )
 {
   BaseHandle::operator=( handle );
   return *this;
 }
 
-ControlRenderer::ControlRenderer(Internal::ControlRenderer *impl)
+Visual::Visual(Internal::Visual *impl)
 : BaseHandle( impl )
 {
 }
 
-void ControlRenderer::SetSize( const Vector2& size )
+void Visual::SetSize( const Vector2& size )
 {
   GetImplementation( *this ).SetSize( size );
 }
 
-const Vector2& ControlRenderer::GetSize() const
+const Vector2& Visual::GetSize() const
 {
   return GetImplementation( *this ).GetSize();
 }
 
-void ControlRenderer::GetNaturalSize(Vector2& naturalSize ) const
+void Visual::GetNaturalSize(Vector2& naturalSize ) const
 {
   GetImplementation( *this ).GetNaturalSize( naturalSize );
 }
 
-void ControlRenderer::SetDepthIndex( float index )
+void Visual::SetDepthIndex( float index )
 {
   GetImplementation( *this ).SetDepthIndex( index );
 }
 
-float ControlRenderer::GetDepthIndex() const
+float Visual::GetDepthIndex() const
 {
   return GetImplementation( *this ).GetDepthIndex();
 }
 
-void ControlRenderer::SetOnStage( Actor& actor )
+void Visual::SetOnStage( Actor& actor )
 {
   GetImplementation( *this ).SetOnStage( actor );
 }
 
-void ControlRenderer::SetOffStage( Actor& actor )
+void Visual::SetOffStage( Actor& actor )
 {
   GetImplementation( *this ).SetOffStage( actor );
 }
 
-void ControlRenderer::RemoveAndReset( Actor& actor )
+void Visual::RemoveAndReset( Actor& actor )
 {
   if( actor && *this )
   {
@@ -95,7 +93,7 @@ void ControlRenderer::RemoveAndReset( Actor& actor )
   Reset();
 }
 
-void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
+void Visual::CreatePropertyMap( Property::Map& map ) const
 {
   GetImplementation( *this ).CreatePropertyMap( map );
 }
@@ -29,38 +29,38 @@ namespace Toolkit
 
 namespace Internal DALI_INTERNAL
 {
-class ControlRenderer;
+class Visual;
 }
 
 /**
- * @brief ControlRenderer provides renderer for rendering the controls. A control may have multiple ControlRenders.
+ * @brief Visual provides renderer for rendering the controls. A control may have multiple ControlRenders.
  *
- * ControlRenderers reuses geometry, shader etc. across controls and manages the renderer and texture sets to exist only when control is on-stage.
+ * Visuals reuses geometry, shader etc. across controls and manages the renderer and texture sets to exist only when control is on-stage.
  * It also responds to actor size and color change, and provides the clipping at the renderer level.
  * Note: The control renderer responds to the the Actor::COLOR by blending it with the 'Multiply' operator.
  */
-class DALI_IMPORT_API ControlRenderer : public BaseHandle
+class DALI_IMPORT_API Visual : public BaseHandle
 {
 public:
 
   /**
-   * @brief Create an empty ControlRenderer Handle
+   * @brief Create an empty Visual Handle
    */
-  ControlRenderer();
+  Visual();
 
   /**
    * @brief Destructor
    *
    * This is non-virtual since derived Handle types must not contain data or virtual methods.
    */
-  ~ControlRenderer();
+  ~Visual();
 
   /**
    * @brief This copy constructor is required for (smart) pointer semantics.
    *
    * @param[in] handle A reference to the copied handle.
    */
-  ControlRenderer( const ControlRenderer& handle );
+  Visual( const Visual& handle );
 
   /**
    * @brief This assignment operator is required for (smart) pointer semantics.
@@ -68,7 +68,7 @@ public:
    * @param [in] handle  A reference to the copied handle.
    * @return A reference to this.
    */
-  ControlRenderer& operator=( const ControlRenderer& handle );
+  Visual& operator=( const Visual& handle );
 
   /**
    * @brief Set the size of the painting area.
@@ -147,7 +147,7 @@ public:
 
 public: // Not intended for application developers
 
-  explicit DALI_INTERNAL ControlRenderer(Internal::ControlRenderer *impl);
+  explicit DALI_INTERNAL Visual(Internal::Visual *impl);
 
 };
 
index cc879a8..08cdf22 100755 (executable)
@@ -10,8 +10,8 @@ devel_api_src_files = \
   $(devel_api_src_dir)/controls/magnifier/magnifier.cpp \
   $(devel_api_src_dir)/controls/popup/confirmation-popup.cpp \
   $(devel_api_src_dir)/controls/popup/popup.cpp \
-  $(devel_api_src_dir)/controls/renderer-factory/renderer-factory.cpp \
-  $(devel_api_src_dir)/controls/renderer-factory/control-renderer.cpp \
+  $(devel_api_src_dir)/controls/visual-factory/visual-factory.cpp \
+  $(devel_api_src_dir)/controls/visual-factory/visual.cpp \
   $(devel_api_src_dir)/controls/shadow-view/shadow-view.cpp \
   $(devel_api_src_dir)/controls/super-blur-view/super-blur-view.cpp \
   $(devel_api_src_dir)/controls/text-controls/text-selection-popup.cpp \
@@ -51,9 +51,9 @@ devel_api_popup_header_files = \
   $(devel_api_src_dir)/controls/popup/confirmation-popup.h \
   $(devel_api_src_dir)/controls/popup/popup.h
 
-devel_api_renderer_factory_header_files = \
-  $(devel_api_src_dir)/controls/renderer-factory/renderer-factory.h \
-  $(devel_api_src_dir)/controls/renderer-factory/control-renderer.h
+devel_api_visual_factory_header_files = \
+  $(devel_api_src_dir)/controls/visual-factory/visual-factory.h \
+  $(devel_api_src_dir)/controls/visual-factory/visual.h
 
 devel_api_shadow_view_header_files = \
   $(devel_api_src_dir)/controls/shadow-view/shadow-view.h
index 8e71791..9e6adc7 100644 (file)
@@ -77,11 +77,11 @@ inline void SetMotionBlurProperties( Actor& actor, unsigned int numBlurSamples =
  *  "uObjectFadeStart"        - The displacement from the centre of the actor that the actor will start to fade towards its
  *                              edges. This is used to prevent an unsightly hard edge between the blurred actor and the scene.
  *                              Depends on the values of the vertices in the vertex stream. When the actor is at rest this is
- *                              not applied. Default 0.25, which is half way towards the edge for an ImageRenderer::QUAD.
+ *                              not applied. Default 0.25, which is half way towards the edge for an ImageVisual::QUAD.
  *  "uObjectFadeEnd"          - The displacement from the centre of the actor that the actor will finish fading towards its
  *                              edges. This is used to prevent an unsightly hard edge between the blurred actor and the scene.
  *                              Depends on the values of the vertices in the vertex stream. When the actor is at rest this is
- *                              not applied.Default 0.5, which is all the way towards the edge for an ImageRenderer::QUAD.
+ *                              not applied.Default 0.5, which is all the way towards the edge for an ImageVisual::QUAD.
  *  "uAlphaScale"             - Global scaler applied to the alpha of the actor. Used to make the blurred actor a bit more subtle
  *                              (helps to hide discontinuities due to limited number of texture samples) and reveal a bit of the
  *                              background behind it as it moves. When the actor is at rest this is not applied. Default 0.75.
index 326c7bd..b1027bf 100644 (file)
@@ -58,11 +58,11 @@ inline void SetMotionStretchProperties( Actor& actor )
  *                              its edges. This is used to prevent an unsightly hard edge between the stretched actor and
  *                              the scene. Depends on the values of the vertices in the vertex stream. When the actor is at
  *                              rest this is not applied. Default Vector2(0.25, 0.25), which is half way towards the edge for
- *                              an ImageRenderer::QUAD.
+ *                              an ImageVisual::QUAD.
  *  "uObjectFadeEnd"          - The displacement from the centre of the actor that the actor will finish fading towards its edges.
  *                              This is used to prevent an unsightly hard edge between the stretched actor and the scene. Depends
  *                              on the values of the vertices in the vertex stream. When the actor is at rest this is not applied.
- *                              Default 0.5, which is all the way towards the edge for an ImageRenderer::QUAD.
+ *                              Default 0.5, which is all the way towards the edge for an ImageVisual::QUAD.
  *  "uAlphaScale"             - Global scaler applied to the alpha of the actor. Used to make the stretched actor a bit more subtle
  *                              and reveal a bit of the background behind it as it moves. When the actor is at rest this is not
  *                              applied. Default 0.75.
index 5e99442..07722b9 100644 (file)
@@ -29,7 +29,7 @@
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/text-controls/text-label.h>
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 /**
  * Button states and contents
@@ -562,14 +562,14 @@ void Button::SetColor( const Vector4& color, Button::PaintState selectedState )
     {
       // If there is no existing content, create a new actor to use for flat color.
       Actor placementActor = Actor::New();
-      Toolkit::RendererFactory rendererFactory = Toolkit::RendererFactory::Get();
-      Toolkit::ControlRenderer colorRenderer;
+      Toolkit::VisualFactory rendererFactory = Toolkit::VisualFactory::Get();
+      Toolkit::Visual colorRenderer;
 
       Property::Map map;
       map["rendererType"] = "COLOR";
       map["mixColor"] = color;
 
-      colorRenderer = rendererFactory.CreateControlRenderer( map );
+      colorRenderer = rendererFactory.CreateVisual( map );
       colorRenderer.SetOnStage( placementActor );
 
       SetupContent( *contentActor, placementActor ); //
index 4fb7e85..3a53284 100644 (file)
@@ -31,7 +31,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/devel-api/controls/control-depth-index-ranges.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 #include <dali-toolkit/internal/filters/blur-two-pass-filter.h>
 #include <dali-toolkit/internal/filters/emboss-filter.h>
 #include <dali-toolkit/internal/filters/spread-filter.h>
@@ -188,7 +188,7 @@ void EffectsView::SetType( Toolkit::EffectsView::EffectType type )
     customShader[ "vertexShader" ] = EFFECTS_VIEW_VERTEX_SOURCE;
     customShader[ "fragmentShader" ] = EFFECTS_VIEW_FRAGMENT_SOURCE;
     rendererMap[ "shader" ] = customShader;
-    InitializeControlRenderer( self, mRendererPostFilter, rendererMap );
+    InitializeVisual( self, mRendererPostFilter, rendererMap );
 
     mEffectType = type;
   }
@@ -435,7 +435,7 @@ void EffectsView::AllocateResources()
     Actor self( Self() );
 
     mImageForChildren = FrameBufferImage::New( mTargetSize.width, mTargetSize.height, mPixelFormat, Dali::Image::UNUSED );
-    InitializeControlRenderer( self, mRendererForChildren, mImageForChildren );
+    InitializeVisual( self, mRendererForChildren, mImageForChildren );
     mRendererForChildren.SetDepthIndex( DepthIndex::CONTENT+1 );
 
     mImagePostFilter = FrameBufferImage::New( mTargetSize.width, mTargetSize.height, mPixelFormat, Dali::Image::UNUSED );
index bf6569d..bf106e6 100644 (file)
@@ -27,7 +27,7 @@
 #include <dali-toolkit/devel-api/controls/effects-view/effects-view.h>
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/public-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 namespace Dali
 {
@@ -216,7 +216,7 @@ private: // attributes/properties
   /////////////////////////////////////////////////////////////
   // for rendering all user added children to offscreen target
   FrameBufferImage mImageForChildren;
-  Toolkit::ControlRenderer mRendererForChildren;
+  Toolkit::Visual mRendererForChildren;
   RenderTask mRenderTaskForChildren;
   CameraActor mCameraForChildren;
   Actor mChildrenRoot; // for creating a subtree for all user added child actors
@@ -232,7 +232,7 @@ private: // attributes/properties
   /////////////////////////////////////////////////////////////
   // post blur image
   FrameBufferImage mImagePostFilter;
-  Toolkit::ControlRenderer mRendererPostFilter;
+  Toolkit::Visual mRendererPostFilter;
 
   Vector<ImageFilter*> mFilters;
 
index 4571113..3a0063a 100644 (file)
@@ -11,9 +11,9 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -81,7 +81,7 @@ void ImageView::SetImage( Image image )
     mImage = image;
 
     Actor self( Self() );
-    InitializeControlRenderer( self, mRenderer, image );
+    InitializeVisual( self, mRenderer, image );
     mImageSize = image ? ImageDimensions( image.GetWidth(), image.GetHeight() ) : ImageDimensions( 0, 0 );
 
     RelayoutRequest();
@@ -95,7 +95,7 @@ void ImageView::SetImage( Property::Map map )
   mPropertyMap = map;
 
   Actor self( Self() );
-  InitializeControlRenderer( self, mRenderer, mPropertyMap );
+  InitializeVisual( self, mRenderer, mPropertyMap );
 
   Property::Value* widthValue = mPropertyMap.Find( "width" );
   if( widthValue )
@@ -137,7 +137,7 @@ void ImageView::SetImage( const std::string& url, ImageDimensions size )
     }
 
     Actor self( Self() );
-    InitializeControlRenderer( self, mRenderer, url, size );
+    InitializeVisual( self, mRenderer, url, size );
 
     mRenderer.SetSize( mSizeSet );
 
@@ -311,7 +311,7 @@ void ImageView::SetProperty( BaseObject* object, Property::Index index, const Pr
             Property::Map shaderMap;
             if( shaderValue->Get( shaderMap ) )
             {
-              Internal::ControlRenderer& renderer = GetImplementation( impl.mRenderer );
+              Internal::Visual& renderer = GetImplementation( impl.mRenderer );
               renderer.SetCustomShader( shaderMap );
               if( imageView.OnStage() )
               {
index 150fbd5..3dec1b0 100644 (file)
@@ -22,7 +22,7 @@
 #include <dali/public-api/object/property-map.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/image/image-renderer.h>
+#include <dali-toolkit/internal/controls/renderers/image/image-visual.h>
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
 
@@ -158,7 +158,7 @@ private:
   ImageView& operator=( const ImageView& );
 
 private:
-  Toolkit::ControlRenderer  mRenderer;
+  Toolkit::Visual  mRenderer;
   ImageDimensions  mImageSize;
   Vector2 mSizeSet;
 
index cc60dd6..d33627f 100644 (file)
@@ -29,8 +29,8 @@
 #include <dali/public-api/object/property-map.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
 
 namespace Dali
 {
@@ -263,13 +263,13 @@ void Magnifier::SetFrameVisibility(bool visible)
     Vector3 sizeOffset(IMAGE_BORDER_INDENT*2.f - 2.f, IMAGE_BORDER_INDENT*2.f - 2.f, 0.0f);
     mFrame.SetSizeModeFactor( sizeOffset );
 
-    Toolkit::RendererFactory rendererFactory = Toolkit::RendererFactory::Get();
+    Toolkit::VisualFactory rendererFactory = Toolkit::VisualFactory::Get();
 
     Property::Map map;
     map[ RENDERER_TYPE ] = BORDER_RENDERER;
     map[ "borderColor"  ] = Color::WHITE;
     map[ "borderSize"   ] = IMAGE_BORDER_INDENT;
-    Toolkit::ControlRenderer borderRenderer = rendererFactory.CreateControlRenderer( map );
+    Toolkit::Visual borderRenderer = rendererFactory.CreateVisual( map );
     borderRenderer.SetOnStage( mFrame );
 
     Constraint constraint = Constraint::New<Vector3>( mFrame, Actor::Property::POSITION, EqualToConstraint() );
index 01a335c..214459f 100644 (file)
@@ -31,7 +31,7 @@
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-effect.h>
 #include <dali-toolkit/internal/controls/page-turn-view/page-turn-book-spine-effect.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
 
 using namespace Dali;
 
@@ -391,7 +391,7 @@ void PageTurnView::OnInitialize()
   // create the grid geometry for pages
   uint16_t width = static_cast<uint16_t>(mPageSize.width / DEFAULT_GRID_DENSITY + 0.5f);
   uint16_t height = static_cast<uint16_t>(mPageSize.height / DEFAULT_GRID_DENSITY + 0.5f);
-  mGeometry = RendererFactoryCache::CreateGridGeometry( Uint16Pair( width, height ) );
+  mGeometry = VisualFactoryCache::CreateGridGeometry( Uint16Pair( width, height ) );
 
   mPages.reserve( NUMBER_OF_CACHED_PAGES );
   for( int i = 0; i < NUMBER_OF_CACHED_PAGES; i++ )
  */
 
 // CLASS HEADER
-#include "border-renderer.h"
+#include "border-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace Dali
 {
@@ -101,8 +101,8 @@ const char* FRAGMENT_SHADER_ANTI_ALIASING = DALI_COMPOSE_SHADER(
 );
 }
 
-BorderRenderer::BorderRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+BorderVisual::BorderVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mBorderColor( Color::TRANSPARENT ),
   mBorderSize( 0.f ),
   mBorderColorIndex( Property::INVALID_INDEX ),
@@ -111,22 +111,22 @@ BorderRenderer::BorderRenderer( RendererFactoryCache& factoryCache )
 {
 }
 
-BorderRenderer::~BorderRenderer()
+BorderVisual::~BorderVisual()
 {
 }
 
-void BorderRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void BorderVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* color = propertyMap.Find( COLOR_NAME );
   if( !( color && color->Get(mBorderColor) ) )
   {
-    DALI_LOG_ERROR( "Fail to provide a border color to the BorderRenderer object" );
+    DALI_LOG_ERROR( "Fail to provide a border color to the BorderVisual object" );
   }
 
   Property::Value* size = propertyMap.Find( SIZE_NAME );
   if( !( size && size->Get(mBorderSize) ) )
   {
-    DALI_LOG_ERROR( "Fail to provide a border size to the BorderRenderer object" );
+    DALI_LOG_ERROR( "Fail to provide a border size to the BorderVisual object" );
   }
 
   Property::Value* antiAliasing = propertyMap.Find( ANTI_ALIASING );
@@ -136,14 +136,14 @@ void BorderRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMa
   }
 }
 
-void BorderRenderer::SetClipRect( const Rect<int>& clipRect )
+void BorderVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 
   //ToDo: renderer responds to the clipRect change
 }
 
-void BorderRenderer::DoSetOnStage( Actor& actor )
+void BorderVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 
@@ -155,7 +155,7 @@ void BorderRenderer::DoSetOnStage( Actor& actor )
   mBorderSizeIndex = (mImpl->mRenderer).RegisterProperty( SIZE_NAME, mBorderSize );
 }
 
-void BorderRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void BorderVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, BORDER_RENDERER );
@@ -163,13 +163,13 @@ void BorderRenderer::DoCreatePropertyMap( Property::Map& map ) const
   map.Insert( SIZE_NAME, mBorderSize );
 }
 
-void BorderRenderer::InitializeRenderer()
+void BorderVisual::InitializeRenderer()
 {
-  Geometry geometry = mFactoryCache.GetGeometry( RendererFactoryCache::BORDER_GEOMETRY );
+  Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::BORDER_GEOMETRY );
   if( !geometry )
   {
     geometry =  CreateBorderGeometry();
-    mFactoryCache.SaveGeometry( RendererFactoryCache::BORDER_GEOMETRY, geometry );
+    mFactoryCache.SaveGeometry( VisualFactoryCache::BORDER_GEOMETRY, geometry );
   }
 
 
@@ -178,7 +178,7 @@ void BorderRenderer::InitializeRenderer()
 
 }
 
-void BorderRenderer::SetBorderColor(const Vector4& color)
+void BorderVisual::SetBorderColor(const Vector4& color)
 {
   mBorderColor = color;
 
@@ -192,7 +192,7 @@ void BorderRenderer::SetBorderColor(const Vector4& color)
   }
 }
 
-void BorderRenderer::SetBorderSize( float size )
+void BorderVisual::SetBorderSize( float size )
 {
   mBorderSize = size;
 
@@ -202,7 +202,7 @@ void BorderRenderer::SetBorderSize( float size )
   }
 }
 
-void BorderRenderer::RequireAntiAliasing( bool antiAliasing )
+void BorderVisual::RequireAntiAliasing( bool antiAliasing )
 {
   if( mAntiAliasing != antiAliasing )
   {
@@ -219,25 +219,25 @@ void BorderRenderer::RequireAntiAliasing( bool antiAliasing )
   }
 }
 
-Shader BorderRenderer::GetBorderShader()
+Shader BorderVisual::GetBorderShader()
 {
   Shader shader;
   if( mAntiAliasing )
   {
-    shader = mFactoryCache.GetShader( RendererFactoryCache::BORDER_SHADER_ANTI_ALIASING );
+    shader = mFactoryCache.GetShader( VisualFactoryCache::BORDER_SHADER_ANTI_ALIASING );
     if( !shader )
     {
       shader = Shader::New( VERTEX_SHADER_ANTI_ALIASING, FRAGMENT_SHADER_ANTI_ALIASING );
-      mFactoryCache.SaveShader( RendererFactoryCache::BORDER_SHADER_ANTI_ALIASING, shader );
+      mFactoryCache.SaveShader( VisualFactoryCache::BORDER_SHADER_ANTI_ALIASING, shader );
     }
   }
   else
   {
-    shader = mFactoryCache.GetShader( RendererFactoryCache::BORDER_SHADER );
+    shader = mFactoryCache.GetShader( VisualFactoryCache::BORDER_SHADER );
     if( !shader )
     {
       shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
-      mFactoryCache.SaveShader( RendererFactoryCache::BORDER_SHADER, shader );
+      mFactoryCache.SaveShader( VisualFactoryCache::BORDER_SHADER, shader );
     }
   }
 
@@ -260,7 +260,7 @@ Shader BorderRenderer::GetBorderShader()
  * |/ |/ | \|
  * 12-13-14-15
  */
-Geometry BorderRenderer::CreateBorderGeometry()
+Geometry BorderVisual::CreateBorderGeometry()
 {
   const float halfWidth = 0.5f;
   const float halfHeight = 0.5f;
@@ -22,7 +22,7 @@
 #include <dali/public-api/rendering/geometry.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -45,43 +45,43 @@ namespace Internal
  * | antiAliasing    | BOOLEAN     |
  */
 
-class BorderRenderer : public ControlRenderer
+class BorderVisual : public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  BorderRenderer( RendererFactoryCache& factoryCache );
+  BorderVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~BorderRenderer();
+  virtual ~BorderVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
@@ -125,10 +125,10 @@ private:
   Geometry CreateBorderGeometry();
 
   // Undefined
-  BorderRenderer( const BorderRenderer& borderRenderer );
+  BorderVisual( const BorderVisual& borderRenderer );
 
   // Undefined
-  BorderRenderer& operator=( const BorderRenderer& borderRenderer );
+  BorderVisual& operator=( const BorderVisual& borderRenderer );
 
 private:
 
  */
 
 // CLASS HEADER
-#include "color-renderer.h"
+#include "color-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace Dali
 {
@@ -64,70 +64,70 @@ const char* FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
 );
 }
 
-ColorRenderer::ColorRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+ColorVisual::ColorVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mMixColorIndex( Property::INVALID_INDEX )
 {
 }
 
-ColorRenderer::~ColorRenderer()
+ColorVisual::~ColorVisual()
 {
 }
 
-void ColorRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void ColorVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* color = propertyMap.Find( COLOR_NAME );
   if( !( color && color->Get(mMixColor) ) )
   {
-    DALI_LOG_ERROR( "Fail to provide a color to the ColorRenderer object" );
+    DALI_LOG_ERROR( "Fail to provide a color to the ColorVisual object" );
   }
 }
 
-void ColorRenderer::SetSize( const Vector2& size )
+void ColorVisual::SetSize( const Vector2& size )
 {
-  ControlRenderer::SetSize( size );
+  Visual::SetSize( size );
 
   // ToDo: renderer responds to the size change
 }
 
-void ColorRenderer::SetClipRect( const Rect<int>& clipRect )
+void ColorVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 
   //ToDo: renderer responds to the clipRect change
 }
 
-void ColorRenderer::SetOffset( const Vector2& offset )
+void ColorVisual::SetOffset( const Vector2& offset )
 {
   //ToDo: renderer applies the offset
 }
 
-void ColorRenderer::DoSetOnStage( Actor& actor )
+void ColorVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void ColorRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void ColorVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, COLOR_RENDERER );
   map.Insert( COLOR_NAME, mMixColor );
 }
 
-void ColorRenderer::InitializeRenderer()
+void ColorVisual::InitializeRenderer()
 {
-  Geometry geometry = mFactoryCache.GetGeometry( RendererFactoryCache::QUAD_GEOMETRY );
+  Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::QUAD_GEOMETRY );
   if( !geometry )
   {
-    geometry =  RendererFactoryCache::CreateQuadGeometry();
-    mFactoryCache.SaveGeometry( RendererFactoryCache::QUAD_GEOMETRY, geometry );
+    geometry =  VisualFactoryCache::CreateQuadGeometry();
+    mFactoryCache.SaveGeometry( VisualFactoryCache::QUAD_GEOMETRY, geometry );
   }
 
-  Shader shader = mFactoryCache.GetShader( RendererFactoryCache::COLOR_SHADER );
+  Shader shader = mFactoryCache.GetShader( VisualFactoryCache::COLOR_SHADER );
   if( !shader )
   {
     shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
-    mFactoryCache.SaveShader( RendererFactoryCache::COLOR_SHADER, shader );
+    mFactoryCache.SaveShader( VisualFactoryCache::COLOR_SHADER, shader );
   }
 
   mImpl->mRenderer = Renderer::New( geometry, shader );
@@ -139,7 +139,7 @@ void ColorRenderer::InitializeRenderer()
   }
 }
 
-void ColorRenderer::SetColor(const Vector4& color)
+void ColorVisual::SetColor(const Vector4& color)
 {
   mMixColor = color;
 
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -39,53 +39,53 @@ namespace Internal
  * |-----------------|-------------|
  * | mixColor        | VECTOR4     |
  */
-class ColorRenderer: public ControlRenderer
+class ColorVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  ColorRenderer( RendererFactoryCache& factoryCache );
+  ColorVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~ColorRenderer();
+  virtual ~ColorVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
@@ -106,10 +106,10 @@ private:
 private:
 
   // Undefined
-  ColorRenderer( const ColorRenderer& colorRenderer );
+  ColorVisual( const ColorVisual& colorRenderer );
 
   // Undefined
-  ColorRenderer& operator=( const ColorRenderer& colorRenderer );
+  ColorVisual& operator=( const ColorVisual& colorRenderer );
 
 private:
 
 
 
 // CLASS HEADER
-#include "debug-renderer.h"
+#include "debug-visual.h"
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
 
 namespace Dali
 {
@@ -64,39 +64,39 @@ void main()\n
 }
 
 
-DebugRenderer::DebugRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache )
+DebugVisual::DebugVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache )
 {
 }
 
-DebugRenderer::~DebugRenderer()
+DebugVisual::~DebugVisual()
 {}
 
-void DebugRenderer::DoSetOnStage( Actor& actor )
+void DebugVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void DebugRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void DebugVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, DEBUG_RENDERER );
 }
 
-void DebugRenderer::InitializeRenderer()
+void DebugVisual::InitializeRenderer()
 {
-  mImpl->mRenderer = mFactoryCache.GetDebugRenderer();
+  mImpl->mRenderer = mFactoryCache.GetDebugVisual();
   if( !mImpl->mRenderer )
   {
     Geometry geometry = CreateQuadWireframeGeometry();
     Shader shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
 
     mImpl->mRenderer = Renderer::New( geometry, shader);
-    mFactoryCache.CacheDebugRenderer( mImpl->mRenderer );
+    mFactoryCache.CacheDebugVisual( mImpl->mRenderer );
   }
 }
 
-Geometry DebugRenderer::CreateQuadWireframeGeometry()
+Geometry DebugVisual::CreateQuadWireframeGeometry()
 {
   const float halfWidth = 0.5f;
   const float halfHeight = 0.5f;
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -34,31 +34,31 @@ namespace Internal
  * The renderer which renders a wireframe outline to the control's quad for debugging
  *
  */
-class DebugRenderer: public ControlRenderer
+class DebugVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  DebugRenderer( RendererFactoryCache& factoryCache );
+  DebugVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~DebugRenderer();
+  virtual ~DebugVisual();
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
@@ -78,10 +78,10 @@ private:
 private:
 
   // Undefined
-  DebugRenderer( const DebugRenderer& debugRenderer );
+  DebugVisual( const DebugVisual& debugRenderer );
 
   // Undefined
-  DebugRenderer& operator=( const DebugRenderer& debugRenderer );
+  DebugVisual& operator=( const DebugVisual& debugRenderer );
 
 };
 
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "gradient-renderer.h"
+#include "gradient-visual.h"
 
 // EXTERNAL INCLUDES
 #include <typeinfo>
 #include <dali/public-api/object/property-array.h>
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
 #include <dali-toolkit/internal/controls/renderers/gradient/linear-gradient.h>
 #include <dali-toolkit/internal/controls/renderers/gradient/radial-gradient.h>
 
@@ -72,22 +72,22 @@ const char * const UNIFORM_ALIGNMENT_MATRIX_NAME( "uAlignmentMatrix" );
 const unsigned int DEFAULT_OFFSET_MINIMUM = 0.0f;
 const unsigned int DEFAULT_OFFSET_MAXIMUM = 1.0f;
 
-RendererFactoryCache::ShaderType GetShaderType( GradientRenderer::Type type, Gradient::GradientUnits units)
+VisualFactoryCache::ShaderType GetShaderType( GradientVisual::Type type, Gradient::GradientUnits units)
 {
-  if( type==GradientRenderer::LINEAR )
+  if( type==GradientVisual::LINEAR )
   {
    if( units == Gradient::USER_SPACE_ON_USE )
    {
-     return RendererFactoryCache::GRADIENT_SHADER_LINEAR_USER_SPACE;
+     return VisualFactoryCache::GRADIENT_SHADER_LINEAR_USER_SPACE;
    }
-   return RendererFactoryCache::GRADIENT_SHADER_LINEAR_BOUNDING_BOX;
+   return VisualFactoryCache::GRADIENT_SHADER_LINEAR_BOUNDING_BOX;
   }
   else if( units == Gradient::USER_SPACE_ON_USE )
   {
-    return RendererFactoryCache::GRADIENT_SHADER_RADIAL_USER_SPACE;
+    return VisualFactoryCache::GRADIENT_SHADER_RADIAL_USER_SPACE;
   }
 
-  return RendererFactoryCache::GRADIENT_SHADER_RADIAL_BOUNDING_BOX;
+  return VisualFactoryCache::GRADIENT_SHADER_RADIAL_BOUNDING_BOX;
 }
 
 const char* VERTEX_SHADER[] =
@@ -179,18 +179,18 @@ Dali::WrapMode::Type GetWrapMode( Gradient::SpreadMethod spread )
 }
 
 
-GradientRenderer::GradientRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+GradientVisual::GradientVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mGradientType( LINEAR )
 {
   mImpl->mFlags |= Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
-GradientRenderer::~GradientRenderer()
+GradientVisual::~GradientVisual()
 {
 }
 
-void GradientRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void GradientVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Gradient::GradientUnits gradientUnits = Gradient::OBJECT_BOUNDING_BOX;
   Property::Value* unitsValue = propertyMap.Find( UNITS_NAME );
@@ -215,33 +215,33 @@ void GradientRenderer::DoInitialize( Actor& actor, const Property::Map& property
   }
   else
   {
-    DALI_LOG_ERROR( "Fail to provide valid properties to create a GradientRenderer object" );
+    DALI_LOG_ERROR( "Fail to provide valid properties to create a GradientVisual object" );
   }
 }
 
-void GradientRenderer::SetSize( const Vector2& size )
+void GradientVisual::SetSize( const Vector2& size )
 {
-  ControlRenderer::SetSize( size );
+  Visual::SetSize( size );
 }
 
-void GradientRenderer::SetClipRect( const Rect<int>& clipRect )
+void GradientVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 
   //ToDo: renderer responds to the clipRect change
 }
 
-void GradientRenderer::SetOffset( const Vector2& offset )
+void GradientVisual::SetOffset( const Vector2& offset )
 {
   //ToDo: renderer applies the offset
 }
 
-void GradientRenderer::DoSetOnStage( Actor& actor )
+void GradientVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void GradientRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void GradientVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, GRADIENT_RENDERER );
@@ -306,17 +306,17 @@ void GradientRenderer::DoCreatePropertyMap( Property::Map& map ) const
   }
 }
 
-void GradientRenderer::InitializeRenderer()
+void GradientVisual::InitializeRenderer()
 {
-  Geometry geometry = mFactoryCache.GetGeometry( RendererFactoryCache::QUAD_GEOMETRY );
+  Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::QUAD_GEOMETRY );
   if( !geometry )
   {
-    geometry =  RendererFactoryCache::CreateQuadGeometry();
-    mFactoryCache.SaveGeometry( RendererFactoryCache::QUAD_GEOMETRY, geometry );
+    geometry =  VisualFactoryCache::CreateQuadGeometry();
+    mFactoryCache.SaveGeometry( VisualFactoryCache::QUAD_GEOMETRY, geometry );
   }
 
   Gradient::GradientUnits gradientUnits = mGradient->GetGradientUnits();
-  RendererFactoryCache::ShaderType shaderType = GetShaderType( mGradientType, gradientUnits );
+  VisualFactoryCache::ShaderType shaderType = GetShaderType( mGradientType, gradientUnits );
   Shader shader = mFactoryCache.GetShader( shaderType );
   if( !shader )
   {
@@ -339,7 +339,7 @@ void GradientRenderer::InitializeRenderer()
   mImpl->mRenderer.RegisterProperty( UNIFORM_ALIGNMENT_MATRIX_NAME, mGradientTransform );
 }
 
-bool GradientRenderer::NewGradient(Type gradientType, const Property::Map& propertyMap)
+bool GradientVisual::NewGradient(Type gradientType, const Property::Map& propertyMap)
 {
   if( gradientType==LINEAR )
   {
@@ -423,7 +423,7 @@ bool GradientRenderer::NewGradient(Type gradientType, const Property::Map& prope
   return true;
 }
 
-void GradientRenderer::GetStopOffsets(const Property::Value* value, Vector<float>& stopOffsets)
+void GradientVisual::GetStopOffsets(const Property::Value* value, Vector<float>& stopOffsets)
 {
 
   if ( value ) // Only check valve type if a valid Property has been passed in
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 #include <dali-toolkit/internal/controls/renderers/gradient/gradient.h>
 
 namespace Dali
@@ -66,7 +66,7 @@ class Gradient;
  * Valid values for spreadMethod are 'pad', 'repeat' and 'reflect.'
  * If not provided, 'objectBoundingBox' is used as default gradient units, and 'pad' is used as default spread method.
  */
-class GradientRenderer: public ControlRenderer
+class GradientVisual: public Visual
 {
 public:
 
@@ -82,45 +82,45 @@ public:
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  GradientRenderer( RendererFactoryCache& factoryCache );
+  GradientVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  ~GradientRenderer();
+  ~GradientVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
@@ -148,10 +148,10 @@ private:
   static void GetStopOffsets(const Property::Value* value, Vector<float>& stopOffsets);
 
   // Undefined
-  GradientRenderer( const GradientRenderer& gradientRenderer );
+  GradientVisual( const GradientVisual& gradientRenderer );
 
   // Undefined
-  GradientRenderer& operator=( const GradientRenderer& gradientRenderer );
+  GradientVisual& operator=( const GradientVisual& gradientRenderer );
 
 private:
 
index fa1271e..6553ed9 100644 (file)
@@ -36,7 +36,7 @@ namespace Internal
 {
 
 /**
- * The manager for automatic image atlasing. Owned by RendererFactory
+ * The manager for automatic image atlasing. Owned by VisualFactory
  */
 class ImageAtlasManager : public RefObject
 {
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "image-renderer.h"
+#include "image-visual.h"
 
 // EXTERNAL HEADER
 #include <cstring> // for strncasecmp
 #include <dali/integration-api/debug.h>
 
 // INTERNAL HEADER
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 #include <dali-toolkit/internal/controls/renderers/image-atlas-manager.h>
 
 namespace Dali
@@ -108,22 +108,22 @@ const char* FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
   }\n
 );
 
-Geometry CreateGeometry( RendererFactoryCache& factoryCache, ImageDimensions gridSize )
+Geometry CreateGeometry( VisualFactoryCache& factoryCache, ImageDimensions gridSize )
 {
   Geometry geometry;
 
   if( gridSize == ImageDimensions( 1, 1 ) )
   {
-    geometry = factoryCache.GetGeometry( RendererFactoryCache::QUAD_GEOMETRY );
+    geometry = factoryCache.GetGeometry( VisualFactoryCache::QUAD_GEOMETRY );
     if( !geometry )
     {
-      geometry =  RendererFactoryCache::CreateQuadGeometry();
-      factoryCache.SaveGeometry( RendererFactoryCache::QUAD_GEOMETRY, geometry );
+      geometry =  VisualFactoryCache::CreateQuadGeometry();
+      factoryCache.SaveGeometry( VisualFactoryCache::QUAD_GEOMETRY, geometry );
     }
   }
   else
   {
-    geometry = RendererFactoryCache::CreateGridGeometry( gridSize );
+    geometry = VisualFactoryCache::CreateGridGeometry( gridSize );
   }
 
   return geometry;
@@ -131,8 +131,8 @@ Geometry CreateGeometry( RendererFactoryCache& factoryCache, ImageDimensions gri
 
 } //unnamed namespace
 
-ImageRenderer::ImageRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager& atlasManager )
-: ControlRenderer( factoryCache ),
+ImageVisual::ImageVisual( VisualFactoryCache& factoryCache, ImageAtlasManager& atlasManager )
+: Visual( factoryCache ),
   mAtlasManager( atlasManager ),
   mDesiredSize(),
   mFittingMode( FittingMode::DEFAULT ),
@@ -142,11 +142,11 @@ ImageRenderer::ImageRenderer( RendererFactoryCache& factoryCache, ImageAtlasMana
 {
 }
 
-ImageRenderer::~ImageRenderer()
+ImageVisual::~ImageVisual()
 {
 }
 
-void ImageRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void ImageVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   std::string oldImageUrl = mImageUrl;
 
@@ -304,12 +304,12 @@ void ImageRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap
   }
 }
 
-void ImageRenderer::SetSize( const Vector2& size )
+void ImageVisual::SetSize( const Vector2& size )
 {
-  ControlRenderer::SetSize( size );
+  Visual::SetSize( size );
 }
 
-void ImageRenderer::GetNaturalSize( Vector2& naturalSize ) const
+void ImageVisual::GetNaturalSize( Vector2& naturalSize ) const
 {
   if(mImage)
   {
@@ -334,16 +334,16 @@ void ImageRenderer::GetNaturalSize( Vector2& naturalSize ) const
   naturalSize = Vector2::ZERO;
 }
 
-void ImageRenderer::SetClipRect( const Rect<int>& clipRect )
+void ImageVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 }
 
-void ImageRenderer::SetOffset( const Vector2& offset )
+void ImageVisual::SetOffset( const Vector2& offset )
 {
 }
 
-Renderer ImageRenderer::CreateRenderer() const
+Renderer ImageVisual::CreateRenderer() const
 {
   Geometry geometry;
   Shader shader;
@@ -352,7 +352,7 @@ Renderer ImageRenderer::CreateRenderer() const
   // Renderer can't be shared between NativeImage and other image types.
   if( !mNativeFragmentShaderCode.empty() )
   {
-    return CreateNativeImageRenderer();
+    return CreateNativeImageVisual();
   }
 
   if( !mImpl->mCustomShader )
@@ -386,7 +386,7 @@ Renderer ImageRenderer::CreateRenderer() const
   return renderer;
 }
 
-Renderer ImageRenderer::CreateNativeImageRenderer() const
+Renderer ImageVisual::CreateNativeImageVisual() const
 {
   Geometry geometry;
   Shader shader;
@@ -420,12 +420,12 @@ Renderer ImageRenderer::CreateNativeImageRenderer() const
 }
 
 
-bool ImageRenderer::IsSynchronousResourceLoading() const
+bool ImageVisual::IsSynchronousResourceLoading() const
 {
   return mImpl->mFlags & Impl::IS_SYNCHRONOUS_RESOURCE_LOADING;
 }
 
-void ImageRenderer::DoSynchronousResourceLoading()
+void ImageVisual::DoSynchronousResourceLoading()
 {
   if( !mImageUrl.empty() )
   {
@@ -435,14 +435,14 @@ void ImageRenderer::DoSynchronousResourceLoading()
   }
 }
 
-Image ImageRenderer::LoadImage( const std::string& url, bool synchronousLoading )
+Image ImageVisual::LoadImage( const std::string& url, bool synchronousLoading )
 {
   if( synchronousLoading )
   {
     if( !mPixels )
     {
       // use broken image
-      return RendererFactory::GetBrokenRendererImage();
+      return VisualFactory::GetBrokenRendererImage();
     }
     Atlas image = Atlas::New( mPixels.GetWidth(), mPixels.GetHeight(), mPixels.GetPixelFormat() );
     image.Upload( mPixels, 0, 0 );
@@ -451,12 +451,12 @@ Image ImageRenderer::LoadImage( const std::string& url, bool synchronousLoading
   else
   {
     ResourceImage resourceImage = Dali::ResourceImage::New( url, mDesiredSize, mFittingMode, mSamplingMode );
-    resourceImage.LoadingFinishedSignal().Connect( this, &ImageRenderer::OnImageLoaded );
+    resourceImage.LoadingFinishedSignal().Connect( this, &ImageVisual::OnImageLoaded );
     return resourceImage;
   }
 }
 
-TextureSet ImageRenderer::CreateTextureSet( Vector4& textureRect, const std::string& url, bool synchronousLoading )
+TextureSet ImageVisual::CreateTextureSet( Vector4& textureRect, const std::string& url, bool synchronousLoading )
 {
   TextureSet textureSet;
   textureRect = FULL_TEXTURE_RECT;
@@ -466,7 +466,7 @@ TextureSet ImageRenderer::CreateTextureSet( Vector4& textureRect, const std::str
     {
       // use broken image
       textureSet = TextureSet::New();
-      TextureSetImage( textureSet, 0u, RendererFactory::GetBrokenRendererImage() );
+      TextureSetImage( textureSet, 0u, VisualFactory::GetBrokenRendererImage() );
     }
     else
     {
@@ -486,7 +486,7 @@ TextureSet ImageRenderer::CreateTextureSet( Vector4& textureRect, const std::str
     if( !textureSet ) // big image, no atlasing
     {
       ResourceImage resourceImage = Dali::ResourceImage::New( url, mDesiredSize, mFittingMode, mSamplingMode );
-      resourceImage.LoadingFinishedSignal().Connect( this, &ImageRenderer::OnImageLoaded );
+      resourceImage.LoadingFinishedSignal().Connect( this, &ImageVisual::OnImageLoaded );
       textureSet = TextureSet::New();
       TextureSetImage( textureSet, 0u, resourceImage );
     }
@@ -495,7 +495,7 @@ TextureSet ImageRenderer::CreateTextureSet( Vector4& textureRect, const std::str
   return textureSet;
 }
 
-void ImageRenderer::InitializeRenderer( const std::string& imageUrl )
+void ImageVisual::InitializeRenderer( const std::string& imageUrl )
 {
   if( imageUrl.empty() )
   {
@@ -538,7 +538,7 @@ void ImageRenderer::InitializeRenderer( const std::string& imageUrl )
   }
 }
 
-void ImageRenderer::InitializeRenderer( const Image& image )
+void ImageVisual::InitializeRenderer( const Image& image )
 {
   mImpl->mFlags &= ~Impl::IS_FROM_CACHE;
 
@@ -551,7 +551,7 @@ void ImageRenderer::InitializeRenderer( const Image& image )
 }
 
 
-void ImageRenderer::DoSetOnStage( Actor& actor )
+void ImageVisual::DoSetOnStage( Actor& actor )
 {
   if( !mImageUrl.empty() )
   {
@@ -564,7 +564,7 @@ void ImageRenderer::DoSetOnStage( Actor& actor )
 
 }
 
-void ImageRenderer::DoSetOffStage( Actor& actor )
+void ImageVisual::DoSetOffStage( Actor& actor )
 {
   //If we own the image then make sure we release it when we go off stage
   if( !mImageUrl.empty() )
@@ -580,7 +580,7 @@ void ImageRenderer::DoSetOffStage( Actor& actor )
   }
 }
 
-void ImageRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void ImageVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, IMAGE_RENDERER );
@@ -679,20 +679,20 @@ void ImageRenderer::DoCreatePropertyMap( Property::Map& map ) const
   }
 }
 
-Shader ImageRenderer::GetImageShader( RendererFactoryCache& factoryCache )
+Shader ImageVisual::GetImageShader( VisualFactoryCache& factoryCache )
 {
-  Shader shader = factoryCache.GetShader( RendererFactoryCache::IMAGE_SHADER );
+  Shader shader = factoryCache.GetShader( VisualFactoryCache::IMAGE_SHADER );
   if( !shader )
   {
     shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
-    factoryCache.SaveShader( RendererFactoryCache::IMAGE_SHADER, shader );
+    factoryCache.SaveShader( VisualFactoryCache::IMAGE_SHADER, shader );
     shader.RegisterProperty( ATLAS_RECT_UNIFORM_NAME, FULL_TEXTURE_RECT );
     shader.RegisterProperty( PIXEL_AREA_UNIFORM_NAME, FULL_TEXTURE_RECT );
   }
   return shader;
 }
 
-void ImageRenderer::SetImage( Actor& actor, const std::string& imageUrl, ImageDimensions size, Dali::FittingMode::Type fittingMode, Dali::SamplingMode::Type samplingMode )
+void ImageVisual::SetImage( Actor& actor, const std::string& imageUrl, ImageDimensions size, Dali::FittingMode::Type fittingMode, Dali::SamplingMode::Type samplingMode )
 {
   if( mImageUrl != imageUrl )
   {
@@ -738,7 +738,7 @@ void ImageRenderer::SetImage( Actor& actor, const std::string& imageUrl, ImageDi
   }
 }
 
-void ImageRenderer::SetImage( Actor& actor, const Image& image )
+void ImageVisual::SetImage( Actor& actor, const Image& image )
 {
   if( mImage != image )
   {
@@ -817,7 +817,7 @@ void ImageRenderer::SetImage( Actor& actor, const Image& image )
   }
 }
 
-void ImageRenderer::ApplyImageToSampler( const Image& image )
+void ImageVisual::ApplyImageToSampler( const Image& image )
 {
   if( image )
   {
@@ -831,11 +831,11 @@ void ImageRenderer::ApplyImageToSampler( const Image& image )
   }
 }
 
-void ImageRenderer::OnImageLoaded( ResourceImage image )
+void ImageVisual::OnImageLoaded( ResourceImage image )
 {
   if( image.GetLoadingState() == Dali::ResourceLoadingFailed )
   {
-    Image brokenImage = RendererFactory::GetBrokenRendererImage();
+    Image brokenImage = VisualFactory::GetBrokenRendererImage();
     if( mImpl->mRenderer )
     {
       ApplyImageToSampler( brokenImage );
@@ -843,7 +843,7 @@ void ImageRenderer::OnImageLoaded( ResourceImage image )
   }
 }
 
-void ImageRenderer::CleanCache(const std::string& url)
+void ImageVisual::CleanCache(const std::string& url)
 {
   TextureSet textureSet = mImpl->mRenderer.GetTextures();
 
@@ -862,7 +862,7 @@ void ImageRenderer::CleanCache(const std::string& url)
   }
 }
 
-void ImageRenderer::SetNativeFragmentShaderCode( Dali::NativeImage& nativeImage )
+void ImageVisual::SetNativeFragmentShaderCode( Dali::NativeImage& nativeImage )
 {
   const char* fragmentPreFix = nativeImage.GetCustomFragmentPreFix();
   const char* customSamplerTypename = nativeImage.GetCustomSamplerTypename();
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 #include <dali-toolkit/internal/controls/renderers/image-atlas-manager.h>
 
 // EXTERNAL INCLUDES
@@ -38,8 +38,8 @@ namespace Toolkit
 namespace Internal
 {
 
-class ImageRenderer;
-typedef IntrusivePtr< ImageRenderer > ImageRendererPtr;
+class ImageVisual;
+typedef IntrusivePtr< ImageVisual > ImageVisualPtr;
 
 /**
  * The renderer which renders an image to the control's quad
@@ -73,63 +73,63 @@ typedef IntrusivePtr< ImageRenderer > ImageRendererPtr;
  *   "DEFAULT"
  *
  */
-class ImageRenderer: public ControlRenderer, public ConnectionTracker
+class ImageVisual: public Visual, public ConnectionTracker
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache The RendererFactoryCache object
+   * @param[in] factoryCache The VisualFactoryCache object
    * @param[in] atlasManager The atlasManager object
    */
-  ImageRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
+  ImageVisual( VisualFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  ~ImageRenderer();
+  ~ImageVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::GetNaturalSize
+   * @copydoc Visual::GetNaturalSize
    */
   virtual void GetNaturalSize( Vector2& naturalSize ) const;
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::DoSetOffStage
+   * @copydoc Visual::DoSetOffStage
    */
   virtual void DoSetOffStage( Actor& actor );
 
@@ -137,9 +137,9 @@ public:
 
   /**
    * Get the standard image rendering shader.
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  static Shader GetImageShader( RendererFactoryCache& factoryCache );
+  static Shader GetImageShader( VisualFactoryCache& factoryCache );
 
   /**
    * @brief Sets the image of this renderer to the resource at imageUrl
@@ -177,14 +177,14 @@ private:
   /**
    * @brief Initializes the Dali::Renderer from an image url string
    *
-   * @param[in] imageUrl The image url string to intialize this ImageRenderer from
+   * @param[in] imageUrl The image url string to intialize this ImageVisual from
    */
   void InitializeRenderer( const std::string& imageUrl );
 
   /**
    * @brief Initializes the Dali::Renderer from an image handle
    *
-   * @param[in] image The image handle to intialize this ImageRenderer from
+   * @param[in] image The image handle to intialize this ImageVisual from
    */
   void InitializeRenderer( const Image& image );
 
@@ -200,7 +200,7 @@ private:
    *
    * @return Returns the created Dali::Renderer
    */
-  Renderer CreateNativeImageRenderer() const;
+  Renderer CreateNativeImageVisual() const;
 
   /**
    * @brief Query whether resources requires to be loaded synchronously.
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "mesh-renderer.h"
+#include "mesh-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
@@ -26,8 +26,8 @@
 #include <fstream>
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace Dali
 {
@@ -277,8 +277,8 @@ const char* NORMAL_MAP_FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
 
 } // namespace
 
-MeshRenderer::MeshRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+MeshVisual::MeshVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mShaderType( ALL_TEXTURES ),
   mUseTexture( true ),
   mUseMipmapping( true ),
@@ -286,16 +286,16 @@ MeshRenderer::MeshRenderer( RendererFactoryCache& factoryCache )
 {
 }
 
-MeshRenderer::~MeshRenderer()
+MeshVisual::~MeshVisual()
 {
 }
 
-void MeshRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void MeshVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* objectUrl = propertyMap.Find( OBJECT_URL );
   if( !objectUrl || !objectUrl->Get( mObjectUrl ) )
   {
-    DALI_LOG_ERROR( "Fail to provide object URL to the MeshRenderer object.\n" );
+    DALI_LOG_ERROR( "Fail to provide object URL to the MeshVisual object.\n" );
   }
 
   Property::Value* materialUrl = propertyMap.Find( MATERIAL_URL );
@@ -332,7 +332,7 @@ void MeshRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap
       }
       else
       {
-        DALI_LOG_ERROR( "Unknown shader type provided to the MeshRenderer object.\n");
+        DALI_LOG_ERROR( "Unknown shader type provided to the MeshVisual object.\n");
       }
     }
   }
@@ -368,31 +368,31 @@ void MeshRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap
   }
 }
 
-void MeshRenderer::SetSize( const Vector2& size )
+void MeshVisual::SetSize( const Vector2& size )
 {
-  ControlRenderer::SetSize( size );
+  Visual::SetSize( size );
 
   // ToDo: renderer responds to the size change
 }
 
-void MeshRenderer::SetClipRect( const Rect<int>& clipRect )
+void MeshVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 
   //ToDo: renderer responds to the clipRect change
 }
 
-void MeshRenderer::SetOffset( const Vector2& offset )
+void MeshVisual::SetOffset( const Vector2& offset )
 {
   //ToDo: renderer applies the offset
 }
 
-void MeshRenderer::DoSetOnStage( Actor& actor )
+void MeshVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void MeshRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void MeshVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, MESH_RENDERER );
@@ -428,7 +428,7 @@ void MeshRenderer::DoCreatePropertyMap( Property::Map& map ) const
   map.Insert( LIGHT_POSITION_UNIFORM_NAME, mLightPosition );
 }
 
-void MeshRenderer::InitializeRenderer()
+void MeshVisual::InitializeRenderer()
 {
   //Try to load the geometry from the file.
   if( !LoadGeometry() )
@@ -468,7 +468,7 @@ void MeshRenderer::InitializeRenderer()
   mImpl->mRenderer.SetProperty( Renderer::Property::DEPTH_WRITE_MODE, DepthWriteMode::ON );
 }
 
-void MeshRenderer::SupplyEmptyGeometry()
+void MeshVisual::SupplyEmptyGeometry()
 {
   mGeometry = Geometry::New();
   mShader = Shader::New( SIMPLE_VERTEX_SHADER, SIMPLE_FRAGMENT_SHADER );
@@ -477,7 +477,7 @@ void MeshRenderer::SupplyEmptyGeometry()
   DALI_LOG_ERROR( "Initialisation error in mesh renderer.\n" );
 }
 
-void MeshRenderer::UpdateShaderUniforms()
+void MeshVisual::UpdateShaderUniforms()
 {
   Stage stage = Stage::GetCurrent();
   float width = stage.GetSize().width;
@@ -491,7 +491,7 @@ void MeshRenderer::UpdateShaderUniforms()
   mShader.RegisterProperty( OBJECT_MATRIX_UNIFORM_NAME, scaleMatrix );
 }
 
-void MeshRenderer::CreateShader()
+void MeshVisual::CreateShader()
 {
   if( mShaderType == ALL_TEXTURES )
   {
@@ -509,7 +509,7 @@ void MeshRenderer::CreateShader()
   UpdateShaderUniforms();
 }
 
-bool MeshRenderer::CreateGeometry()
+bool MeshVisual::CreateGeometry()
 {
   //Determine if we need to use a simpler shader to handle the provided data
   if( !mUseTexture || !mObjLoader.IsDiffuseMapPresent() )
@@ -546,7 +546,7 @@ bool MeshRenderer::CreateGeometry()
   return false;
 }
 
-bool MeshRenderer::LoadGeometry()
+bool MeshVisual::LoadGeometry()
 {
   std::streampos fileSize;
   Dali::Vector<char> fileContent;
@@ -567,7 +567,7 @@ bool MeshRenderer::LoadGeometry()
   return false;
 }
 
-bool MeshRenderer::LoadMaterial()
+bool MeshVisual::LoadMaterial()
 {
   std::streampos fileSize;
   Dali::Vector<char> fileContent;
@@ -584,7 +584,7 @@ bool MeshRenderer::LoadMaterial()
   return false;
 }
 
-bool MeshRenderer::LoadTextures()
+bool MeshVisual::LoadTextures()
 {
   mTextureSet = TextureSet::New();
 
@@ -23,7 +23,7 @@
 #include <string.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 #include <dali-toolkit/internal/controls/model3d-view/obj-loader.h>
 
 namespace Dali
@@ -50,53 +50,53 @@ namespace Internal
  * | useSoftNormals  | BOOLEAN     | If true, average normals at points for smooth textures. Default true. |
  * | lightPosition   | VECTOR3     | The position (on stage) of the light                                  |
  */
-class MeshRenderer: public ControlRenderer
+class MeshVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  MeshRenderer( RendererFactoryCache& factoryCache );
+  MeshVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~MeshRenderer();
+  virtual ~MeshVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
@@ -172,10 +172,10 @@ private:
 private:
 
   // Undefined
-  MeshRenderer( const MeshRenderer& meshRenderer );
+  MeshVisual( const MeshVisual& meshRenderer );
 
   // Undefined
-  MeshRenderer& operator=( const MeshRenderer& meshRenderer );
+  MeshVisual& operator=( const MeshVisual& meshRenderer );
 
 private:
 
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "npatch-renderer.h"
+#include "npatch-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/platform-abstraction.h>
 #include <dali/devel-api/images/texture-set-image.h>
 
 // INTERNAL IINCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 
 namespace Dali
@@ -197,19 +197,19 @@ void RegisterStretchProperties( Renderer& renderer, const char * uniformName, co
 
 } //unnamed namespace
 
-/////////////////NPatchRenderer////////////////
+/////////////////NPatchVisual////////////////
 
-NPatchRenderer::NPatchRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+NPatchVisual::NPatchVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mBorderOnly( false )
 {
 }
 
-NPatchRenderer::~NPatchRenderer()
+NPatchVisual::~NPatchVisual()
 {
 }
 
-void NPatchRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void NPatchVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* imageURLValue = propertyMap.Find( IMAGE_URL_NAME );
   if( imageURLValue )
@@ -234,7 +234,7 @@ void NPatchRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMa
   }
 }
 
-void NPatchRenderer::GetNaturalSize( Vector2& naturalSize ) const
+void NPatchVisual::GetNaturalSize( Vector2& naturalSize ) const
 {
   if( mImage )
   {
@@ -253,38 +253,38 @@ void NPatchRenderer::GetNaturalSize( Vector2& naturalSize ) const
   }
 }
 
-void NPatchRenderer::SetClipRect( const Rect<int>& clipRect )
+void NPatchVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
   //ToDo: renderer responds to the clipRect change
 }
 
-void NPatchRenderer::SetOffset( const Vector2& offset )
+void NPatchVisual::SetOffset( const Vector2& offset )
 {
   //ToDo: renderer applies the offset
 }
 
-Geometry NPatchRenderer::CreateGeometry()
+Geometry NPatchVisual::CreateGeometry()
 {
   Geometry geometry;
   if( mStretchPixelsX.Size() == 1 && mStretchPixelsY.Size() == 1 )
   {
     if( !mBorderOnly )
     {
-      geometry = mFactoryCache.GetGeometry( RendererFactoryCache::NINE_PATCH_GEOMETRY );
+      geometry = mFactoryCache.GetGeometry( VisualFactoryCache::NINE_PATCH_GEOMETRY );
       if( !geometry )
       {
         geometry = CreateGeometry( Uint16Pair( 3, 3 ) );
-        mFactoryCache.SaveGeometry( RendererFactoryCache::NINE_PATCH_GEOMETRY, geometry );
+        mFactoryCache.SaveGeometry( VisualFactoryCache::NINE_PATCH_GEOMETRY, geometry );
       }
     }
     else
     {
-      geometry = mFactoryCache.GetGeometry( RendererFactoryCache::NINE_PATCH_BORDER_GEOMETRY );
+      geometry = mFactoryCache.GetGeometry( VisualFactoryCache::NINE_PATCH_BORDER_GEOMETRY );
       if( !geometry )
       {
         geometry = CreateGeometryBorder( Uint16Pair( 3, 3 ) );
-        mFactoryCache.SaveGeometry( RendererFactoryCache::NINE_PATCH_BORDER_GEOMETRY, geometry );
+        mFactoryCache.SaveGeometry( VisualFactoryCache::NINE_PATCH_BORDER_GEOMETRY, geometry );
       }
     }
   }
@@ -297,18 +297,18 @@ Geometry NPatchRenderer::CreateGeometry()
   return geometry;
 }
 
-Shader NPatchRenderer::CreateShader()
+Shader NPatchVisual::CreateShader()
 {
   Shader shader;
   if( !mImpl->mCustomShader )
   {
     if( mStretchPixelsX.Size() == 1 && mStretchPixelsY.Size() == 1 )
     {
-      shader = mFactoryCache.GetShader( RendererFactoryCache::NINE_PATCH_SHADER );
+      shader = mFactoryCache.GetShader( VisualFactoryCache::NINE_PATCH_SHADER );
       if( !shader )
       {
         shader = Shader::New( VERTEX_SHADER_3X3, FRAGMENT_SHADER );
-        mFactoryCache.SaveShader( RendererFactoryCache::NINE_PATCH_SHADER, shader );
+        mFactoryCache.SaveShader( VisualFactoryCache::NINE_PATCH_SHADER, shader );
       }
     }
     else if( mStretchPixelsX.Size() > 0 || mStretchPixelsY.Size() > 0)
@@ -350,7 +350,7 @@ Shader NPatchRenderer::CreateShader()
   return shader;
 }
 
-void NPatchRenderer::InitializeRenderer()
+void NPatchVisual::InitializeRenderer()
 {
   Geometry geometry = CreateGeometry();
   Shader shader = CreateShader();
@@ -367,7 +367,7 @@ void NPatchRenderer::InitializeRenderer()
 }
 
 
-void NPatchRenderer::DoSetOnStage( Actor& actor )
+void NPatchVisual::DoSetOnStage( Actor& actor )
 {
   if( !mCroppedImage )
   {
@@ -391,14 +391,14 @@ void NPatchRenderer::DoSetOnStage( Actor& actor )
   }
 }
 
-void NPatchRenderer::DoSetOffStage( Actor& actor )
+void NPatchVisual::DoSetOffStage( Actor& actor )
 {
   mCroppedImage.Reset();
   actor.RemoveRenderer( mImpl->mRenderer );
   mImpl->mRenderer.Reset();
 }
 
-void NPatchRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void NPatchVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, IMAGE_RENDERER );
@@ -413,7 +413,7 @@ void NPatchRenderer::DoCreatePropertyMap( Property::Map& map ) const
   map.Insert( BORDER_ONLY, mBorderOnly );
 }
 
-void NPatchRenderer::ChangeRenderer( bool oldBorderOnly, size_t oldGridX, size_t oldGridY )
+void NPatchVisual::ChangeRenderer( bool oldBorderOnly, size_t oldGridX, size_t oldGridY )
 {
   //check to see if the border style has changed
 
@@ -449,7 +449,7 @@ void NPatchRenderer::ChangeRenderer( bool oldBorderOnly, size_t oldGridX, size_t
   }
 }
 
-void NPatchRenderer::SetImage( const std::string& imageUrl, bool borderOnly )
+void NPatchVisual::SetImage( const std::string& imageUrl, bool borderOnly )
 {
   bool oldBorderOnly = mBorderOnly;
   size_t oldGridX = mStretchPixelsX.Size();
@@ -477,7 +477,7 @@ void NPatchRenderer::SetImage( const std::string& imageUrl, bool borderOnly )
   }
 }
 
-void NPatchRenderer::SetImage( NinePatchImage image, bool borderOnly )
+void NPatchVisual::SetImage( NinePatchImage image, bool borderOnly )
 {
   bool oldBorderOnly = mBorderOnly;
   size_t oldGridX = mStretchPixelsX.Size();
@@ -503,7 +503,7 @@ void NPatchRenderer::SetImage( NinePatchImage image, bool borderOnly )
   }
 }
 
-void NPatchRenderer::InitializeFromImage( NinePatchImage nPatch )
+void NPatchVisual::InitializeFromImage( NinePatchImage nPatch )
 {
   mCroppedImage = nPatch.CreateCroppedBufferImage();
   if( !mCroppedImage )
@@ -519,9 +519,9 @@ void NPatchRenderer::InitializeFromImage( NinePatchImage nPatch )
   mStretchPixelsY = nPatch.GetStretchPixelsY();
 }
 
-void NPatchRenderer::InitializeFromBrokenImage()
+void NPatchVisual::InitializeFromBrokenImage()
 {
-  mCroppedImage = RendererFactory::GetBrokenRendererImage();
+  mCroppedImage = VisualFactory::GetBrokenRendererImage();
   mImageSize = ImageDimensions( mCroppedImage.GetWidth(), mCroppedImage.GetHeight() );
 
   mStretchPixelsX.Clear();
@@ -530,7 +530,7 @@ void NPatchRenderer::InitializeFromBrokenImage()
   mStretchPixelsY.PushBack( Uint16Pair( 0, mImageSize.GetHeight() ) );
 }
 
-void NPatchRenderer::ApplyImageToSampler()
+void NPatchVisual::ApplyImageToSampler()
 {
   TextureSet textureSet = mImpl->mRenderer.GetTextures();
   if( textureSet )
@@ -562,7 +562,7 @@ void NPatchRenderer::ApplyImageToSampler()
   }
 }
 
-Geometry NPatchRenderer::CreateGeometry( Uint16Pair gridSize )
+Geometry NPatchVisual::CreateGeometry( Uint16Pair gridSize )
 {
   uint16_t gridWidth = gridSize.GetWidth();
   uint16_t gridHeight = gridSize.GetHeight();
@@ -597,7 +597,7 @@ Geometry NPatchRenderer::CreateGeometry( Uint16Pair gridSize )
   return GenerateGeometry( vertices, indices );
 }
 
-Geometry NPatchRenderer::CreateGeometryBorder( Uint16Pair gridSize )
+Geometry NPatchVisual::CreateGeometryBorder( Uint16Pair gridSize )
 {
   uint16_t gridWidth = gridSize.GetWidth();
   uint16_t gridHeight = gridSize.GetHeight();
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/images/image.h>
@@ -49,58 +49,58 @@ namespace Internal
  * | borderOnly               | BOOLEAN
  *
  */
-class NPatchRenderer: public ControlRenderer
+class NPatchVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  NPatchRenderer( RendererFactoryCache& factoryCache );
+  NPatchVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  ~NPatchRenderer();
+  ~NPatchVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::GetNaturalSize
+   * @copydoc Visual::GetNaturalSize
    */
   virtual void GetNaturalSize( Vector2& naturalSize ) const;
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::DoSetOffStage
+   * @copydoc Visual::DoSetOffStage
    */
   virtual void DoSetOffStage( Actor& actor );
 
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "primitive-renderer.h"
+#include "primitive-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
@@ -24,8 +24,8 @@
 #include <dali/public-api/common/constants.h>
 
 //INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace Dali
 {
@@ -136,8 +136,8 @@ const char* FRAGMENT_SHADER = DALI_COMPOSE_SHADER(
 
 } // namespace
 
-PrimitiveRenderer::PrimitiveRenderer( RendererFactoryCache& factoryCache )
-: ControlRenderer( factoryCache ),
+PrimitiveVisual::PrimitiveVisual( VisualFactoryCache& factoryCache )
+: Visual( factoryCache ),
   mColor( DEFAULT_COLOR ),
   mScaleDimensions( Vector3::ONE ),
   mScaleTopRadius( DEFAULT_SCALE_TOP_RADIUS ),
@@ -152,11 +152,11 @@ PrimitiveRenderer::PrimitiveRenderer( RendererFactoryCache& factoryCache )
 {
 }
 
-PrimitiveRenderer::~PrimitiveRenderer()
+PrimitiveVisual::~PrimitiveVisual()
 {
 }
 
-void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void PrimitiveVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   //Find out which shape to renderer.
   Property::Value* primitiveType = propertyMap.Find( PRIMITIVE_SHAPE );
@@ -195,17 +195,17 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
       }
       else
       {
-        DALI_LOG_ERROR( "No known shape in PrimitiveRenderer.\n" );
+        DALI_LOG_ERROR( "No known shape in PrimitiveVisual.\n" );
       }
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for shape in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for shape in PrimitiveVisual.\n" );
     }
   }
   else
   {
-    DALI_LOG_ERROR( "Fail to provide shape to the PrimitiveRenderer object.\n" );
+    DALI_LOG_ERROR( "Fail to provide shape to the PrimitiveVisual object.\n" );
   }
 
   //Read in other potential properties.
@@ -213,7 +213,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
   Property::Value* color = propertyMap.Find( SHAPE_COLOR );
   if( color && !color->Get( mColor ) )
   {
-    DALI_LOG_ERROR( "Invalid type for color in PrimitiveRenderer.\n" );
+    DALI_LOG_ERROR( "Invalid type for color in PrimitiveVisual.\n" );
   }
 
   Property::Value* slices = propertyMap.Find( SLICES );
@@ -233,7 +233,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for slices in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for slices in PrimitiveVisual.\n" );
     }
   }
 
@@ -254,32 +254,32 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for stacks in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for stacks in PrimitiveVisual.\n" );
     }
   }
 
   Property::Value* scaleTop = propertyMap.Find( SCALE_TOP_RADIUS );
   if( scaleTop && !scaleTop->Get( mScaleTopRadius ) )
   {
-    DALI_LOG_ERROR( "Invalid type for scale top radius in PrimitiveRenderer.\n" );
+    DALI_LOG_ERROR( "Invalid type for scale top radius in PrimitiveVisual.\n" );
   }
 
   Property::Value* scaleBottom = propertyMap.Find( SCALE_BOTTOM_RADIUS );
   if( scaleBottom && !scaleBottom->Get( mScaleBottomRadius ) )
   {
-    DALI_LOG_ERROR( "Invalid type for scale bottom radius in PrimitiveRenderer.\n" );
+    DALI_LOG_ERROR( "Invalid type for scale bottom radius in PrimitiveVisual.\n" );
   }
 
   Property::Value* scaleHeight = propertyMap.Find( SCALE_HEIGHT );
   if( scaleHeight && !scaleHeight->Get( mScaleHeight ) )
   {
-    DALI_LOG_ERROR( "Invalid type for scale height in PrimitiveRenderer.\n" );
+    DALI_LOG_ERROR( "Invalid type for scale height in PrimitiveVisual.\n" );
   }
 
   Property::Value* scaleRadius = propertyMap.Find( SCALE_RADIUS );
   if( scaleRadius && !scaleRadius->Get( mScaleRadius ) )
   {
-    DALI_LOG_ERROR( "Invalid type for scale radius in PrimitiveRenderer.\n" );
+    DALI_LOG_ERROR( "Invalid type for scale radius in PrimitiveVisual.\n" );
   }
 
   Property::Value* dimensions = propertyMap.Find( SCALE_DIMENSIONS );
@@ -303,7 +303,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for scale dimensions in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for scale dimensions in PrimitiveVisual.\n" );
     }
   }
 
@@ -324,7 +324,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for bevel percentage in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for bevel percentage in PrimitiveVisual.\n" );
     }
   }
 
@@ -345,7 +345,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
     }
     else
     {
-      DALI_LOG_ERROR( "Invalid type for bevel smoothness in PrimitiveRenderer.\n" );
+      DALI_LOG_ERROR( "Invalid type for bevel smoothness in PrimitiveVisual.\n" );
     }
   }
 
@@ -355,7 +355,7 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
   {
     if( !lightPosition->Get( mLightPosition ) )
     {
-      DALI_LOG_ERROR( "Invalid value passed for light position in MeshRenderer object.\n" );
+      DALI_LOG_ERROR( "Invalid value passed for light position in MeshVisual object.\n" );
       mLightPosition = Vector3::ZERO;
     }
   }
@@ -369,31 +369,31 @@ void PrimitiveRenderer::DoInitialize( Actor& actor, const Property::Map& propert
   }
 }
 
-void PrimitiveRenderer::SetSize( const Vector2& size )
+void PrimitiveVisual::SetSize( const Vector2& size )
 {
-  ControlRenderer::SetSize( size );
+  Visual::SetSize( size );
 
   // ToDo: renderer responds to the size change
 }
 
-void PrimitiveRenderer::SetClipRect( const Rect<int>& clipRect )
+void PrimitiveVisual::SetClipRect( const Rect<int>& clipRect )
 {
-  ControlRenderer::SetClipRect( clipRect );
+  Visual::SetClipRect( clipRect );
 
   //ToDo: renderer responds to the clipRect change
 }
 
-void PrimitiveRenderer::SetOffset( const Vector2& offset )
+void PrimitiveVisual::SetOffset( const Vector2& offset )
 {
   //ToDo: renderer applies the offset
 }
 
-void PrimitiveRenderer::DoSetOnStage( Actor& actor )
+void PrimitiveVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void PrimitiveRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void PrimitiveVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, RENDERER_TYPE_VALUE );
@@ -411,7 +411,7 @@ void PrimitiveRenderer::DoCreatePropertyMap( Property::Map& map ) const
   map.Insert( LIGHT_POSITION_UNIFORM_NAME, mLightPosition );
 }
 
-void PrimitiveRenderer::InitializeRenderer()
+void PrimitiveVisual::InitializeRenderer()
 {
   if( !mGeometry )
   {
@@ -426,7 +426,7 @@ void PrimitiveRenderer::InitializeRenderer()
   mImpl->mRenderer = Renderer::New( mGeometry, mShader );
 }
 
-void PrimitiveRenderer::UpdateShaderUniforms()
+void PrimitiveVisual::UpdateShaderUniforms()
 {
   Stage stage = Stage::GetCurrent();
   float width = stage.GetSize().width;
@@ -443,13 +443,13 @@ void PrimitiveRenderer::UpdateShaderUniforms()
   mShader.RegisterProperty( OBJECT_DIMENSIONS_UNIFORM_NAME, mObjectDimensions );
 }
 
-void PrimitiveRenderer::CreateShader()
+void PrimitiveVisual::CreateShader()
 {
   mShader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
   UpdateShaderUniforms();
 }
 
-void PrimitiveRenderer::CreateGeometry()
+void PrimitiveVisual::CreateGeometry()
 {
   Dali::Vector<Vertex> vertices;
   Dali::Vector<unsigned short> indices;
@@ -512,7 +512,7 @@ void PrimitiveRenderer::CreateGeometry()
   mGeometry.SetIndexBuffer( &indices[0], indices.Size() );
 }
 
-void PrimitiveRenderer::CreateSphere( Vector<Vertex>& vertices, Vector<unsigned short>& indices, int slices, int stacks )
+void PrimitiveVisual::CreateSphere( Vector<Vertex>& vertices, Vector<unsigned short>& indices, int slices, int stacks )
 {
   ComputeSphereVertices( vertices, slices, stacks );
   FormSphereTriangles( indices, slices, stacks );
@@ -520,7 +520,7 @@ void PrimitiveRenderer::CreateSphere( Vector<Vertex>& vertices, Vector<unsigned
   mObjectDimensions = Vector3::ONE;
 }
 
-void PrimitiveRenderer::CreateConic( Vector<Vertex>& vertices, Vector<unsigned short>& indices, float scaleTopRadius,
+void PrimitiveVisual::CreateConic( Vector<Vertex>& vertices, Vector<unsigned short>& indices, float scaleTopRadius,
                                      float scaleBottomRadius, float scaleHeight, int slices )
 {
   ComputeConicVertices( vertices, scaleTopRadius, scaleBottomRadius, scaleHeight, slices );
@@ -535,7 +535,7 @@ void PrimitiveRenderer::CreateConic( Vector<Vertex>& vertices, Vector<unsigned s
                                xDimension / largestDimension );
 }
 
-void PrimitiveRenderer::CreateBevelledCube( Vector<Vertex>& vertices, Vector<unsigned short>& indices,
+void PrimitiveVisual::CreateBevelledCube( Vector<Vertex>& vertices, Vector<unsigned short>& indices,
                                             Vector3 dimensions, float bevelPercentage, float bevelSmoothness )
 {
   dimensions.Normalize();
@@ -559,7 +559,7 @@ void PrimitiveRenderer::CreateBevelledCube( Vector<Vertex>& vertices, Vector<uns
   mObjectDimensions = dimensions;
 }
 
-void PrimitiveRenderer::ComputeCircleTables( Vector<float>& sinTable, Vector<float>& cosTable, int divisions,
+void PrimitiveVisual::ComputeCircleTables( Vector<float>& sinTable, Vector<float>& cosTable, int divisions,
                                              bool halfCircle )
 {
   if( divisions < 0 )
@@ -579,7 +579,7 @@ void PrimitiveRenderer::ComputeCircleTables( Vector<float>& sinTable, Vector<flo
   }
 }
 
-void PrimitiveRenderer::ComputeSphereVertices( Vector<Vertex>& vertices, int slices, int stacks )
+void PrimitiveVisual::ComputeSphereVertices( Vector<Vertex>& vertices, int slices, int stacks )
 {
   //Tables for calculating slices angles and stacks angles, respectively.
   Vector<float> sinTable1;
@@ -622,7 +622,7 @@ void PrimitiveRenderer::ComputeSphereVertices( Vector<Vertex>& vertices, int sli
   vertices[vertexIndex].normal =   Vector3( 0.0, -1.0, 0.0 );
 }
 
-void PrimitiveRenderer::FormSphereTriangles( Vector<unsigned short>& indices, int slices, int stacks )
+void PrimitiveVisual::FormSphereTriangles( Vector<unsigned short>& indices, int slices, int stacks )
 {
   if( stacks <= 1 )
   {
@@ -700,7 +700,7 @@ void PrimitiveRenderer::FormSphereTriangles( Vector<unsigned short>& indices, in
   }
 }
 
-void PrimitiveRenderer::ComputeConicVertices( Vector<Vertex>& vertices, float scaleTopRadius,
+void PrimitiveVisual::ComputeConicVertices( Vector<Vertex>& vertices, float scaleTopRadius,
                                                      float scaleBottomRadius, float scaleHeight, int slices )
 {
   int vertexIndex = 0;  //Track progress through vertices.
@@ -787,7 +787,7 @@ void PrimitiveRenderer::ComputeConicVertices( Vector<Vertex>& vertices, float sc
   vertexIndex++;
 }
 
-void PrimitiveRenderer::FormConicTriangles( Vector<unsigned short>& indices, float scaleTopRadius,
+void PrimitiveVisual::FormConicTriangles( Vector<unsigned short>& indices, float scaleTopRadius,
                                                    float scaleBottomRadius, int slices )
 {
   int  indiceIndex = 0;  //Track progress through indices.
@@ -914,7 +914,7 @@ void PrimitiveRenderer::FormConicTriangles( Vector<unsigned short>& indices, flo
   }
 }
 
-void PrimitiveRenderer::ComputeCubeVertices( Vector<Vertex>& vertices, Vector3 dimensions )
+void PrimitiveVisual::ComputeCubeVertices( Vector<Vertex>& vertices, Vector3 dimensions )
 {
   int numVertices = 4 * 6; //Four per face.
   int vertexIndex = 0; //Tracks progress through vertices.
@@ -997,7 +997,7 @@ void PrimitiveRenderer::ComputeCubeVertices( Vector<Vertex>& vertices, Vector3 d
 
 }
 
-void PrimitiveRenderer::FormCubeTriangles( Vector<unsigned short>& indices )
+void PrimitiveVisual::FormCubeTriangles( Vector<unsigned short>& indices )
 {
   int numTriangles = 12;
   int triangleIndex = 0;  //Track progress through indices.
@@ -1036,7 +1036,7 @@ void PrimitiveRenderer::FormCubeTriangles( Vector<unsigned short>& indices )
   indices[triangleIndex + 5] = 20;
 }
 
-void PrimitiveRenderer::ComputeOctahedronVertices( Vector<Vertex>& vertices, Vector3 dimensions, float smoothness )
+void PrimitiveVisual::ComputeOctahedronVertices( Vector<Vertex>& vertices, Vector3 dimensions, float smoothness )
 {
   int numVertices = 3 * 8; //Three per face
   int vertexIndex = 0; //Tracks progress through vertices.
@@ -1125,7 +1125,7 @@ void PrimitiveRenderer::ComputeOctahedronVertices( Vector<Vertex>& vertices, Vec
   }
 }
 
-void PrimitiveRenderer::FormOctahedronTriangles( Vector<unsigned short>& indices )
+void PrimitiveVisual::FormOctahedronTriangles( Vector<unsigned short>& indices )
 {
   int numTriangles = 8;
   int numIndices = numTriangles * 3;
@@ -1138,7 +1138,7 @@ void PrimitiveRenderer::FormOctahedronTriangles( Vector<unsigned short>& indices
   }
 }
 
-void PrimitiveRenderer::ComputeBevelledCubeVertices( Vector<Vertex>& vertices, Vector3 dimensions,
+void PrimitiveVisual::ComputeBevelledCubeVertices( Vector<Vertex>& vertices, Vector3 dimensions,
                                                      float bevelPercentage, float bevelSmoothness )
 {
   int numPositions = 24;
@@ -1382,7 +1382,7 @@ void PrimitiveRenderer::ComputeBevelledCubeVertices( Vector<Vertex>& vertices, V
   normalIndex++;
 }
 
-void PrimitiveRenderer::FormBevelledCubeTriangles( Vector<unsigned short>& indices )
+void PrimitiveVisual::FormBevelledCubeTriangles( Vector<unsigned short>& indices )
 {
   int numTriangles = 44; //(Going from top to bottom, that's 2 + 12 + 16 + 12 + 2)
   int indiceIndex = 0;  //Track progress through indices.
@@ -46,7 +46,7 @@
 
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -89,53 +89,53 @@ namespace Internal
  * |-----------------|-------------|-----------------------------------------|
  * | lightPosition   | VECTOR3     | The position (on stage) of the light    |
  */
-class PrimitiveRenderer: public ControlRenderer
+class PrimitiveVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  PrimitiveRenderer( RendererFactoryCache& factoryCache );
+  PrimitiveVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~PrimitiveRenderer();
+  virtual ~PrimitiveVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::SetClipRect
+   * @copydoc Visual::SetClipRect
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   * @copydoc ControlRenderer::SetOffset
+   * @copydoc Visual::SetOffset
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
@@ -310,10 +310,10 @@ private:
 private:
 
   // Undefined
-  PrimitiveRenderer( const PrimitiveRenderer& PrimitiveRenderer );
+  PrimitiveVisual( const PrimitiveVisual& PrimitiveVisual );
 
   // Undefined
-  PrimitiveRenderer& operator=( const PrimitiveRenderer& PrimitiveRenderer );
+  PrimitiveVisual& operator=( const PrimitiveVisual& PrimitiveVisual );
 
 private:
   Shader mShader;
index f1dc374..1f5054b 100644 (file)
@@ -20,7 +20,7 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/third-party/nanosvg/nanosvgrast.h>
-#include <dali-toolkit/internal/controls/renderers/svg/svg-renderer.h>
+#include <dali-toolkit/internal/controls/renderers/svg/svg-visual.h>
 
 namespace Dali
 {
@@ -31,8 +31,8 @@ namespace Toolkit
 namespace Internal
 {
 
-RasterizingTask::RasterizingTask( SvgRenderer* svgRenderer, NSVGimage* parsedSvg, unsigned int width, unsigned int height )
-: mSvgRenderer( svgRenderer ),
+RasterizingTask::RasterizingTask( SvgVisual* svgRenderer, NSVGimage* parsedSvg, unsigned int width, unsigned int height )
+: mSvgVisual( svgRenderer ),
   mParsedSvg( parsedSvg ),
   mWidth( width ),
   mHeight( height )
@@ -58,9 +58,9 @@ void RasterizingTask::Rasterize( NSVGrasterizer* rasterizer )
   }
 }
 
-SvgRenderer* RasterizingTask::GetSvgRenderer() const
+SvgVisual* RasterizingTask::GetSvgVisual() const
 {
-  return mSvgRenderer.Get();
+  return mSvgVisual.Get();
 }
 
 PixelData RasterizingTask::GetPixelData() const
@@ -110,7 +110,7 @@ void SvgRasterizeThread::AddTask( RasterizingTaskPtr task )
       // Older task which waiting to rasterize and apply the svg to the same renderer is expired.
       for( std::vector< RasterizingTaskPtr >::iterator it = mRasterizeTasks.begin(), endIt = mRasterizeTasks.end(); it != endIt; ++it )
       {
-        if( (*it) && (*it)->GetSvgRenderer() == task->GetSvgRenderer() )
+        if( (*it) && (*it)->GetSvgVisual() == task->GetSvgVisual() )
         {
           mRasterizeTasks.erase( it );
           break;
@@ -144,7 +144,7 @@ RasterizingTaskPtr SvgRasterizeThread::NextCompletedTask()
   return nextTask;
 }
 
-void SvgRasterizeThread::RemoveTask( SvgRenderer* renderer )
+void SvgRasterizeThread::RemoveTask( SvgVisual* renderer )
 {
   // Lock while remove task from the queue
   ConditionalWait::ScopedLock lock( mConditionalWait );
@@ -152,7 +152,7 @@ void SvgRasterizeThread::RemoveTask( SvgRenderer* renderer )
   {
     for( std::vector< RasterizingTaskPtr >::iterator it = mRasterizeTasks.begin(), endIt = mRasterizeTasks.end(); it != endIt; ++it )
     {
-      if( (*it) &&  (*it)->GetSvgRenderer() == renderer )
+      if( (*it) &&  (*it)->GetSvgVisual() == renderer )
       {
         mRasterizeTasks.erase( it );
         break;
index cbdf376..1f426cb 100644 (file)
@@ -41,8 +41,8 @@ namespace Toolkit
 namespace Internal
 {
 
-class SvgRenderer;
-typedef IntrusivePtr< SvgRenderer > SvgRendererPtr;
+class SvgVisual;
+typedef IntrusivePtr< SvgVisual > SvgVisualPtr;
 class RasterizingTask;
 typedef IntrusivePtr< RasterizingTask > RasterizingTaskPtr;
 
@@ -50,7 +50,7 @@ typedef IntrusivePtr< RasterizingTask > RasterizingTaskPtr;
  * The svg rasterizing tasks to be processed in the worker thread.
  *
  * Life cycle of a rasterizing task is as follows:
- * 1. Created by SvgRenderer in the main thread
+ * 1. Created by SvgVisual in the main thread
  * 2. Queued in the worked thread waiting to be processed.
  * 3. If this task gets its turn to do the rasterization, it triggers main thread to apply the rasterized image to material then been deleted in main thread call back
  *    Or if this task is been removed ( new image/size set to the renderer or actor off stage) before its turn to be processed, it then been deleted in the worker thread.
@@ -68,7 +68,7 @@ public:
    * @param[in] width The rasterization width.
    * @param[in] height The rasterization height.
    */
-  RasterizingTask( SvgRenderer* svgRenderer, NSVGimage* parsedSvg, unsigned int width, unsigned int height );
+  RasterizingTask( SvgVisual* svgRenderer, NSVGimage* parsedSvg, unsigned int width, unsigned int height );
 
   /**
    * Do the rasterization with the given rasterizer.
@@ -79,7 +79,7 @@ public:
   /**
    * Get the svg renderer
    */
-  SvgRenderer* GetSvgRenderer() const;
+  SvgVisual* GetSvgVisual() const;
 
   /**
    * Get the rasterization result.
@@ -96,7 +96,7 @@ private:
   RasterizingTask& operator=( const RasterizingTask& task );
 
 private:
-  SvgRendererPtr  mSvgRenderer;
+  SvgVisualPtr  mSvgVisual;
   PixelData       mPixelData;
   NSVGimage*      mParsedSvg;
   unsigned int    mWidth;
@@ -144,7 +144,7 @@ public:
    *
    * @param[in] renderer The renderer pointer.
    */
-  void RemoveTask( SvgRenderer* renderer );
+  void RemoveTask( SvgVisual* renderer );
 
   /**
    * Delete the parsed SVG image, called by main thread.
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "svg-renderer.h"
+#include "svg-visual.h"
 
 // EXTERNAL INCLUDES
 #include <dali/public-api/images/buffer-image.h>
 // INTERNAL INCLUDES
 #include <dali-toolkit/third-party/nanosvg/nanosvg.h>
 #include <dali-toolkit/internal/controls/renderers/svg/svg-rasterize-thread.h>
-#include <dali-toolkit/internal/controls/renderers/image/image-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/image/image-visual.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 
 namespace
@@ -51,8 +51,8 @@ namespace Toolkit
 namespace Internal
 {
 
-SvgRenderer::SvgRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager& atlasManager )
-: ControlRenderer( factoryCache ),
+SvgVisual::SvgVisual( VisualFactoryCache& factoryCache, ImageAtlasManager& atlasManager )
+: Visual( factoryCache ),
   mAtlasRect( FULL_TEXTURE_RECT ),
   mAtlasManager( atlasManager ),
   mParsedImage( NULL )
@@ -61,7 +61,7 @@ SvgRenderer::SvgRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager&
   mImpl->mFlags |= Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
-SvgRenderer::~SvgRenderer()
+SvgVisual::~SvgVisual()
 {
   if( mParsedImage )
   {
@@ -69,12 +69,12 @@ SvgRenderer::~SvgRenderer()
   }
 }
 
-bool SvgRenderer::IsSvgUrl( const std::string& url )
+bool SvgVisual::IsSvgUrl( const std::string& url )
 {
   return url.substr( url.find_last_of(".") + 1 ) == "svg";
 }
 
-void SvgRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
+void SvgVisual::DoInitialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* imageURLValue = propertyMap.Find( IMAGE_URL_NAME );
   if( imageURLValue )
@@ -91,14 +91,14 @@ void SvgRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMap )
   }
 }
 
-void SvgRenderer::DoSetOnStage( Actor& actor )
+void SvgVisual::DoSetOnStage( Actor& actor )
 {
-  Shader shader = ImageRenderer::GetImageShader( mFactoryCache );
-  Geometry geometry = mFactoryCache.GetGeometry( RendererFactoryCache::QUAD_GEOMETRY );
+  Shader shader = ImageVisual::GetImageShader( mFactoryCache );
+  Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::QUAD_GEOMETRY );
   if( !geometry )
   {
     geometry =  mFactoryCache.CreateQuadGeometry();
-    mFactoryCache.SaveGeometry( RendererFactoryCache::QUAD_GEOMETRY, geometry );
+    mFactoryCache.SaveGeometry( VisualFactoryCache::QUAD_GEOMETRY, geometry );
   }
   TextureSet textureSet = TextureSet::New();
   mImpl->mRenderer = Renderer::New( geometry, shader );
@@ -110,7 +110,7 @@ void SvgRenderer::DoSetOnStage( Actor& actor )
   }
 }
 
-void SvgRenderer::DoSetOffStage( Actor& actor )
+void SvgVisual::DoSetOffStage( Actor& actor )
 {
   mFactoryCache.GetSVGRasterizationThread()->RemoveTask( this );
 
@@ -118,7 +118,7 @@ void SvgRenderer::DoSetOffStage( Actor& actor )
   mImpl->mRenderer.Reset();
 }
 
-void SvgRenderer::GetNaturalSize( Vector2& naturalSize ) const
+void SvgVisual::GetNaturalSize( Vector2& naturalSize ) const
 {
   if( mParsedImage )
   {
@@ -131,7 +131,7 @@ void SvgRenderer::GetNaturalSize( Vector2& naturalSize ) const
   }
 }
 
-void SvgRenderer::SetSize( const Vector2& size )
+void SvgVisual::SetSize( const Vector2& size )
 {
   if(mImpl->mSize != size && mParsedImage && GetIsOnStage() )
   {
@@ -140,7 +140,7 @@ void SvgRenderer::SetSize( const Vector2& size )
   mImpl->mSize = size;
 }
 
-void SvgRenderer::DoCreatePropertyMap( Property::Map& map ) const
+void SvgVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
   map.Insert( RENDERER_TYPE, IMAGE_RENDERER );
@@ -150,7 +150,7 @@ void SvgRenderer::DoCreatePropertyMap( Property::Map& map ) const
   }
 }
 
-void SvgRenderer::SetImage( const std::string& imageUrl, ImageDimensions size )
+void SvgVisual::SetImage( const std::string& imageUrl, ImageDimensions size )
 {
   if( mImageUrl != imageUrl )
   {
@@ -177,7 +177,7 @@ void SvgRenderer::SetImage( const std::string& imageUrl, ImageDimensions size )
   }
 }
 
-void SvgRenderer::AddRasterizationTask( const Vector2& size )
+void SvgVisual::AddRasterizationTask( const Vector2& size )
 {
   if( mImpl->mRenderer && mParsedImage )
   {
@@ -190,7 +190,7 @@ void SvgRenderer::AddRasterizationTask( const Vector2& size )
   }
 }
 
-void SvgRenderer::ApplyRasterizedImage( PixelData rasterizedPixelData )
+void SvgVisual::ApplyRasterizedImage( PixelData rasterizedPixelData )
 {
   if( GetIsOnStage()  )
   {
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 #include <dali-toolkit/internal/controls/renderers/image-atlas-manager.h>
 
 struct NSVGimage;
@@ -43,53 +43,53 @@ namespace Internal
  * | url                      | STRING           |
  *
  */
-class SvgRenderer: public ControlRenderer
+class SvgVisual: public Visual
 {
 public:
 
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  SvgRenderer( RendererFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
+  SvgVisual( VisualFactoryCache& factoryCache, ImageAtlasManager& atlasManager );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  ~SvgRenderer();
+  ~SvgVisual();
 
-public:  // from ControlRenderer
+public:  // from Visual
 
   /**
-   * @copydoc ControlRenderer::GetNaturalSize
+   * @copydoc Visual::GetNaturalSize
    */
   virtual void GetNaturalSize( Vector2& naturalSize ) const;
 
   /**
-   * @copydoc ControlRenderer::SetSize
+   * @copydoc Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc ControlRenderer::CreatePropertyMap
+   * @copydoc Visual::CreatePropertyMap
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const;
 
 protected:
 
   /**
-   * @copydoc ControlRenderer::DoInitialize
+   * @copydoc Visual::DoInitialize
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc ControlRenderer::DoSetOnStage
+   * @copydoc Visual::DoSetOnStage
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
-   * @copydoc ControlRenderer::DoSetOffStage
+   * @copydoc Visual::DoSetOffStage
    */
   virtual void DoSetOffStage( Actor& actor );
 
@@ -129,10 +129,10 @@ private:
 
 
   // Undefined
-  SvgRenderer( const SvgRenderer& svgRenderer );
+  SvgVisual( const SvgVisual& svgRenderer );
 
   // Undefined
-  SvgRenderer& operator=( const SvgRenderer& svgRenderer );
+  SvgVisual& operator=( const SvgVisual& svgRenderer );
 
 private:
   Vector4              mAtlasRect;
@@ -16,7 +16,7 @@
  */
 
 // CLASS HEADER
-#include "control-renderer-data-impl.h"
+#include "visual-data-impl.h"
 
 // EXTERNAL HEADER
 #include <dali/public-api/common/dali-common.h>
@@ -75,26 +75,26 @@ Shader::ShaderHints HintFromString( std::string hintString )
 
 }// unnamed namespace
 
-Internal::ControlRenderer::Impl::Impl()
+Internal::Visual::Impl::Impl()
 : mCustomShader(NULL),
   mDepthIndex( 0.0f ),
   mFlags( 0 )
 {
 }
 
-Internal::ControlRenderer::Impl::~Impl()
+Internal::Visual::Impl::~Impl()
 {
   delete mCustomShader;
 }
 
-Internal::ControlRenderer::Impl::CustomShader::CustomShader( const Property::Map& map )
+Internal::Visual::Impl::CustomShader::CustomShader( const Property::Map& map )
 : mGridSize( 1, 1 ),
   mHints( Shader::HINT_NONE )
 {
   SetPropertyMap( map );
 }
 
-void Internal::ControlRenderer::Impl::CustomShader::SetPropertyMap( const Property::Map& shaderMap )
+void Internal::Visual::Impl::CustomShader::SetPropertyMap( const Property::Map& shaderMap )
 {
   mVertexShader.clear();
   mFragmentShader.clear();
@@ -182,7 +182,7 @@ void Internal::ControlRenderer::Impl::CustomShader::SetPropertyMap( const Proper
   }
 }
 
-void Internal::ControlRenderer::Impl::CustomShader::CreatePropertyMap( Property::Map& map ) const
+void Internal::Visual::Impl::CustomShader::CreatePropertyMap( Property::Map& map ) const
 {
   if( !mVertexShader.empty() || !mFragmentShader.empty() )
   {
@@ -23,7 +23,7 @@
 #include <dali/public-api/rendering/renderer.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace Dali
 {
@@ -34,7 +34,7 @@ namespace Toolkit
 namespace Internal
 {
 
-struct Internal::ControlRenderer::Impl
+struct Internal::Visual::Impl
 {
   enum Flags
   {
  */
 
 // CLASS HEADER
-#include "renderer-factory-cache.h"
+#include "visual-factory-cache.h"
 
 // EXTERNAL HEADER
 #include <dali/devel-api/common/hash.h>
 
 // INTERNAL HEADER
-#include <dali-toolkit/internal/controls/renderers/color/color-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/svg/svg-renderer.h>
+#include <dali-toolkit/internal/controls/renderers/color/color-visual.h>
+#include <dali-toolkit/internal/controls/renderers/svg/svg-visual.h>
 
 namespace Dali
 {
@@ -33,37 +33,37 @@ namespace Toolkit
 namespace Internal
 {
 
-RendererFactoryCache::RendererFactoryCache()
+VisualFactoryCache::VisualFactoryCache()
 : mSvgRasterizeThread( NULL )
 {
 }
 
-RendererFactoryCache::~RendererFactoryCache()
+VisualFactoryCache::~VisualFactoryCache()
 {
   SvgRasterizeThread::TerminateThread( mSvgRasterizeThread );
 }
 
-Geometry RendererFactoryCache::GetGeometry( GeometryType type )
+Geometry VisualFactoryCache::GetGeometry( GeometryType type )
 {
   return mGeometry[type];
 }
 
-void RendererFactoryCache::SaveGeometry( GeometryType type, Geometry geometry )
+void VisualFactoryCache::SaveGeometry( GeometryType type, Geometry geometry )
 {
   mGeometry[type] = geometry;
 }
 
-Shader RendererFactoryCache::GetShader( ShaderType type )
+Shader VisualFactoryCache::GetShader( ShaderType type )
 {
   return mShader[type];
 }
 
-void RendererFactoryCache::SaveShader( ShaderType type, Shader shader )
+void VisualFactoryCache::SaveShader( ShaderType type, Shader shader )
 {
   mShader[type] = shader;
 }
 
-int RendererFactoryCache::FindRenderer( const std::string& key ) const
+int VisualFactoryCache::FindRenderer( const std::string& key ) const
 {
   int hash = Dali::CalculateHash( key );
 
@@ -93,7 +93,7 @@ int RendererFactoryCache::FindRenderer( const std::string& key ) const
   return -1;
 }
 
-Renderer RendererFactoryCache::GetRenderer( const std::string& key ) const
+Renderer VisualFactoryCache::GetRenderer( const std::string& key ) const
 {
   int index = FindRenderer( key );
   if( index != -1 )
@@ -106,7 +106,7 @@ Renderer RendererFactoryCache::GetRenderer( const std::string& key ) const
   }
 }
 
-void RendererFactoryCache::SaveRenderer( const std::string& key, Renderer& renderer )
+void VisualFactoryCache::SaveRenderer( const std::string& key, Renderer& renderer )
 {
   int hash = Dali::CalculateHash( key );
   const CachedRenderer* cachedRenderer = new CachedRenderer( key, renderer );
@@ -125,7 +125,7 @@ void RendererFactoryCache::SaveRenderer( const std::string& key, Renderer& rende
   }
 }
 
-bool RendererFactoryCache::CleanRendererCache( const std::string& key )
+bool VisualFactoryCache::CleanRendererCache( const std::string& key )
 {
   int index = FindRenderer( key );
   if( index != -1 )
@@ -143,17 +143,17 @@ bool RendererFactoryCache::CleanRendererCache( const std::string& key )
   return false;
 }
 
-void RendererFactoryCache::CacheDebugRenderer( Renderer& renderer )
+void VisualFactoryCache::CacheDebugVisual( Renderer& renderer )
 {
-  mDebugRenderer = renderer;
+  mDebugVisual = renderer;
 }
 
-Renderer RendererFactoryCache::GetDebugRenderer()
+Renderer VisualFactoryCache::GetDebugVisual()
 {
-  return mDebugRenderer;
+  return mDebugVisual;
 }
 
-Geometry RendererFactoryCache::CreateQuadGeometry()
+Geometry VisualFactoryCache::CreateQuadGeometry()
 {
   const float halfWidth = 0.5f;
   const float halfHeight = 0.5f;
@@ -179,25 +179,25 @@ Geometry RendererFactoryCache::CreateQuadGeometry()
   return geometry;
 }
 
-SvgRasterizeThread* RendererFactoryCache::GetSVGRasterizationThread()
+SvgRasterizeThread* VisualFactoryCache::GetSVGRasterizationThread()
 {
   if( !mSvgRasterizeThread )
   {
-    mSvgRasterizeThread = new SvgRasterizeThread( new EventThreadCallback( MakeCallback( this, &RendererFactoryCache::ApplyRasterizedSVGToSampler ) ) );
+    mSvgRasterizeThread = new SvgRasterizeThread( new EventThreadCallback( MakeCallback( this, &VisualFactoryCache::ApplyRasterizedSVGToSampler ) ) );
     mSvgRasterizeThread->Start();
   }
   return mSvgRasterizeThread;
 }
 
-void RendererFactoryCache::ApplyRasterizedSVGToSampler()
+void VisualFactoryCache::ApplyRasterizedSVGToSampler()
 {
   while( RasterizingTaskPtr task = mSvgRasterizeThread->NextCompletedTask() )
   {
-    task->GetSvgRenderer()->ApplyRasterizedImage( task->GetPixelData() );
+    task->GetSvgVisual()->ApplyRasterizedImage( task->GetPixelData() );
   }
 }
 
-Geometry RendererFactoryCache::CreateGridGeometry( Uint16Pair gridSize )
+Geometry VisualFactoryCache::CreateGridGeometry( Uint16Pair gridSize )
 {
   uint16_t gridWidth = gridSize.GetWidth();
   uint16_t gridHeight = gridSize.GetHeight();
@@ -40,9 +40,9 @@ namespace Internal
 {
 
 /**
- * Caches shaders and geometries. Owned by RenderFactory.
+ * Caches shaders and geometries. Owned by VisualFactory.
  */
-class RendererFactoryCache : public RefObject
+class VisualFactoryCache : public RefObject
 {
 public:
 
@@ -81,7 +81,7 @@ public:
   /**
    * @brief Constructor
    */
-  RendererFactoryCache();
+  VisualFactoryCache();
 
   /**
    * Request geometry of the given type.
@@ -154,12 +154,12 @@ public:
   /**
    * @brief Cache the debug renderer
    */
-  void CacheDebugRenderer( Renderer& renderer );
+  void CacheDebugVisual( Renderer& renderer );
 
   /**
    * @brief Request the debug renderer;
    */
-  Renderer GetDebugRenderer();
+  Renderer GetDebugVisual();
 
   /**
    * Get the SVG rasterization thread.
@@ -179,17 +179,17 @@ protected:
   /**
    * A reference counted object may only be deleted by calling Unreference()
    */
-  virtual ~RendererFactoryCache();
+  virtual ~VisualFactoryCache();
 
   /**
    * Undefined copy constructor.
    */
-  RendererFactoryCache(const RendererFactoryCache&);
+  VisualFactoryCache(const VisualFactoryCache&);
 
   /**
    * Undefined assignment operator.
    */
-  RendererFactoryCache& operator=(const RendererFactoryCache& rhs);
+  VisualFactoryCache& operator=(const VisualFactoryCache& rhs);
 
 private:
   struct CachedRenderer
@@ -220,7 +220,7 @@ private:
   HashVector mRendererHashes;
   CachedRenderers mRenderers;
 
-  Renderer mDebugRenderer;
+  Renderer mDebugVisual;
 
   SvgRasterizeThread*  mSvgRasterizeThread;
 };
@@ -15,7 +15,7 @@
  */
 
 // CLASS HEADER
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-impl.h>
 
 // EXTERNAL INCLUDES
 #include <dali/integration-api/debug.h>
 #include <dali/public-api/object/type-registry-helper.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/border/border-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/color/color-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/debug/debug-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/image/image-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/svg/svg-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/mesh/mesh-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/primitive/primitive-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/border/border-visual.h>
+#include <dali-toolkit/internal/controls/renderers/color/color-visual.h>
+#include <dali-toolkit/internal/controls/renderers/debug/debug-visual.h>
+#include <dali-toolkit/internal/controls/renderers/gradient/gradient-visual.h>
+#include <dali-toolkit/internal/controls/renderers/npatch/npatch-visual.h>
+#include <dali-toolkit/internal/controls/renderers/image/image-visual.h>
+#include <dali-toolkit/internal/controls/renderers/svg/svg-visual.h>
+#include <dali-toolkit/internal/controls/renderers/mesh/mesh-visual.h>
+#include <dali-toolkit/internal/controls/renderers/primitive/primitive-visual.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
 #include <dali-toolkit/internal/controls/renderers/image-atlas-manager.h>
 
 namespace
@@ -57,26 +57,26 @@ namespace
 
 BaseHandle Create()
 {
-  BaseHandle handle = Toolkit::RendererFactory::Get();
+  BaseHandle handle = Toolkit::VisualFactory::Get();
 
   return handle;
 }
 
-DALI_TYPE_REGISTRATION_BEGIN_CREATE( Toolkit::RendererFactory, Dali::BaseHandle, Create, true )
+DALI_TYPE_REGISTRATION_BEGIN_CREATE( Toolkit::VisualFactory, Dali::BaseHandle, Create, true )
 DALI_TYPE_REGISTRATION_END()
 
 } // namespace
 
-RendererFactory::RendererFactory( bool debugEnabled )
+VisualFactory::VisualFactory( bool debugEnabled )
 :mDebugEnabled( debugEnabled )
 {
 }
 
-RendererFactory::~RendererFactory()
+VisualFactory::~VisualFactory()
 {
 }
 
-RendererFactory::RendererType RendererFactory::GetRendererType( const Property::Map& propertyMap )
+VisualFactory::RendererType VisualFactory::GetRendererType( const Property::Map& propertyMap )
 {
   RendererType rendererType = UNDEFINED;
 
@@ -121,7 +121,7 @@ RendererFactory::RendererType RendererFactory::GetRendererType( const Property::
       {
         rendererType = N_PATCH;
       }
-      else if( SvgRenderer::IsSvgUrl( imageUrl ) )
+      else if( SvgVisual::IsSvgUrl( imageUrl ) )
       {
         rendererType = SVG;
       }
@@ -135,21 +135,21 @@ RendererFactory::RendererType RendererFactory::GetRendererType( const Property::
   return rendererType;
 }
 
-Toolkit::ControlRenderer RendererFactory::CreateControlRenderer( const Property::Map& propertyMap )
+Toolkit::Visual VisualFactory::CreateVisual( const Property::Map& propertyMap )
 {
-  ControlRenderer* rendererPtr = NULL;
+  Visual* rendererPtr = NULL;
 
   RendererType type = GetRendererType( propertyMap );
   if( type != UNDEFINED)
   {
     if( !mFactoryCache )
     {
-      mFactoryCache = new RendererFactoryCache();
+      mFactoryCache = new VisualFactoryCache();
     }
 
     if( mDebugEnabled )
     {
-      return Toolkit::ControlRenderer( new DebugRenderer( *( mFactoryCache.Get() ) ) );
+      return Toolkit::Visual( new DebugVisual( *( mFactoryCache.Get() ) ) );
     }
   }
 
@@ -157,44 +157,44 @@ Toolkit::ControlRenderer RendererFactory::CreateControlRenderer( const Property:
   {
     case COLOR:
     {
-      rendererPtr = new ColorRenderer( *( mFactoryCache.Get() ) );
+      rendererPtr = new ColorVisual( *( mFactoryCache.Get() ) );
       break;
     }
      case GRADIENT:
      {
-       rendererPtr = new GradientRenderer( *( mFactoryCache.Get() ) );
+       rendererPtr = new GradientVisual( *( mFactoryCache.Get() ) );
        break;
      }
     case BORDER:
     {
-      rendererPtr = new BorderRenderer( *( mFactoryCache.Get() ) );
+      rendererPtr = new BorderVisual( *( mFactoryCache.Get() ) );
       break;
     }
     case IMAGE:
     {
       CreateAtlasManager();
-      rendererPtr = new ImageRenderer( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
+      rendererPtr = new ImageVisual( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
       break;
     }
     case N_PATCH:
     {
-      rendererPtr = new NPatchRenderer( *( mFactoryCache.Get() ) );
+      rendererPtr = new NPatchVisual( *( mFactoryCache.Get() ) );
       break;
     }
     case SVG:
     {
       CreateAtlasManager();
-      rendererPtr = new SvgRenderer( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
+      rendererPtr = new SvgVisual( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
       break;
     }
     case MESH:
     {
-      rendererPtr = new MeshRenderer( *( mFactoryCache.Get() ) );
+      rendererPtr = new MeshVisual( *( mFactoryCache.Get() ) );
       break;
     }
     case PRIMITIVE:
     {
-      rendererPtr = new PrimitiveRenderer( *( mFactoryCache.Get() ) );
+      rendererPtr = new PrimitiveVisual( *( mFactoryCache.Get() ) );
       break;
     }
     case UNDEFINED:
@@ -214,87 +214,87 @@ Toolkit::ControlRenderer RendererFactory::CreateControlRenderer( const Property:
     DALI_LOG_ERROR( "Renderer type unknown" );
   }
 
-  return Toolkit::ControlRenderer( rendererPtr );
+  return Toolkit::Visual( rendererPtr );
 }
 
-Toolkit::ControlRenderer RendererFactory::CreateControlRenderer( const Image& image )
+Toolkit::Visual VisualFactory::CreateVisual( const Image& image )
 {
   if( !mFactoryCache )
   {
-    mFactoryCache = new RendererFactoryCache();
+    mFactoryCache = new VisualFactoryCache();
   }
 
   if( mDebugEnabled )
   {
-    return Toolkit::ControlRenderer( new DebugRenderer( *( mFactoryCache.Get() ) ) );
+    return Toolkit::Visual( new DebugVisual( *( mFactoryCache.Get() ) ) );
   }
 
   NinePatchImage npatchImage = NinePatchImage::DownCast( image );
   if( npatchImage )
   {
-    NPatchRenderer* rendererPtr = new NPatchRenderer( *( mFactoryCache.Get() ) );
+    NPatchVisual* rendererPtr = new NPatchVisual( *( mFactoryCache.Get() ) );
     rendererPtr->SetImage( npatchImage );
 
-    return Toolkit::ControlRenderer( rendererPtr );
+    return Toolkit::Visual( rendererPtr );
   }
   else
   {
     CreateAtlasManager();
-    ImageRenderer* rendererPtr = new ImageRenderer( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
+    ImageVisual* rendererPtr = new ImageVisual( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
     Actor actor;
     rendererPtr->SetImage( actor, image );
 
-    return Toolkit::ControlRenderer( rendererPtr );
+    return Toolkit::Visual( rendererPtr );
   }
 }
 
-Toolkit::ControlRenderer RendererFactory::CreateControlRenderer( const std::string& url, ImageDimensions size )
+Toolkit::Visual VisualFactory::CreateVisual( const std::string& url, ImageDimensions size )
 {
   if( !mFactoryCache )
   {
-    mFactoryCache = new RendererFactoryCache();
+    mFactoryCache = new VisualFactoryCache();
   }
 
   if( mDebugEnabled )
   {
-    return Toolkit::ControlRenderer( new DebugRenderer( *( mFactoryCache.Get() ) ) );
+    return Toolkit::Visual( new DebugVisual( *( mFactoryCache.Get() ) ) );
   }
 
   if( NinePatchImage::IsNinePatchUrl( url ) )
   {
-    NPatchRenderer* rendererPtr = new NPatchRenderer( *( mFactoryCache.Get() ) );
+    NPatchVisual* rendererPtr = new NPatchVisual( *( mFactoryCache.Get() ) );
     rendererPtr->SetImage( url );
 
-    return Toolkit::ControlRenderer( rendererPtr );
+    return Toolkit::Visual( rendererPtr );
   }
-  else if( SvgRenderer::IsSvgUrl( url ) )
+  else if( SvgVisual::IsSvgUrl( url ) )
   {
     CreateAtlasManager();
-    SvgRenderer* rendererPtr = new SvgRenderer( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
+    SvgVisual* rendererPtr = new SvgVisual( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
     rendererPtr->SetImage( url, size );
-    return Toolkit::ControlRenderer( rendererPtr );
+    return Toolkit::Visual( rendererPtr );
   }
   else
   {
     CreateAtlasManager();
-    ImageRenderer* rendererPtr = new ImageRenderer( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
+    ImageVisual* rendererPtr = new ImageVisual( *( mFactoryCache.Get() ), *( mAtlasManager.Get() ) );
     Actor actor;
     rendererPtr->SetImage( actor, url, size );
 
-    return Toolkit::ControlRenderer( rendererPtr );
+    return Toolkit::Visual( rendererPtr );
   }
 }
 
-Image RendererFactory::GetBrokenRendererImage()
+Image VisualFactory::GetBrokenRendererImage()
 {
   return ResourceImage::New( BROKEN_RENDERER_IMAGE_URL );
 }
 
-void RendererFactory::CreateAtlasManager()
+void VisualFactory::CreateAtlasManager()
 {
   if( !mAtlasManager )
   {
-    Shader shader = ImageRenderer::GetImageShader( *( mFactoryCache.Get() ) );
+    Shader shader = ImageVisual::GetImageShader( *( mFactoryCache.Get() ) );
     mAtlasManager = new ImageAtlasManager();
     mAtlasManager->SetBrokenImage( BROKEN_RENDERER_IMAGE_URL );
   }
@@ -21,8 +21,8 @@
 #include <dali/public-api/object/base-object.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
+#include "../../../devel-api/controls/visual-factory/visual.h"
 
 namespace Dali
 {
@@ -33,16 +33,16 @@ namespace Toolkit
 namespace Internal
 {
 
-class RendererFactoryCache;
-typedef IntrusivePtr<RendererFactoryCache> RendererFactoryCachePtr;
+class VisualFactoryCache;
+typedef IntrusivePtr<VisualFactoryCache> VisualFactoryCachePtr;
 
 class ImageAtlasManager;
 typedef IntrusivePtr<ImageAtlasManager> ImageAtlasManagerPtr;
 
 /**
- * @copydoc Toolkit::RendererFactory
+ * @copydoc Toolkit::VisualFactory
  */
-class RendererFactory : public BaseObject
+class VisualFactory : public BaseObject
 {
 public:
 
@@ -64,22 +64,22 @@ public:
    *
    * @param[in] debugEnabled If true, use debug renderer to replace all the concrete renderer.
    */
-  RendererFactory( bool debugEnabled );
+  VisualFactory( bool debugEnabled );
 
   /**
-   * @copydoc Toolkit::RenderFactory::CreateControlRenderer( const Property::Map& )
+   * @copydoc Toolkit::RenderFactory::CreateVisual( const Property::Map& )
    */
-  Toolkit::ControlRenderer CreateControlRenderer( const Property::Map& propertyMap );
+  Toolkit::Visual CreateVisual( const Property::Map& propertyMap );
 
   /**
-   * @copydoc Toolkit::RenderFactory::CreateControlRenderer( const Image& )
+   * @copydoc Toolkit::RenderFactory::CreateVisual( const Image& )
    */
-  Toolkit::ControlRenderer CreateControlRenderer( const Image& image );
+  Toolkit::Visual CreateVisual( const Image& image );
 
   /**
-   * @copydoc Toolkit::RenderFactory::CreateControlRenderer( const std::string&, ImageDimensions )
+   * @copydoc Toolkit::RenderFactory::CreateVisual( const std::string&, ImageDimensions )
    */
-  Toolkit::ControlRenderer CreateControlRenderer( const std::string& image, ImageDimensions size );
+  Toolkit::Visual CreateVisual( const std::string& image, ImageDimensions size );
 
 public:
   /**
@@ -92,14 +92,14 @@ protected:
   /**
    * A reference counted object may only be deleted by calling Unreference()
    */
-  virtual ~RendererFactory();
+  virtual ~VisualFactory();
 
 private:
 
   /**
-   * Get the renderer type from the property map.
+   * Get the visual type from the property map.
    *
-   * @param[in] propertyMap The map contains the properties of the control renderer
+   * @param[in] propertyMap The map contains the properties of the visual
    * @return The rendererType
    */
   RendererType GetRendererType( const Property::Map& propertyMap );
@@ -112,38 +112,38 @@ private:
   /**
    * Undefined copy constructor.
    */
-  RendererFactory(const RendererFactory&);
+  VisualFactory(const VisualFactory&);
 
   /**
    * Undefined assignment operator.
    */
-  RendererFactory& operator=(const RendererFactory& rhs);
+  VisualFactory& operator=(const VisualFactory& rhs);
 
 private:
 
-  RendererFactoryCachePtr mFactoryCache;
+  VisualFactoryCachePtr   mFactoryCache;
   ImageAtlasManagerPtr    mAtlasManager;
   bool                    mDebugEnabled;
 };
 
 } // namespace Internal
 
-inline const Internal::RendererFactory& GetImplementation(const Toolkit::RendererFactory& factory)
+inline const Internal::VisualFactory& GetImplementation(const Toolkit::VisualFactory& factory)
 {
-  DALI_ASSERT_ALWAYS( factory && "RendererFactory handle is empty" );
+  DALI_ASSERT_ALWAYS( factory && "VisualFactory handle is empty" );
 
   const BaseObject& handle = factory.GetBaseObject();
 
-  return static_cast<const Internal::RendererFactory&>(handle);
+  return static_cast<const Internal::VisualFactory&>(handle);
 }
 
-inline Internal::RendererFactory& GetImplementation(Toolkit::RendererFactory& factory)
+inline Internal::VisualFactory& GetImplementation(Toolkit::VisualFactory& factory)
 {
-  DALI_ASSERT_ALWAYS( factory && "RendererFactory handle is empty" );
+  DALI_ASSERT_ALWAYS( factory && "VisualFactory handle is empty" );
 
   BaseObject& handle = factory.GetBaseObject();
 
-  return static_cast<Internal::RendererFactory&>(handle);
+  return static_cast<Internal::VisualFactory&>(handle);
 }
 
 } // namespace Toolkit
  */
 
 // CLASS HEADER
-#include "control-renderer-impl.h"
+#include "visual-impl.h"
 
 // EXTERNAL HEADER
 #include <dali/public-api/common/dali-common.h>
 #include <dali/integration-api/debug.h>
 
 //INTERNAL HEARDER
-#include <dali-toolkit/internal/controls/renderers/control-renderer-data-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-data-impl.h>
 
 namespace
 {
@@ -45,18 +45,18 @@ namespace Toolkit
 namespace Internal
 {
 
-ControlRenderer::ControlRenderer( RendererFactoryCache& factoryCache )
+Visual::Visual( VisualFactoryCache& factoryCache )
 : mImpl( new Impl() ),
   mFactoryCache( factoryCache )
 {
 }
 
-ControlRenderer::~ControlRenderer()
+Visual::~Visual()
 {
   delete mImpl;
 }
 
-void ControlRenderer::SetCustomShader( const Property::Map& shaderMap )
+void Visual::SetCustomShader( const Property::Map& shaderMap )
 {
   if( mImpl->mCustomShader )
   {
@@ -68,7 +68,7 @@ void ControlRenderer::SetCustomShader( const Property::Map& shaderMap )
   }
 }
 
-void ControlRenderer::Initialize( Actor& actor, const Property::Map& propertyMap )
+void Visual::Initialize( Actor& actor, const Property::Map& propertyMap )
 {
   Property::Value* customShaderValue = propertyMap.Find( CUSTOM_SHADER );
   if( customShaderValue )
@@ -83,31 +83,31 @@ void ControlRenderer::Initialize( Actor& actor, const Property::Map& propertyMap
   DoInitialize( actor, propertyMap );
 }
 
-void ControlRenderer::SetSize( const Vector2& size )
+void Visual::SetSize( const Vector2& size )
 {
   mImpl->mSize = size;
 }
 
-const Vector2& ControlRenderer::GetSize() const
+const Vector2& Visual::GetSize() const
 {
   return mImpl->mSize;
 }
 
-void ControlRenderer::GetNaturalSize( Vector2& naturalSize ) const
+void Visual::GetNaturalSize( Vector2& naturalSize ) const
 {
   naturalSize = Vector2::ZERO;
 }
 
-void ControlRenderer::SetClipRect( const Rect<int>& clipRect )
+void Visual::SetClipRect( const Rect<int>& clipRect )
 {
 }
 
-void ControlRenderer::SetOffset( const Vector2& offset )
+void Visual::SetOffset( const Vector2& offset )
 {
   mImpl->mOffset = offset;
 }
 
-void ControlRenderer::SetDepthIndex( float index )
+void Visual::SetDepthIndex( float index )
 {
   mImpl->mDepthIndex = index;
   if( mImpl->mRenderer )
@@ -116,12 +116,12 @@ void ControlRenderer::SetDepthIndex( float index )
   }
 }
 
-float ControlRenderer::GetDepthIndex() const
+float Visual::GetDepthIndex() const
 {
   return mImpl->mDepthIndex;
 }
 
-void ControlRenderer::SetOnStage( Actor& actor )
+void Visual::SetOnStage( Actor& actor )
 {
   DoSetOnStage( actor );
 
@@ -131,7 +131,7 @@ void ControlRenderer::SetOnStage( Actor& actor )
   mImpl->mFlags |= Impl::IS_ON_STAGE;
 }
 
-void ControlRenderer::SetOffStage( Actor& actor )
+void Visual::SetOffStage( Actor& actor )
 {
   if( GetIsOnStage() )
   {
@@ -141,7 +141,7 @@ void ControlRenderer::SetOffStage( Actor& actor )
   }
 }
 
-void ControlRenderer::EnablePreMultipliedAlpha( bool preMultipled )
+void Visual::EnablePreMultipliedAlpha( bool preMultipled )
 {
   if(preMultipled)
   {
@@ -158,22 +158,22 @@ void ControlRenderer::EnablePreMultipliedAlpha( bool preMultipled )
   }
 }
 
-bool ControlRenderer::IsPreMultipliedAlphaEnabled() const
+bool Visual::IsPreMultipliedAlphaEnabled() const
 {
   return mImpl->mFlags & Impl::IS_PREMULTIPLIED_ALPHA;
 }
 
-void ControlRenderer::DoSetOnStage( Actor& actor )
+void Visual::DoSetOnStage( Actor& actor )
 {
 }
 
-void ControlRenderer::DoSetOffStage( Actor& actor )
+void Visual::DoSetOffStage( Actor& actor )
 {
   actor.RemoveRenderer( mImpl->mRenderer );
   mImpl->mRenderer.Reset();
 }
 
-void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
+void Visual::CreatePropertyMap( Property::Map& map ) const
 {
   DoCreatePropertyMap( map );
 
@@ -183,12 +183,12 @@ void ControlRenderer::CreatePropertyMap( Property::Map& map ) const
   }
 }
 
-bool ControlRenderer::GetIsOnStage() const
+bool Visual::GetIsOnStage() const
 {
   return mImpl->mFlags & Impl::IS_ON_STAGE;
 }
 
-bool ControlRenderer::GetIsFromCache() const
+bool Visual::GetIsFromCache() const
 {
   return mImpl->mFlags & Impl::IS_FROM_CACHE;
 }
@@ -1,5 +1,5 @@
-#ifndef DALI_TOOLKIT_INTERNAL_CONTROL_RENDERER_H
-#define DALI_TOOLKIT_INTERNAL_CONTROL_RENDERER_H
+#ifndef DALI_TOOLKIT_INTERNAL_VISUAL_H
+#define DALI_TOOLKIT_INTERNAL_VISUAL_H
 
 /*
  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
@@ -24,9 +24,9 @@
 #include <dali/public-api/rendering/shader.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
+#include "../../../devel-api/controls/visual-factory/visual.h"
 
 namespace Dali
 {
@@ -38,9 +38,9 @@ namespace Internal
 {
 
 /**
- * Base class for all Control rendering logic. A control may have multiple control renderers.
+ * Base class for all Control rendering logic. A control may have multiple visuals.
  *
- * Note: The control renderer responds to the the Actor::COLOR by blending it with the 'Multiply' operator.
+ * Note: The visual responds to the the Actor::COLOR by blending it with the 'Multiply' operator.
  *
  * The following properties are optional
  *
@@ -57,77 +57,77 @@ namespace Internal
  * | subdivideGridY          | INT              |
  * | shaderHints             | INT              |
  */
-class ControlRenderer : public BaseObject
+class Visual : public BaseObject
 {
 public:
 
   /**
-   * Initialisation of the renderer, this API should only called by the RendererFactory:
+   * Initialisation of the visual, this API should only called by the VisualFactory:
    *  request the geometry and shader from the cache, if not available, create and save to the cache for sharing;
    *  record the property values.
    *
-   * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor
-   * @param[in] propertyMap The properties for the requested ControlRenderer object.
+   * @param[in] actor The Actor the visual is applied to if, empty if the visual has not been applied to any Actor
+   * @param[in] propertyMap The properties for the requested Visual object.
    */
   void Initialize( Actor& actor, const Property::Map& propertyMap );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::SetSize
+   * @copydoc Toolkit::Visual::SetSize
    */
   virtual void SetSize( const Vector2& size );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::GetSize
+   * @copydoc Toolkit::Visual::GetSize
    */
   const Vector2& GetSize() const;
 
   /**
-   * @copydoc Toolkit::ControlRenderer::GetNaturalSize
+   * @copydoc Toolkit::Visual::GetNaturalSize
    */
   virtual void GetNaturalSize( Vector2& naturalSize ) const;
 
   /**
-   * ToDo: Add this function to Toolkit::ControlRenderer when it is fully implemented.
+   * ToDo: Add this function to Toolkit::Visual when it is fully implemented.
    *
-   * Set the clip rectangular of this renderer.
-   * The contents of the renderer will not be visible outside this rectangular.
+   * Set the clip rectangular of this visual.
+   * The contents of the visual will not be visible outside this rectangular.
    *
    * @param [in] clipRect The clipping rectangular.
    */
   virtual void SetClipRect( const Rect<int>& clipRect );
 
   /**
-   *ToDo: Add this function to Toolkit::ControlRenderer when it is fully implemented.
+   *ToDo: Add this function to Toolkit::Visual when it is fully implemented.
    *
-   * Reposition this renderer with a 2D offset.
+   * Reposition this visual with a 2D offset.
    *
-   * @param[in] offset The offset to reposition the renderer.
+   * @param[in] offset The offset to reposition the visual.
    */
   virtual void SetOffset( const Vector2& offset );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::SetDepthIndex
+   * @copydoc Toolkit::Visual::SetDepthIndex
    */
   void SetDepthIndex( float index );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::GetDepthIndex
+   * @copydoc Toolkit::Visual::GetDepthIndex
    */
   float GetDepthIndex() const;
 
   /**
-   * @copydoc Toolkit::ControlRenderer::SetOnStage
+   * @copydoc Toolkit::Visual::SetOnStage
    * @pre Impl->mGeometry must be created before this method is called
    */
   void SetOnStage( Actor& actor );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::SetOffStage
+   * @copydoc Toolkit::Visual::SetOffStage
    */
   void SetOffStage( Actor& actor );
 
   /**
-   * @copydoc Toolkit::ControlRenderer::CreatePropertyMap
+   * @copydoc Toolkit::Visual::CreatePropertyMap
    */
   void CreatePropertyMap( Property::Map& map ) const;
 
@@ -156,28 +156,28 @@ protected:
   /**
    * @brief Constructor.
    *
-   * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object
+   * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  ControlRenderer( RendererFactoryCache& factoryCache );
+  Visual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~ControlRenderer();
+  virtual ~Visual();
 
 protected:
   /**
    * @brief Called by CreatePropertyMap() allowing sub classes to respond to the CreatePropertyMap event
    *
-   * @param[out] map The renderer property map.
+   * @param[out] map The visual property map.
    */
   virtual void DoCreatePropertyMap( Property::Map& map ) const = 0;
 
   /**
    * @brief Called by Initialize() allowing sub classes to respond to the Initialize event
    *
-   * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor
-   * @param[in] propertyMap The properties for the requested ControlRenderer object.
+   * @param[in] actor The Actor the visual is applied to if, empty if the visual has not been applied to any Actor
+   * @param[in] propertyMap The properties for the requested Visual object.
    */
   virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ) {};
 
@@ -186,22 +186,22 @@ protected:
   /**
    * @brief Called by SetOnStage() allowing sub classes to respond to the SetOnStage event
    *
-   * @param[in] actor The actor applying this renderer.
+   * @param[in] actor The actor applying this visual.
    */
   virtual void DoSetOnStage( Actor& actor );
 
   /**
    * @brief Called by SetOffStage() allowing sub classes to respond to the SetOffStage event
    *
-   * @param[in] actor The actor applying this renderer.
+   * @param[in] actor The actor applying this visual.
    */
   virtual void DoSetOffStage( Actor& actor );
 
 protected:
   /**
-   * @brief Gets the on stage state for this ControlRenderer
+   * @brief Gets the on stage state for this Visual
    *
-   * @return Returns true if this ControlRenderer is on stage, false if it is off the stage
+   * @return Returns true if this Visual is on stage, false if it is off the stage
    */
   bool GetIsOnStage() const;
 
@@ -215,39 +215,39 @@ protected:
 private:
 
   // Undefined
-  ControlRenderer( const ControlRenderer& renderer );
+  Visual( const Visual& visual );
 
   // Undefined
-  ControlRenderer& operator=( const ControlRenderer& renderer );
+  Visual& operator=( const Visual& visual );
 
 protected:
   struct Impl;
   Impl* mImpl;
-  RendererFactoryCache& mFactoryCache;
+  VisualFactoryCache& mFactoryCache;
 };
 
 } // namespace Internal
 
-inline const Internal::ControlRenderer& GetImplementation(const Toolkit::ControlRenderer& renderer)
+inline const Internal::Visual& GetImplementation(const Toolkit::Visual& visual)
 {
-  DALI_ASSERT_ALWAYS( renderer && "ControlRenderer handle is empty" );
+  DALI_ASSERT_ALWAYS( visual && "Visual handle is empty" );
 
-  const BaseObject& handle = renderer.GetBaseObject();
+  const BaseObject& handle = visual.GetBaseObject();
 
-  return static_cast<const Internal::ControlRenderer&>(handle);
+  return static_cast<const Internal::Visual&>(handle);
 }
 
-inline Internal::ControlRenderer& GetImplementation(Toolkit::ControlRenderer& renderer)
+inline Internal::Visual& GetImplementation(Toolkit::Visual& visual)
 {
-  DALI_ASSERT_ALWAYS( renderer && "ControlRenderer handle is empty" );
+  DALI_ASSERT_ALWAYS( visual && "Visual handle is empty" );
 
-  BaseObject& handle = renderer.GetBaseObject();
+  BaseObject& handle = visual.GetBaseObject();
 
-  return static_cast<Internal::ControlRenderer&>(handle);
+  return static_cast<Internal::Visual&>(handle);
 }
 
 } // namespace Toolkit
 
 } // namespace Dali
 
-#endif // DALI_TOOLKIT_INTERNAL_CONTROL_RENDERER_H
+#endif // DALI_TOOLKIT_INTERNAL_VISUAL_H
index 1e1ccad..613cc3d 100644 (file)
@@ -30,7 +30,7 @@
 #include <dali/integration-api/debug.h>
 
 // INTERNAL_INCLUDES
-#include <dali-toolkit/internal/controls/renderers/control-renderer-impl.h>
+#include <dali-toolkit/internal/controls/renderers/visual-impl.h>
 
 namespace //Unnamed namespace
 {
@@ -132,7 +132,7 @@ SuperBlurView::SuperBlurView( unsigned int blurLevels )
   DALI_ASSERT_ALWAYS( mBlurLevels > 0 && " Minimal blur level is one, otherwise no blur is needed" );
   mGaussianBlurView.assign( blurLevels, Toolkit::GaussianBlurView() );
   mBlurredImage.assign( blurLevels, FrameBufferImage() );
-  mRenderers.assign( blurLevels+1, Toolkit::ControlRenderer() );
+  mRenderers.assign( blurLevels+1, Toolkit::Visual() );
 }
 
 SuperBlurView::~SuperBlurView()
@@ -170,7 +170,7 @@ void SuperBlurView::SetImage(Image inputImage)
 
   mInputImage = inputImage;
   Actor self( Self() );
-  InitializeControlRenderer( self, mRenderers[0], mInputImage );
+  InitializeVisual( self, mRenderers[0], mInputImage );
   mRenderers[0].SetDepthIndex(0);
   SetShaderEffect( mRenderers[0] );
   if( self.OnStage() )
@@ -259,13 +259,13 @@ void SuperBlurView::ClearBlurResource()
     mResourcesCleared = true;
   }
 }
-void SuperBlurView::SetShaderEffect( Toolkit::ControlRenderer& renderer )
+void SuperBlurView::SetShaderEffect( Toolkit::Visual& renderer )
 {
   Property::Map shaderMap;
   std::stringstream verterShaderString;
   shaderMap[ "fragmentShader" ] = FRAGMENT_SHADER;
 
-  Internal::ControlRenderer& rendererImpl = GetImplementation( renderer );
+  Internal::Visual& rendererImpl = GetImplementation( renderer );
   rendererImpl.SetCustomShader( shaderMap );
 }
 
@@ -275,14 +275,14 @@ void SuperBlurView::OnSizeSet( const Vector3& targetSize )
   {
     mTargetSize = Vector2(targetSize);
 
-    Toolkit::RendererFactory rendererFactory = Toolkit::RendererFactory::Get();
+    Toolkit::VisualFactory rendererFactory = Toolkit::VisualFactory::Get();
     Actor self = Self();
     for( unsigned int i = 1; i <= mBlurLevels; i++ )
     {
       float exponent = static_cast<float>(i);
       mBlurredImage[i-1] = FrameBufferImage::New( mTargetSize.width/std::pow(2.f,exponent) , mTargetSize.height/std::pow(2.f,exponent),
                                                 GAUSSIAN_BLUR_RENDER_TARGET_PIXEL_FORMAT, Dali::Image::NEVER );
-      InitializeControlRenderer( self, mRenderers[i], mBlurredImage[i - 1] );
+      InitializeVisual( self, mRenderers[i], mBlurredImage[i - 1] );
       mRenderers[ i ].SetDepthIndex( i );
       SetShaderEffect( mRenderers[ i ] );
     }
index fa5be8e..eff3cda 100644 (file)
@@ -22,7 +22,7 @@
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/devel-api/controls/super-blur-view/super-blur-view.h>
 #include <dali-toolkit/public-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 namespace Dali
 {
@@ -165,12 +165,12 @@ private:
    * Sets shader effect on the control renderer
    * @param[in,out] Sets custom shader effect on the given renderer
    */
-  void SetShaderEffect( Toolkit::ControlRenderer& renderer );
+  void SetShaderEffect( Toolkit::Visual& renderer );
 
 private:
   std::vector<Toolkit::GaussianBlurView> mGaussianBlurView;
   std::vector<FrameBufferImage>          mBlurredImage;
-  std::vector<Toolkit::ControlRenderer>  mRenderers;
+  std::vector<Toolkit::Visual>  mRenderers;
   Image                                  mInputImage;
   Vector2                                mTargetSize;
 
index 0b431fc..671ebb7 100644 (file)
@@ -120,7 +120,7 @@ void VideoView::SetPropertyMap( Property::Map map )
   mPropertyMap = map;
 
   Actor self( Self() );
-  InitializeControlRenderer( self, mRenderer, mPropertyMap );
+  InitializeVisual( self, mRenderer, mPropertyMap );
 
   Property::Value* widthValue = mPropertyMap.Find( "width" );
   if( widthValue )
@@ -538,7 +538,7 @@ void VideoView::SetNativeImageTarget()
   mVideoPlayer.SetUrl( mUrl );
   mVideoPlayer.FinishedSignal().Connect( this, &VideoView::EmitSignalFinish );
 
-  InitializeControlRenderer( self, mRenderer, mNativeImage );
+  InitializeVisual( self, mRenderer, mNativeImage );
 
   if( mIsPlay )
   {
index 309a237..be3ef81 100644 (file)
@@ -24,7 +24,7 @@
 #include <dali/devel-api/adaptor-framework/video-player.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/image/image-renderer.h>
+#include <dali-toolkit/internal/controls/renderers/image/image-visual.h>
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/public-api/controls/video-view/video-view.h>
 
@@ -240,7 +240,7 @@ private:
 
   Dali::VideoPlayer mVideoPlayer;
   Dali::ImageDimensions mVideoSize;
-  Toolkit::ControlRenderer mRenderer;
+  Toolkit::Visual mRenderer;
   Dali::Property::Map mPropertyMap;
   Dali::NativeImage mNativeImage; ///< Native image handle for video rendering by texture streaming
   Dali::Toolkit::VideoView::VideoViewSignalType mFinishedSignal;
index b8730a6..2b8bf6c 100644 (file)
@@ -10,25 +10,25 @@ toolkit_src_files = \
    $(toolkit_src_dir)/builder/json-parser-impl.cpp \
    $(toolkit_src_dir)/builder/tree-node-manipulator.cpp \
    $(toolkit_src_dir)/builder/replacement.cpp \
-   $(toolkit_src_dir)/controls/renderers/control-renderer-impl.cpp \
-   $(toolkit_src_dir)/controls/renderers/control-renderer-data-impl.cpp \
+   $(toolkit_src_dir)/controls/renderers/visual-impl.cpp \
+   $(toolkit_src_dir)/controls/renderers/visual-data-impl.cpp \
    $(toolkit_src_dir)/controls/renderers/image-atlas-manager.cpp \
-   $(toolkit_src_dir)/controls/renderers/renderer-factory-cache.cpp \
-   $(toolkit_src_dir)/controls/renderers/renderer-factory-impl.cpp \
-   $(toolkit_src_dir)/controls/renderers/renderer-string-constants.cpp \
-   $(toolkit_src_dir)/controls/renderers/border/border-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/color/color-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/debug/debug-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/image/image-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/npatch/npatch-renderer.cpp \
+   $(toolkit_src_dir)/controls/renderers/visual-factory-cache.cpp \
+   $(toolkit_src_dir)/controls/renderers/visual-factory-impl.cpp \
+   $(toolkit_src_dir)/controls/renderers/visual-string-constants.cpp \
+   $(toolkit_src_dir)/controls/renderers/border/border-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/color/color-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/debug/debug-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/image/image-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/npatch/npatch-visual.cpp \
    $(toolkit_src_dir)/controls/renderers/gradient/gradient.cpp \
    $(toolkit_src_dir)/controls/renderers/gradient/linear-gradient.cpp \
    $(toolkit_src_dir)/controls/renderers/gradient/radial-gradient.cpp \
-   $(toolkit_src_dir)/controls/renderers/gradient/gradient-renderer.cpp \
+   $(toolkit_src_dir)/controls/renderers/gradient/gradient-visual.cpp \
    $(toolkit_src_dir)/controls/renderers/svg/svg-rasterize-thread.cpp \
-   $(toolkit_src_dir)/controls/renderers/svg/svg-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/mesh/mesh-renderer.cpp \
-   $(toolkit_src_dir)/controls/renderers/primitive/primitive-renderer.cpp \
+   $(toolkit_src_dir)/controls/renderers/svg/svg-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/mesh/mesh-visual.cpp \
+   $(toolkit_src_dir)/controls/renderers/primitive/primitive-visual.cpp \
    $(toolkit_src_dir)/controls/alignment/alignment-impl.cpp \
    $(toolkit_src_dir)/controls/bloom-view/bloom-view-impl.cpp \
    $(toolkit_src_dir)/controls/bubble-effect/bubble-emitter-impl.cpp \
index d980708..8edca2e 100644 (file)
@@ -28,7 +28,7 @@
 #include <dali/devel-api/images/texture-set-image.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 
 namespace Dali
 {
@@ -127,8 +127,8 @@ void EmbossFilter::Enable()
 
   mRootActor.Add( mActorForComposite );
 
-  InitializeControlRenderer( mActorForComposite, mRendererForEmboss1, rendererMap );
-  InitializeControlRenderer( mActorForComposite, mRendererForEmboss2, rendererMap );
+  InitializeVisual( mActorForComposite, mRendererForEmboss1, rendererMap );
+  InitializeVisual( mActorForComposite, mRendererForEmboss2, rendererMap );
 
   TextureSet textureSet1 = TextureSet::New();
   TextureSetImage( textureSet1, 0, mImageForEmboss1 );
index 2c811f1..bc90e84 100644 (file)
@@ -21,9 +21,7 @@
 // EXTERNAL INCLUDES
 #include <dali/public-api/render-tasks/render-task.h>
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/control-renderer.h>
-
-// INTERNAL INCLUDES
+#include <dali-toolkit/devel-api/controls/visual-factory/visual.h>
 #include "image-filter.h"
 
 namespace Dali
@@ -83,8 +81,8 @@ private: // Attributes
   FrameBufferImage   mImageForEmboss2;
   Toolkit::ImageView mActorForInput1;
   Toolkit::ImageView mActorForInput2;
-  Toolkit::ControlRenderer mRendererForEmboss1;
-  Toolkit::ControlRenderer mRendererForEmboss2;
+  Toolkit::Visual mRendererForEmboss1;
+  Toolkit::Visual mRendererForEmboss2;
   Actor              mActorForComposite;
 }; // class EmbossFilter
 
index ed71b14..c2802e7 100644 (file)
 #include <cstring> // for strcmp
 #include <dali/public-api/object/type-registry.h>
 #include <dali/public-api/object/type-registry-helper.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
-#include <dali-toolkit/internal/controls/renderers/renderer-factory-cache.h>
+#include <dali-toolkit/internal/controls/renderers/visual-factory-cache.h>
 
 namespace Dali
 {
@@ -248,7 +248,7 @@ void CubeTransitionEffect::OnStageConnection( int depth )
 {
   Control::OnStageConnection( depth );
 
-  Geometry geometry = RendererFactoryCache::CreateQuadGeometry();
+  Geometry geometry = VisualFactoryCache::CreateQuadGeometry();
   Shader shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
 
   TextureSet textureSet = TextureSet::New();
index e47001a..719c6a8 100644 (file)
 #include <dali-toolkit/public-api/controls/control.h>
 #include <dali-toolkit/public-api/styling/style-manager.h>
 #include <dali-toolkit/devel-api/controls/control-depth-index-ranges.h>
-#include <dali-toolkit/devel-api/controls/renderer-factory/renderer-factory.h>
+#include <dali-toolkit/devel-api/controls/visual-factory/visual-factory.h>
 #include <dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h>
 #include <dali-toolkit/internal/styling/style-manager-impl.h>
-#include <dali-toolkit/internal/controls/renderers/color/color-renderer.h>
-#include <dali-toolkit/internal/controls/renderers/renderer-string-constants.h>
+#include <dali-toolkit/internal/controls/renderers/color/color-visual.h>
+#include <dali-toolkit/internal/controls/renderers/visual-string-constants.h>
 
 namespace Dali
 {
@@ -368,7 +368,7 @@ public:
 
   Control& mControlImpl;
   std::string mStyleName;
-  Toolkit::ControlRenderer mBackgroundRenderer;   ///< The control renderer to render the background
+  Toolkit::Visual mBackgroundRenderer;   ///< The control renderer to render the background
   Vector4 mBackgroundColor;                       ///< The color of the background renderer
   Vector3* mStartingPinchScale;      ///< The scale when a pinch gesture starts, TODO: consider removing this
   Toolkit::Control::KeyEventSignalType mKeyEventSignal;
@@ -447,7 +447,7 @@ void Control::SetBackgroundColor( const Vector4& color )
   Property::Map map;
   map[ RENDERER_TYPE ] = COLOR_RENDERER;
   map[ "mixColor" ] = color;
-  InitializeControlRenderer( self, mImpl->mBackgroundRenderer, map );
+  InitializeVisual( self, mImpl->mBackgroundRenderer, map );
   if( mImpl->mBackgroundRenderer )
   {
     mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND );
@@ -462,7 +462,7 @@ Vector4 Control::GetBackgroundColor() const
 void Control::SetBackground( const Property::Map& map )
 {
   Actor self( Self() );
-  InitializeControlRenderer( self, mImpl->mBackgroundRenderer, map );
+  InitializeVisual( self, mImpl->mBackgroundRenderer, map );
   if( mImpl->mBackgroundRenderer )
   {
     mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND );
@@ -472,7 +472,7 @@ void Control::SetBackground( const Property::Map& map )
 void Control::SetBackgroundImage( Image image )
 {
   Actor self( Self() );
-  InitializeControlRenderer( self, mImpl->mBackgroundRenderer, image );
+  InitializeVisual( self, mImpl->mBackgroundRenderer, image );
   if( mImpl->mBackgroundRenderer )
   {
     mImpl->mBackgroundRenderer.SetDepthIndex( DepthIndex::BACKGROUND );
index 960d77b..e2ff92e 100644 (file)
  + [9 Patch Image](@ref resource-9-patch)
  + [Buffer Image](@ref resource-buffer)
 
-### Control Base Class & Renderers
+### Control Base Class & Visuals
  + [Background Feature](@ref background)
  + Keyboard Focus
  + [Accessibility](@ref accessibility)
- + [Control Renderers](@ref control-renderers)
+ + [Visuals](@ref visuals)
 
 ### UI Components
  + Buttons
@@ -77,7 +77,7 @@
  + Environment Variables
  + [Resource Tracking](@ref resourcetracking)
  + Logging
- + [Debug Renderer](@ref debugrenderer)
+ + [Debug Visual](@ref debugvisual)
  + [Stagehand - DALi Visual Debugger](@ref stagehand)
 
 ### Viewing Modes
index ef2d933..047dfe5 100644 (file)
@@ -57,16 +57,16 @@ then the above image will look like:
 </td>
 </table>
 
-@section background-renderer Background Renderer
+@section background-visual Background Visual
 
-The background can be set to use a specified renderer, e.g the border renderer
+The background can be set to use a specified visual, e.g the border visual
 @code
-Property::Map renderer;
-renderer.Insert("rendererType","BORDER");
-renderer.Insert("borderColor",COLOR::RED);
-renderer.Insert("borderSize",20.f);
+Property::Map visual;
+visual.Insert("rendererType","BORDER");
+visual.Insert("borderColor",COLOR::RED);
+visual.Insert("borderSize",20.f);
 
-control.SetProperty( Control::Property::BACKGROUND, renderer);
+control.SetProperty( Control::Property::BACKGROUND, visual);
 @endcode
 
 then the above image will look like:
index 27a8574..b1a808a 100644 (file)
  * the image in more detail.
  *
  * <h3 class="pg">Renderers</h3>
- * You can specify a specific renderer instead of using the default Image Renderer, e.g to use the Border Renderer.
+ * You can specify a specific visual instead of using the default Image Visual, e.g to use the Border Visual.
  *
  * @code
- * Property::Map renderer;
- * renderer.Insert("rendererType","BORDER");
- * renderer.Insert("borderColor",COLOR::RED);
- * renderer.Insert("borderSize",20.f);
+ * Property::Map visual;
+ * visual.Insert("rendererType","BORDER");
+ * visual.Insert("borderColor",COLOR::RED);
+ * visual.Insert("borderSize",20.f);
  *
  * Dali::Toolkit::ImageView myImageView = Dali::Toolkit::ImageView::New();
- * myImageView.SetProperty( Control::Property::IMAGE, renderer);
+ * myImageView.SetProperty( Control::Property::IMAGE, visual);
  * @endcode
 
  * <h3 class="pg">Resizing at Load Time</h3>
index 9fcb679..69e0b11 100644 (file)
@@ -11,7 +11,7 @@
  * <h2 class="pg">Custom Shader Effects</h2>
  * The custom shader lets the developers create their own shader effects by specifying the vertex and pixel shaders.
  *
- * To set a custom shader to ImageRenderer you have to pass it through as a Property::Map
+ * To set a custom shader to ImageVisual you have to pass it through as a Property::Map
  * @code
  * //an example vertex shader
  * const char* VERTEX_SHADER = DALI_COMPOSE_SHADER(
index 946b4f0..c711d15 100644 (file)
@@ -28,7 +28,7 @@ ________________________________________________________________________________
 To render content, the required actors can be created and added to the control itself as its children.
 However, this solution is not fully optimised and means extra actors will be added, and thus, need to be processed by DALi.
  
-Controls should be as generic as possible so the recommendation is to re-use control renderers to create the content required as described in the [Control Renderers](@ref control-renderers) section.
+Controls should be as generic as possible so the recommendation is to re-use control renderers to create the content required as described in the [Visuals](@ref visuals) section.
 Currently, this is devel-api though, so is subject to change.
  
 ![ ](../assets/img/creating-custom-controls/rendering.png)
diff --git a/docs/content/shared-javascript-and-cpp-documentation/debug-renderer.md b/docs/content/shared-javascript-and-cpp-documentation/debug-renderer.md
deleted file mode 100644 (file)
index 8bb8bc6..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
-/**-->
-
-# Debug Renderer {#debugrenderer}
-
-## Enable debug rendering
-
-Setting DALI_DEBUG_RENDERING environment variable will enable the renderer debuging.
-
-Then, every concrete control renderer( ColorRenderer, BorderRenderer, ImageRenderer, GradientRenderer, etc. ) is replaced with a DebugRenderer object.
-Debug renderer renders a simple quad wireframe, so that the control layout and scene structure is clearly displayed.
-
-### Example:
-~~~{.bash}
-sh-4.1$ DALI_DEBUG_RENDERING=1 /usr/apps/com.samsung.dali-demo/bin/blocks.example
-~~~
-
-![ ](../assets/img/debug-renderer/debug-blocks.png)
-![ ](debug-blocks.png)
-
-
diff --git a/docs/content/shared-javascript-and-cpp-documentation/debug-visual.md b/docs/content/shared-javascript-and-cpp-documentation/debug-visual.md
new file mode 100644 (file)
index 0000000..2b7f142
--- /dev/null
@@ -0,0 +1,21 @@
+<!--
+/**-->
+
+# Debug Renderer {#debugvisual}
+
+## Enable debug rendering
+
+Setting DALI_DEBUG_RENDERING environment variable will enable the renderer debuging.
+
+Then, every concrete visual ( ColorVisual, BorderVisual, ImageVisual, GradientVisual, etc. ) is replaced with a DebugVisual object.
+Debug visual renders a simple quad wireframe, so that the control layout and scene structure is clearly displayed.
+
+### Example:
+~~~{.bash}
+sh-4.1$ DALI_DEBUG_RENDERING=1 /usr/apps/com.samsung.dali-demo/bin/blocks.example
+~~~
+
+![ ](../assets/img/debug-visual/debug-blocks.png)
+![ ](debug-blocks.png)
+
+
@@ -1,34 +1,34 @@
 <!--
 /**-->
 
-# Control Renderers  {#control-renderers}
+# Visuals {#visuals}
 
-Control Renderers provide reusable renderering logic which can be used by all controls.
+Visuals provide reusable renderering logic which can be used by all controls.
 This means that custom controls do not have to create actors, they can just reuse the existing renderers which increases performance as well.
  
-Control Renderers reuse geometry, shader etc. across controls and manages the renderer and material to exist only when the control is on-stage.
+Visuals reuse geometry, shader etc. across controls and manages the renderer and material to exist only when the control is on-stage.
 Additionaly, they respond to actor size and color change, while also providing clipping at the renderer level.
  
 DALi provides the following renderers:
- + [Color](@ref color-renderer)
- + [Gradient](@ref gradient-renderer)
- + [Image](@ref image-renderers)
- + [Border](@ref border-renderer)
- + [Mesh](@ref mesh-renderer)
- + [Primitive](@ref primitive-renderer)
+ + [Color](@ref color-visual)
+ + [Gradient](@ref gradient-visual)
+ + [Image](@ref image-visuals)
+ + [Border](@ref border-visual)
+ + [Mesh](@ref mesh-visual)
+ + [Primitive](@ref primitive-visual)
  
-Controls can provide properties that allow users to specify the renderer type.
+Controls can provide properties that allow users to specify the visual type ( rendererType ).
 Setting renderer properties are done via a property map.
 The **rendererType** field in the property map specifies the renderer to use/create.
 This is required to avoid ambiguity as multiple renderers may be capable of rendering the same contents.
 ___________________________________________________________________________________________________
 
-## Color Renderer {#color-renderer}
+## Color Visual {#color-visual}
 
 Renders a solid color to the control's quad.
  
-![ ](../assets/img/renderers/color-renderer.png)
-![ ](renderers/color-renderer.png)
+![ ](../assets/img/renderers/color-visual.png)
+![ ](renderers/color-visual.png)
 
 ### Properties Supported
 
@@ -63,7 +63,7 @@ control.background =
 ~~~
 ___________________________________________________________________________________________________
 
-## Gradient Renderer {#gradient-renderer}
+## Gradient Visual {#gradient-visual}
 
 Renders a smooth transition of colors to the control's quad.
  
@@ -71,7 +71,7 @@ Both Linear and Radial gradients are supported.
 
 | Linear | Radial |
 |--------|--------|
-| ![ ](../assets/img/renderers/linear-gradient-renderer.png) ![ ](renderers/linear-gradient-renderer.png) | ![ ](../assets/img/renderers/radial-gradient-renderer.png) ![ ](renderers/radial-gradient-renderer.png) |
+| ![ ](../assets/img/renderers/linear-gradient-visual.png) ![ ](renderers/linear-gradient-visual.png) | ![ ](../assets/img/renderers/radial-gradient-visual.png) ![ ](renderers/radial-gradient-visual.png) |
 
 ### Properties Supported
 
@@ -85,12 +85,12 @@ Both Linear and Radial gradients are supported.
 | radius                                               | FLOAT            | For Radial | The size of the radius.                                                  |
 | stopOffset                                           | ARRAY of FLOAT   | No         | All the stop offsets. If not supplied default is 0.0 and 1.0.            |
 | stopColor                                            | ARRAY of VECTOR4 | Yes        | The color at those stop offsets. At least 2 required to show a gradient. |
-| [units](@ref gradient-renderer-units)                | STRING           | No         | *OBJECT_BOUNDING_BOX* or *USER_SPACE*. Default: *OBJECT_BOUNDING_BOX*.   |
-| [spreadMethod](@ref gradient-renderer-spread-method) | STRING           | No         | *PAD*, *REFLECT* or *REPEAT*. Default: *PAD*.                            |
+| [units](@ref gradient-visual-units)                | STRING           | No         | *OBJECT_BOUNDING_BOX* or *USER_SPACE*. Default: *OBJECT_BOUNDING_BOX*.   |
+| [spreadMethod](@ref gradient-visual-spread-method) | STRING           | No         | *PAD*, *REFLECT* or *REPEAT*. Default: *PAD*.                            |
 
 If the *stopOffset* and *stopColor* arrays do not have the same number of elements, then the minimum of the two is used as the stop points.
 
-### Units {#gradient-renderer-units}
+### Units {#gradient-visual-units}
 
 Defines the coordinate system for the attributes:
  + Start (x1, y1) and End (x2 and y2) points of a line if using a linear gradient.
@@ -101,7 +101,7 @@ Defines the coordinate system for the attributes:
 | OBJECT_BOUNDING_BOX | *Default*. Uses the normals for the start, end & center points, i.e. top-left is (-0.5, -0.5) and bottom-right is (0.5, 0.5).                  |
 | USER_SPACE          | Uses the user coordinates for the start, end & center points, i.e. in a 200 by 200 control, top-left is (0, 0) and bottom-right is (200, 200). |
 
-### Spread Method {#gradient-renderer-spread-method}
+### Spread Method {#gradient-visual-spread-method}
 
 Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
 
@@ -212,24 +212,24 @@ control.background =
 ~~~
 ___________________________________________________________________________________________________
 
-## Image Renderers {#image-renderers}
+## Image Visual {#image-visuals}
 
 Renders an image into the control's quad.
  
 Depending on the extension of the image, different renderer is provided to render the image onto the screen.
  
- + [Normal](@ref image-renderer)
- + [N-Patch](@ref n-patch-renderer)
- + [SVG](@ref svg-renderer)
+ + [Normal](@ref image-visual)
+ + [N-Patch](@ref n-patch-visual)
+ + [SVG](@ref svg-visual)
  
 ___________________________
  
-### Normal {#image-renderer}
+### Normal {#image-visual}
  
 Renders a raster image ( jpg, png etc.) into the control's quad.
  
-![ ](../assets/img/renderers/image-renderer.png)
-![ ](renderers/image-renderer.png)
+![ ](../assets/img/renderers/image-visual.png)
+![ ](renderers/image-visual.png)
 
 #### Properties Supported
 
@@ -268,7 +268,7 @@ control.background =
 ~~~
 ___________________________________________________________________________________________________
 
-### N-Patch {#n-patch-renderer}
+### N-Patch {#n-patch-visual}
 
 Renders an n-patch or a 9-patch image into the control's quad.
  
@@ -311,7 +311,7 @@ control.background =
 
 ___________________________________________________________________________________________________
 
-### SVG {#svg-renderer}
+### SVG {#svg-visual}
 
 Renders a svg image into the control's quad.
  
@@ -335,13 +335,13 @@ Renders a svg image into the control's quad.
 
 <div style="width:300px">
  
-![ ](../assets/img/renderers/svg-renderer.svg)
+![ ](../assets/img/renderers/svg-visual.svg)
  
 </div>
  
 <div style="width:300px">
  
-![ ](renderers/svg-renderer.svg)
+![ ](renderers/svg-visual.svg)
  
 </div>
 
@@ -381,12 +381,12 @@ control.background =
 ~~~
 ___________________________________________________________________________________________________
 
-## Border Renderer {#border-renderer}
+## Border Visual {#border-visual}
 
 Renders a solid color as an internal border to the control's quad.
  
-![ ](../assets/img/renderers/border-renderer.png)
-![ ](renderers/border-renderer.png)
+![ ](../assets/img/renderers/border-visual.png)
+![ ](renderers/border-visual.png)
 
 ### Properties Supported
 
@@ -427,12 +427,12 @@ control.background =
 
 ___________________________________________________________________________________________________
 
-## Mesh Renderer {#mesh-renderer}
+## Mesh Visual {#mesh-visual}
 
 Renders a mesh using a .obj file, optionally with textures provided by a mtl file. Scaled to fit the control.
 
-![ ](../assets/img/renderers/mesh-renderer.png)
-![ ](renderers/mesh-renderer.png)
+![ ](../assets/img/renderers/mesh-visual.png)
+![ ](renderers/mesh-visual.png)
 
 ### Properties Supported
 
@@ -443,12 +443,13 @@ Renders a mesh using a .obj file, optionally with textures provided by a mtl fil
 | objectUrl                                    | STRING  | Yes                | The location of the ".obj" file.                                                           |
 | materialUrl                                  | STRING  | No                 | The location of the ".mtl" file. Leave blank for a textureless object.                     |
 | texturesPath                                 | STRING  | If using material  | Path to the directory the textures (including gloss and normal) are stored in.             |
-| [shaderType](@ref mesh-renderer-shader-type) | STRING  | No                 | Sets the type of shader to be used with the mesh.                                          |
+| [shaderType](@ref mesh-visual-shader-type) | STRING  | No                 | Sets the type of shader to be used with the mesh.                                          |
 | useMipmapping                                | BOOLEAN | No                 | Flag for whether to use mipmaps for textures or not. Default true.                         |
 | useSoftNormals                               | BOOLEAN | No                 | Flag for whether to average normals at each point to smooth textures or not. Default true. |
 | lightPosition                                | VECTOR3 | No                 | The position, in stage space, of the point light that applies lighting to the model. This is based off the stage's dimensions, so using the width and height of the stage halved will correspond to the center, and using all zeroes will place the light at the upper left corner. Note that this corresponds to a shader property, so it can be registered and set in the actor as well. |
 
-### Shader Type {#mesh-renderer-shader-type}
+
+### Shader Type {#mesh-visual-shader-type}
 
 When specifying the shader type, if anything the shader requires is missing, a simpler type that can be handled with what has been supplied will be used instead.
  
@@ -479,7 +480,7 @@ control.SetProperty( Dali::Toolkit::Control::Property::BACKGROUND, map );
 
 ___________________________________________________________________________________________________
 
-## Primitive Renderer {#primitive-renderer}
+## Primitive Visual {#primitive-visual}
 
 Renders a simple 3D shape, such as a cube or sphere. Scaled to fit the control.