os/graphics/graphicscomposition/openwfc_ri_displaychannel/inc/openwfc_ri_displaychannel.h
First public contribution.
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
3 // Permission is hereby granted, free of charge, to any person obtaining a
4 // copy of this software and/or associated documentation files (the
5 // "Materials"), to deal in the Materials without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Materials, and to
8 // permit persons to whom the Materials are furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be included
12 // in all copies or substantial portions of the Materials.
14 // THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20 // MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
23 // Display Screen Interface implementation for Display Channel
27 #ifndef OPENWFC_RI_DISPLAYCHANNEL_H
28 #define OPENWFC_RI_DISPLAYCHANNEL_H
30 #include <WF/openwfc_ri_display.h>
31 #include <dispchannel.h>
33 NONSHARABLE_CLASS(COpenWFC_RI_DisplayChannel) : public COpenWFC_RI_Display
36 ~COpenWFC_RI_DisplayChannel();
37 static COpenWFC_RI_DisplayChannel* NewL(TUint aScreen);
39 TInt GetAttribute(TInt aAttributeId, TAny* aAttribute, TInt aAttributeSize);
40 TInt SetAttribute(TInt aAttributeId, TAny* aAttribute, TInt aAttributeSize);
41 TInt CommitAttribute();
42 TInt SetLayerSurface(TInt aLayer, SymbianStreamType aStream,TInt* aNonTrivialAttribs);
44 TInt SetTopLayerSurface(SymbianStreamType aStream,TInt* aNonTrivialAttribs);
47 COpenWFC_RI_DisplayChannel(TUint aScreen);
59 RDisplayChannel::TDisplayRotation iDefaultRotation;
60 TScreenGeometryAttribute iScreenInfo;
61 RArray <TBufferAddress*> iCompositionBuffer;
62 RDisplayChannel iDispChan;
63 TScreenRotation iNewRotation;
64 SymbianStreamType iCurrentSceneStream;
66 static const TInt32 KImplementationVersion = 0x00000001;
69 #endif // OPENWFC_RI_DISPLAYCHANNEL_H