svgtopt/VGRenderer/PseudoVG/inc/PseudoVGSurfaceImpl.h
changeset 0 d46562c3d99d
equal deleted inserted replaced
-1:000000000000 0:d46562c3d99d
       
     1 /*
       
     2 * Copyright (c) 2003 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:  CPseudoVGSurfaceImpl header file
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef PSEUDOVGSURFACEIMPL_H
       
    19 #define PSEUDOVGSURFACEIMPL_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "MVGSurfaceImpl.h"
       
    26 
       
    27 static const TUid KUidNvgProprietaryFormat = { 968435518 };
       
    28 class CPseodoVGRendererImpl;
       
    29 /**
       
    30  *  CPseudoVGSurfaceImpl
       
    31  * 
       
    32  */
       
    33 class CPseudoVGSurfaceImpl : public CBase, public  MVGSurfaceImpl
       
    34     {
       
    35 public:
       
    36     // Constructors and destructor
       
    37 
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~CPseudoVGSurfaceImpl();
       
    42 
       
    43     /**
       
    44      * Two-phased constructor.
       
    45      */
       
    46     static CPseudoVGSurfaceImpl* NewL(CPseodoVGRendererImpl * aVGRendererImpl);
       
    47 
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      */
       
    51     static CPseudoVGSurfaceImpl* NewLC(CPseodoVGRendererImpl * aVGRendererImpl);
       
    52 
       
    53     virtual TInt InitializeSurface( TSize aSize, TInt aColorSpace );
       
    54     
       
    55     virtual TInt CreateSurface(TInt aDisplayMode, RWindow *aSurface, CFbsBitmap *aBitmap);
       
    56     
       
    57     virtual TInt ResizeSurface( TSize aSize );
       
    58     
       
    59     virtual TInt CopyBitmap(TInt aDisplayMode, TInt aMaskMode, CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize aSize = TSize(0,0));
       
    60 
       
    61     virtual TInt PrepareToBindClientBuffer();
       
    62     virtual TInt BindClientBuffer(TInt buffer);
       
    63       
       
    64     virtual void SetConfiguration(TInt aOption, const TAny* aValue);
       
    65     
       
    66     virtual TInt UnBindClientBuffer();
       
    67 
       
    68     virtual void TerminateSurface();
       
    69 
       
    70 private:
       
    71 
       
    72     /**
       
    73      * Constructor for performing 1st stage construction
       
    74      */
       
    75     CPseudoVGSurfaceImpl();
       
    76 
       
    77     /**
       
    78      * EPOC default constructor for performing 2nd stage construction
       
    79      */
       
    80     void ConstructL(CPseodoVGRendererImpl * aVGRendererImpl);
       
    81 
       
    82     TSize                   iSize;
       
    83     CPseodoVGRendererImpl * iPseodoVGRendererImpl;
       
    84     };
       
    85 
       
    86 #endif // PSEUDOVGSURFACEIMPL_H