photosgallery/viewframework/texturemanager/src/glxtexturemanagerimpl.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 14 ce1c7ad1f18b
child 32 78ad99c24f08
equal deleted inserted replaced
14:ce1c7ad1f18b 18:bcb43dc84c44
   890     TRACER("CGlxTextureManagerImpl::HandleResolutionChangedL");
   890     TRACER("CGlxTextureManagerImpl::HandleResolutionChangedL");
   891     UpdateTexture();
   891     UpdateTexture();
   892     }
   892     }
   893 
   893 
   894 // -----------------------------------------------------------------------------
   894 // -----------------------------------------------------------------------------
   895 // DoHandleResolutionChangedL
       
   896 // -----------------------------------------------------------------------------
       
   897 //
       
   898 //To-do
       
   899 /*void CGlxTextureManagerImpl::DoHandleResolutionChangedL(TInt aIconIndex)
       
   900     {
       
   901     TGlxIcon& icon = iIconList[aIconIndex];
       
   902     CAlfTexture* texture = icon.iTexture;
       
   903     // Clear previous content
       
   904     //texture->SetSegmentCountL(0);
       
   905     
       
   906     // Get new bitmaps
       
   907     CFbsBitmap* bitmap = NULL;
       
   908     CFbsBitmap* mask = NULL;
       
   909     ProvideBitmapL(icon.iTextureId, bitmap, mask);
       
   910     // Upload to texture
       
   911     if(bitmap)
       
   912         {
       
   913         CleanupStack::PushL(bitmap);
       
   914         texture->SetSize(bitmap->SizeInPixels());
       
   915         if(mask)
       
   916             {
       
   917             CleanupStack::PushL(mask);
       
   918             texture->UploadL( *bitmap, mask,
       
   919                         EAlfTextureUploadFlagDefault );
       
   920             CleanupStack::PopAndDestroy(mask);
       
   921             }
       
   922         else
       
   923             {
       
   924             texture->UploadL( *bitmap, NULL,
       
   925                         EAlfTextureUploadFlagDefault );
       
   926             
       
   927             }
       
   928         CleanupStack::PopAndDestroy(bitmap);    
       
   929         }
       
   930     }*/
       
   931 
       
   932 
       
   933 // -----------------------------------------------------------------------------
       
   934 // ProvideBitmapL
   895 // ProvideBitmapL
   935 // -----------------------------------------------------------------------------
   896 // -----------------------------------------------------------------------------
   936 //
   897 //
   937 void CGlxTextureManagerImpl::ProvideBitmapL(TInt aTextureId, 
   898 void CGlxTextureManagerImpl::ProvideBitmapL(TInt aTextureId, 
   938                                         CFbsBitmap*& aBitmap, 
   899                                         CFbsBitmap*& aBitmap, 
  1106             }
  1067             }
  1107 
  1068 
  1108         // check if rights have expired
  1069         // check if rights have expired
  1109         TBool checkViewRights = (cat==EMPXImage);
  1070         TBool checkViewRights = (cat==EMPXImage);
  1110 
  1071 
  1111         //Fix for ESLM-82WJ59: Since uri can be either focused or unfocused item
  1072         //Since uri can be either focused or unfocused item
  1112         //better call CheckOpenRightsL which doesn't modify lastconsumedUri.
  1073         //better call ItemRightsValidityCheckL which doesn't modify lastconsumedUri.
  1113         drmInvalid = !iDrmUtility->CheckOpenRightsL(uri, checkViewRights);
  1074         drmInvalid = !iDrmUtility->ItemRightsValidityCheckL(uri, checkViewRights);
  1114 
  1075 
  1115         CGlxMedia* properties = const_cast<CGlxMedia*>(aMedia.Properties());
  1076         CGlxMedia* properties = const_cast<CGlxMedia*>(aMedia.Properties());
  1116         if( !drmInvalid )
  1077         if( !drmInvalid )
  1117             {
  1078             {
  1118             properties->SetTObjectValueL(KGlxMediaGeneralDRMRightsValid, EGlxDrmRightsValid);
  1079             properties->SetTObjectValueL(KGlxMediaGeneralDRMRightsValid, EGlxDrmRightsValid);