Update contrib.
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
23 #include "tflowwindowopenvg.h"
26 // defines after how many updates the scene is actually drawn to the screen
27 const TInt KSceneInterleaver = 5;
30 CTWindow* CTFlowWindowOpenVG::NewL(RWsSession &aWs,
31 const RWindowTreeNode &aParent,
32 const TPoint& aStartingPoint,
33 const TSize& aWindowSize)
35 CTFlowWindowOpenVG* self = new (ELeave)CTFlowWindowOpenVG(aStartingPoint, aWindowSize);
36 CleanupStack::PushL(self);
37 self->ConstructL(aWs, aParent);
38 CleanupStack::Pop(self);
42 CTFlowWindowOpenVG::CTFlowWindowOpenVG(const TPoint& aStartingPoint, const TSize& aWindowSize) :
43 CTWindow(aStartingPoint, aWindowSize)
48 CTFlowWindowOpenVG::~CTFlowWindowOpenVG()
53 void CTFlowWindowOpenVG::ConstructL(RWsSession &aWs, const RWindowTreeNode &aParent)
55 CTWindow::ConstructL(aWs, aParent);
56 iVGRendering = CEGLRendering::NewL(iWindow);
60 * Renders the next scene and draws it to the screen.
63 void CTFlowWindowOpenVG::RenderL()
66 // don't update the cover flow display every time
68 if (iInterleaveCounter >= KSceneInterleaver) // todo: should be removed
70 iVGRendering->UpdateDisplay();
71 iInterleaveCounter = 0;