uiacceltk/hitchcock/coretoolkit/src/HuiFxEffectCache.cpp
changeset 19 f5bac0badc7e
parent 14 83d2d132aa58
child 60 5dafecb0892a
equal deleted inserted replaced
14:83d2d132aa58 19:f5bac0badc7e
   232 		  return node;
   232 		  return node;
   233 		  }
   233 		  }
   234 	   }
   234 	   }
   235     return 0;
   235     return 0;
   236     }
   236     }
   237 MHuiFxEffectCacheNode *CHuiFxEffectCache::FindCached(const TDesC &aId)
   237 MHuiFxEffectCacheNode *CHuiFxEffectCache::FindCached(const TDesC &aId) const
   238     {
   238     {
   239     TInt size2 = iCachedEffects.Count();
   239     TInt size2 = iCachedEffects.Count();
   240     for(TInt i=0;i<size2;i++)
   240     for(TInt i=0;i<size2;i++)
   241         {
   241         {
   242         MHuiFxEffectCacheNode *node = iCachedEffects[i];
   242         MHuiFxEffectCacheNode *node = iCachedEffects[i];
   254     if (node)
   254     if (node)
   255         return node->FxmlUsesInput1();
   255         return node->FxmlUsesInput1();
   256     else
   256     else
   257         return EFalse;
   257         return EFalse;
   258     }
   258     }
       
   259 
       
   260 TBool CHuiFxEffectCache::FxmlUsesOpaqueHint(const TDesC &aFileName) const
       
   261     {
       
   262     MHuiFxEffectCacheNode *node = FindCached(aFileName);
       
   263     if (node)
       
   264         return node->FxmlUsesOpaqueHint();
       
   265     else
       
   266         return EFalse;
       
   267     }
       
   268 
   259 
   269 
   260 
   270 
   261 void CHuiFxEffectCache::Remove(RHashMap<TInt, MHuiFxEffectCacheNode*> & /*aMap*/, MHuiFxEffectCacheNode * /*aNode*/)
   271 void CHuiFxEffectCache::Remove(RHashMap<TInt, MHuiFxEffectCacheNode*> & /*aMap*/, MHuiFxEffectCacheNode * /*aNode*/)
   262     {
   272     {
   263 #if 0
   273 #if 0
   429             }
   439             }
   430         }
   440         }
   431     array.Close();
   441     array.Close();
   432     return EFalse;
   442     return EFalse;
   433     }
   443     }
       
   444 
       
   445 TBool CHuiFxEffectCacheEffectNode::FxmlUsesOpaqueHint() const
       
   446     {
       
   447     CHuiFxEffect *effect = iEffect;
       
   448     return effect->FxmlUsesOpaqueHint();
       
   449     }