X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fwireframe%2Fwireframe-visual.cpp;h=7d6e6e607a7caf4c52ad0efb324f7f1f82ac75c6;hb=cbab29527fe2b72c808bb804f44bdc3c34324f08;hp=990b25f779af7c0e931f53d5ba6e2355f9f93e4c;hpb=ec1cd006ed99fe40e444e90c8b3e6eb01ca2bc8b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/wireframe/wireframe-visual.cpp b/dali-toolkit/internal/visuals/wireframe/wireframe-visual.cpp index 990b25f..7d6e6e6 100644 --- a/dali-toolkit/internal/visuals/wireframe/wireframe-visual.cpp +++ b/dali-toolkit/internal/visuals/wireframe/wireframe-visual.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ #include "wireframe-visual.h" // INTERNAL INCLUDES -#include +#include #include #include #include @@ -96,7 +96,7 @@ WireframeVisualPtr WireframeVisual::New( VisualFactoryCache& factoryCache, Visua WireframeVisualPtr wireframeVisual( new WireframeVisual( factoryCache, actualVisual ) ); // Instead of calling SetProperties, looking for the only valid property 'transform' - Property::Value* transformValue = properties.Find( DevelVisual::Property::TRANSFORM, TRANSFORM ); + Property::Value* transformValue = properties.Find( Toolkit::Visual::Property::TRANSFORM, TRANSFORM ); Property::Map transformMap; if( transformValue && transformValue->Get( transformMap ) ) { @@ -149,7 +149,7 @@ void WireframeVisual::DoCreatePropertyMap( Property::Map& map ) const else { map.Clear(); - map.Insert( Toolkit::DevelVisual::Property::TYPE, Toolkit::Visual::WIREFRAME ); + map.Insert( Toolkit::Visual::Property::TYPE, Toolkit::Visual::WIREFRAME ); } } @@ -160,7 +160,7 @@ void WireframeVisual::DoCreateInstancePropertyMap( Property::Map& map ) const void WireframeVisual::DoSetProperties( const Property::Map& propertyMap ) { - Property::Value* mixValue = propertyMap.Find( Toolkit::DevelVisual::Property::MIX_COLOR, MIX_COLOR ); + Property::Value* mixValue = propertyMap.Find( Toolkit::Visual::Property::MIX_COLOR, MIX_COLOR ); if( mixValue ) { Vector4 mixColor; @@ -174,6 +174,9 @@ void WireframeVisual::DoSetOnStage( Actor& actor ) InitializeRenderer(); actor.AddRenderer( mImpl->mRenderer ); + + // Wireframe generated and ready to display + ResourceReady( Toolkit::Visual::ResourceStatus::READY ); } void WireframeVisual::InitializeRenderer()