diff -r da03feddbab7 -r 3804ba25b23f egl/sfegltest/inc/eglrendering.h --- a/egl/sfegltest/inc/eglrendering.h Fri Oct 22 22:19:05 2010 +0100 +++ b/egl/sfegltest/inc/eglrendering.h Fri Oct 22 22:42:40 2010 +0100 @@ -23,37 +23,34 @@ class CEGLRendering : public CBase { public: - static CEGLRendering* NewL(RWindow& aWindow); ~CEGLRendering(); - void Start(); - void Stop(); + static TInt TimerCallBack(TAny* aDemo); + void Redraw(); - void UpdateDisplay(); - static TInt TimerCallBack(TAny* aDemo); +protected: + CEGLRendering(RWindow& aWindow); + void ConstructL(); -private: - CEGLRendering(RWindow& aWindow); - void ConstructL(); + void StartRedrawTimer(); + void StopRedrawTimer(); static void EGLCheckError(); static void EGLCheckReturnError(EGLBoolean aBool); static void VGCheckError(); - + +private: void EglSetupL(); - void VgSetup(); - void VgPaint(); - + virtual void KhrSetup() = 0; + virtual void KhrPaint() = 0; + void EglSwapBuffers(); + private: RWindow& iWindow; - CPeriodic* iTimer; - CFbsBitmap* iBitmap; - TInt iCount; + CPeriodic* iRedrawTimer; EGLDisplay iDisplay; EGLSurface iSurface; EGLContext iContext; - VGPaint iVGPaint; - VGPath iVGPath; }; #endif