|
1 // Copyright (c) 2008-2010 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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef NVGRENDERSTAGEFACTORY_H |
|
17 #define NVGRENDERSTAGEFACTORY_H |
|
18 |
|
19 /** |
|
20 @file |
|
21 @test |
|
22 @internalComponent - Internal Symbian test code |
|
23 */ |
|
24 |
|
25 #include <graphics/wsplugin.h> |
|
26 #include <graphics/wsrenderstagefactory.h> |
|
27 |
|
28 class CWsRenderStage; |
|
29 class MWsGraphicDrawerEnvironment; |
|
30 |
|
31 /** This is an implementation of MWsRenderStageFactory, in the form of a CWsPlugin. |
|
32 The window server will use this to create standard render stages for each screen, |
|
33 if the ini file specifies them. |
|
34 */ |
|
35 class CNvgRenderStageFactory : public CWsPlugin, public MWsRenderStageFactory |
|
36 { |
|
37 public: |
|
38 enum { EImplUid = 0x1028653B }; |
|
39 |
|
40 public: |
|
41 static CNvgRenderStageFactory* CreateL(); |
|
42 ~CNvgRenderStageFactory(); |
|
43 void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData); |
|
44 const TDesC& PluginName() const; |
|
45 |
|
46 // implementation of MWsObjectProvider |
|
47 TAny* ResolveObjectInterface(TUint aTypeId); |
|
48 |
|
49 // implementation of MWsRenderStageFactory |
|
50 virtual CWsRenderStage* CreateFinalRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, TInt aScreenNumber); |
|
51 virtual CWsRenderStage* CreateRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, CWsRenderStage* aNextStage); |
|
52 |
|
53 private: |
|
54 CNvgRenderStageFactory(); |
|
55 }; |
|
56 |
|
57 #endif // NVGRENDERSTAGEFACTORY_H |