|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: AlfRenderStage provides a method for redirect avkon drawing to a graphics accelerator |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __ALFRENDERSTAGEFACTORY_H__ |
|
21 #define __ALFRENDERSTAGEFACTORY_H__ |
|
22 |
|
23 #include "graphics/wsplugin.h" |
|
24 #include "graphics/wsrenderstagefactory.h" |
|
25 |
|
26 class CWsRenderStage; |
|
27 class MWsGraphicDrawerEnvironment; |
|
28 |
|
29 /** |
|
30 This is an implementation of MWsRenderStageFactory, in the form of a CWsPlugin. |
|
31 The window server will use this to create standard render stages for each screen, |
|
32 if the ini file specifies them. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAlfRenderStageFactory) : public CWsPlugin, public MWsRenderStageFactory |
|
35 { |
|
36 public: |
|
37 enum { EImplUid = 0x200184B6 }; |
|
38 |
|
39 public: // New |
|
40 |
|
41 /** |
|
42 * CreateL |
|
43 * |
|
44 * Create the class |
|
45 * |
|
46 * @return New instance of the class |
|
47 */ |
|
48 static CAlfRenderStageFactory* CreateL(); |
|
49 |
|
50 /** |
|
51 * C++ destructor |
|
52 */ |
|
53 ~CAlfRenderStageFactory(); |
|
54 |
|
55 public: // From CWsPlugin |
|
56 |
|
57 void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TDesC8& aData); |
|
58 const TDesC& PluginName() const; |
|
59 |
|
60 public: // implementation of MWsObjectProvider |
|
61 |
|
62 TAny* ResolveObjectInterface(TUint aTypeId); |
|
63 |
|
64 public: // implementation of MWsRenderStageFactory |
|
65 |
|
66 CWsRenderStage* CreateFinalRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, TInt aScreenNumber); |
|
67 CWsRenderStage* CreateRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, CWsRenderStage* aNextStage); |
|
68 CWsRenderStage * CreateStageL(MWsScreen * aScreen, MWsScreenRedraw * aScreenRedraw) |
|
69 { |
|
70 return CreateRenderStageL(aScreen, aScreenRedraw, 0); |
|
71 } |
|
72 |
|
73 private: // New |
|
74 |
|
75 /** |
|
76 * C++ constructor |
|
77 */ |
|
78 CAlfRenderStageFactory(); |
|
79 |
|
80 }; |
|
81 |
|
82 #endif //__STDRENDERSTAGEFACTORY_H__ |