Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / effects / renderer / engine-model / FUiEffects_RendererEngineModelTexture2DProperty.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FUiEffects_RendererEngineModelTexture2DProperty.cpp
20  * @brief               This file contains implementation of Texture2DProperty class
21  *
22  */
23
24 #include <renderer/engine-model/FUiEffects_RendererEngineModelTexture2DProperty.h>
25
26 namespace Tizen { namespace Ui { namespace Effects { namespace _Renderer { namespace EngineModel
27 {
28
29 void
30 Texture2dProperty::Visit(PropertyVisitor& v)
31 {
32         v.OnTexture2DProperty(*this);
33         return;
34 }
35
36 Texture2dProperty::Texture2dProperty(void)
37 {
38 }
39
40 Texture2dProperty::~Texture2dProperty(void)
41 {
42         if (__pCache)
43         {
44                 __pCache->Die();
45         }
46 }
47
48 CachePtr
49 Texture2dProperty::GetCache(void)
50 {
51         return __pCache;
52 }
53
54 void
55 Texture2dProperty::SetCache(CachePtr pCache)
56 {
57         if (__pCache)
58         {
59                 __pCache->Die();
60         }
61         __pCache = pCache;
62         return;
63 }
64
65 void
66 Texture2dProperty::TouchCache(void)
67 {
68         if (__pCache)
69         {
70                 __pCache->Invalidate();
71         }
72         return;
73 }
74
75 }}}}} //Tizen::Ui::Effects::_Renderer::EngineModel