uiacceltk/hitchcock/backgroundanim/src/bganimhost.cpp
changeset 13 8f67d927ea57
parent 0 15bf7259bb7c
child 14 83d2d132aa58
equal deleted inserted replaced
0:15bf7259bb7c 13:8f67d927ea57
    24 #include "bganimhost.h"
    24 #include "bganimhost.h"
    25 
    25 
    26 
    26 
    27 typedef void* (*plugingetinterfacefunc)(int);
    27 typedef void* (*plugingetinterfacefunc)(int);
    28 
    28 
    29 const TInt KRefreshTarget = 15;
    29 const TInt KRefreshTarget = 99;
    30 _LIT(KExeCaption,"BG anim host");
    30 _LIT(KExeCaption,"BG anim host");
    31 
    31 
    32 static const TUint KMaxGPUMemUsage = 1024*1024*4;
    32 static const TUint KMaxGPUMemUsage = 1024*1024*4;
    33 
    33 
    34 
    34 
   368         User::Leave(KErrAbort);
   368         User::Leave(KErrAbort);
   369         }
   369         }
   370 	
   370 	
   371 	eglMakeCurrent( iEGLDisplay, iEGLSurface, iEGLSurface, iEGLContext );        
   371 	eglMakeCurrent( iEGLDisplay, iEGLSurface, iEGLSurface, iEGLContext );        
   372 
   372 
   373 
       
   374     free(configList);
   373     free(configList);
   375     free(preferredConfig);
   374     free(preferredConfig);
   376 	
   375 	
   377     FOREVER
   376     FOREVER
   378         {
   377         {
   609     return EFalse;
   608     return EFalse;
   610     }
   609     }
   611 
   610 
   612 void CBgAnimHost::DataReceived( CSensrvChannel& aChannel, TInt aCount, TInt aDataLost )
   611 void CBgAnimHost::DataReceived( CSensrvChannel& aChannel, TInt aCount, TInt aDataLost )
   613     {
   612     {
   614     if (iPlugin && iPlugin->receivesensordata);
   613     if (iPlugin && iPlugin->receivesensordata)
   615         {
   614         {
   616         iPlugin->receivesensordata((void*)&aChannel, aCount, aDataLost);
   615         iPlugin->receivesensordata((void*)&aChannel, aCount, aDataLost);
   617         }
   616         }
   618     }
   617     }
   619     
   618