photosgallery/viewframework/medialists/src/glxcache.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 9 6b87b143d312
child 15 191387a8b767
--- a/photosgallery/viewframework/medialists/src/glxcache.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/viewframework/medialists/src/glxcache.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -136,7 +136,12 @@
     
     if (aMedia.IsSupported(KMPXMediaArrayContents))
         {
-        CMPXMediaArray* mediaArray = aMedia.ValueCObjectL<CMPXMediaArray>(KMPXMediaArrayContents);
+#ifdef _DEBUG
+        TTime startTime;
+        startTime.HomeTime();
+#endif       
+        CMPXMediaArray* mediaArray = aMedia.ValueCObjectL<CMPXMediaArray> (
+                KMPXMediaArrayContents);
         CleanupStack::PushL(mediaArray);
 
         TInt arrayCount = mediaArray->Count();
@@ -147,6 +152,12 @@
             }
 
         CleanupStack::PopAndDestroy(mediaArray);
+#ifdef _DEBUG
+        TTime stopTime;
+        stopTime.HomeTime();
+        GLX_DEBUG2("=>CGlxCache::MediaUpdatedL() took <%d> us",
+                (TInt)stopTime.MicroSecondsFrom(startTime).Int64());
+#endif    
         }
     else
         {
@@ -191,7 +202,7 @@
 		CopyNewAndModifiedL(*item, aMedia, newAttributes);
     	}
 		
-	// Broadcast the new attributes to all observers of the item and the cache
+	// Broadcast the new attributes to all observers of the item
 	if (newAttributes.Count() > 0)
 		{
 		TInt count = item->UserCount();
@@ -199,9 +210,6 @@
 			{
 			item->User( i ).HandleAttributesAvailableL( item->IndexInUser( i ), newAttributes );
 			}
-			
-	    // Broadcast to cache observers
-		// iCacheManager->BroadcastAttributesAvailableL(iIdSpaceId, id, newAttributes, item);
 		}
 
 	CleanupStack::PopAndDestroy(&newAttributes);