os/graphics/graphicscomposition/openwfc_ri_displaychannel/inc/openwfc_ri_displaychannel.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
//
sl@0
     3
// Permission is hereby granted, free of charge, to any person obtaining a
sl@0
     4
// copy of this software and/or associated documentation files (the
sl@0
     5
// "Materials"), to deal in the Materials without restriction, including
sl@0
     6
// without limitation the rights to use, copy, modify, merge, publish,
sl@0
     7
// distribute, sublicense, and/or sell copies of the Materials, and to
sl@0
     8
// permit persons to whom the Materials are furnished to do so, subject to
sl@0
     9
// the following conditions:
sl@0
    10
//
sl@0
    11
// The above copyright notice and this permission notice shall be included
sl@0
    12
// in all copies or substantial portions of the Materials.
sl@0
    13
//
sl@0
    14
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
sl@0
    15
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
sl@0
    16
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
sl@0
    17
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
sl@0
    18
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
sl@0
    19
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
sl@0
    20
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
sl@0
    21
// 
sl@0
    22
// Description:
sl@0
    23
// Display Screen Interface implementation for Display Channel
sl@0
    24
// 
sl@0
    25
//
sl@0
    26
sl@0
    27
#ifndef OPENWFC_RI_DISPLAYCHANNEL_H
sl@0
    28
#define OPENWFC_RI_DISPLAYCHANNEL_H
sl@0
    29
sl@0
    30
#include <WF/openwfc_ri_display.h>
sl@0
    31
#include <dispchannel.h>
sl@0
    32
sl@0
    33
NONSHARABLE_CLASS(COpenWFC_RI_DisplayChannel) : public COpenWFC_RI_Display
sl@0
    34
    {
sl@0
    35
public:
sl@0
    36
    ~COpenWFC_RI_DisplayChannel();
sl@0
    37
    static COpenWFC_RI_DisplayChannel* NewL(TUint aScreen);
sl@0
    38
public:
sl@0
    39
    TInt GetAttribute(TInt aAttributeId, TAny* aAttribute, TInt aAttributeSize);
sl@0
    40
    TInt SetAttribute(TInt aAttributeId, TAny* aAttribute, TInt aAttributeSize);
sl@0
    41
    TInt CommitAttribute();
sl@0
    42
    TInt SetLayerSurface(TInt aLayer, SymbianStreamType aStream,TInt* aNonTrivialAttribs);
sl@0
    43
    TInt UpdateDisplay();
sl@0
    44
    TInt SetTopLayerSurface(SymbianStreamType aStream,TInt* aNonTrivialAttribs);
sl@0
    45
    
sl@0
    46
private:    
sl@0
    47
    COpenWFC_RI_DisplayChannel(TUint aScreen);
sl@0
    48
    void ConstructL();
sl@0
    49
private:
sl@0
    50
    struct TBufferAddress
sl@0
    51
        {
sl@0
    52
        RChunk  iChunk;
sl@0
    53
        TInt    iOffset;
sl@0
    54
        TUint8* iAddress;
sl@0
    55
        };
sl@0
    56
private:
sl@0
    57
    TUint iScreenNumber;
sl@0
    58
    TInt iRotationOffset;
sl@0
    59
    RDisplayChannel::TDisplayRotation iDefaultRotation;
sl@0
    60
    TScreenGeometryAttribute iScreenInfo;
sl@0
    61
    RArray <TBufferAddress*> iCompositionBuffer;
sl@0
    62
    RDisplayChannel iDispChan;
sl@0
    63
    TScreenRotation iNewRotation;
sl@0
    64
    SymbianStreamType iCurrentSceneStream;
sl@0
    65
public:
sl@0
    66
    static const TInt32 KImplementationVersion = 0x00000001;
sl@0
    67
    };
sl@0
    68
sl@0
    69
#endif // OPENWFC_RI_DISPLAYCHANNEL_H