uiacceltk/hitchcock/coretoolkit/rendervg10/inc/HuiFxVg10Engine.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HUIFXV10ENGINE_H_
       
    21 #define HUIFXV10ENGINE_H_
       
    22 
       
    23 #include "HuiFxEngine.h"
       
    24 #include "HuiVg10RenderPlugin.h"
       
    25 #include "HuiVg10PBufferSurface.h"
       
    26 #include "HuiFxVg10.h"
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 class CHuiFxVg10OnscreenRenderbuffer;
       
    30 
       
    31 class CHuiFxVg10Engine: public CHuiFxEngine
       
    32     {
       
    33 public:
       
    34     static CHuiFxVg10Engine* NewL(CHuiVg10RenderPlugin& aPlugin);
       
    35     ~CHuiFxVg10Engine();
       
    36 
       
    37     void Release();
       
    38     void RestoreL();
       
    39 
       
    40     CHuiFxRenderbuffer* DefaultRenderbuffer();
       
    41     CHuiFxFilter* CreateFilterL(THuiFxFilterType aType);
       
    42     void Composite(CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource, 
       
    43                    const TRect& aTargetRect, const TRect& aSourceRect,
       
    44                    THuiFxBlendingMode aMode, TInt aAlpha);
       
    45     void Composite(CHuiGc& aGc, CHuiFxRenderbuffer& aSource, const TPoint& aTargetPoint, TBool aOpaque, TInt aAlpha);
       
    46     
       
    47 protected:
       
    48     void ConstructL(CHuiVg10RenderPlugin& aPlugin);
       
    49     CHuiFxRenderbuffer* AcquireNativeRenderbuffer(const TSize& aDesiredSize);
       
    50     void ReleaseNativeRenderbuffer(CHuiFxRenderbuffer* aBuffer);
       
    51 private:
       
    52     CHuiVg10RenderPlugin*           iPlugin;
       
    53     CHuiFxVg10OnscreenRenderbuffer* iDefaultBuffer;
       
    54     VGPaint                         iCompPaint;
       
    55     };
       
    56 
       
    57 #endif /*HUIFXV10ENGINE_H_*/