svgtopt/VGRenderer/PseudoVG/inc/PseudoVGSurfaceImpl.h
changeset 0 d46562c3d99d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svgtopt/VGRenderer/PseudoVG/inc/PseudoVGSurfaceImpl.h	Thu Jan 07 16:19:02 2010 +0200
@@ -0,0 +1,86 @@
+/*
+* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  CPseudoVGSurfaceImpl header file
+ *
+*/
+
+#ifndef PSEUDOVGSURFACEIMPL_H
+#define PSEUDOVGSURFACEIMPL_H
+
+// INCLUDES
+#include <e32std.h>
+#include <e32base.h>
+
+#include "MVGSurfaceImpl.h"
+
+static const TUid KUidNvgProprietaryFormat = { 968435518 };
+class CPseodoVGRendererImpl;
+/**
+ *  CPseudoVGSurfaceImpl
+ * 
+ */
+class CPseudoVGSurfaceImpl : public CBase, public  MVGSurfaceImpl
+    {
+public:
+    // Constructors and destructor
+
+    /**
+     * Destructor.
+     */
+    ~CPseudoVGSurfaceImpl();
+
+    /**
+     * Two-phased constructor.
+     */
+    static CPseudoVGSurfaceImpl* NewL(CPseodoVGRendererImpl * aVGRendererImpl);
+
+    /**
+     * Two-phased constructor.
+     */
+    static CPseudoVGSurfaceImpl* NewLC(CPseodoVGRendererImpl * aVGRendererImpl);
+
+    virtual TInt InitializeSurface( TSize aSize, TInt aColorSpace );
+    
+    virtual TInt CreateSurface(TInt aDisplayMode, RWindow *aSurface, CFbsBitmap *aBitmap);
+    
+    virtual TInt ResizeSurface( TSize aSize );
+    
+    virtual TInt CopyBitmap(TInt aDisplayMode, TInt aMaskMode, CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize aSize = TSize(0,0));
+
+    virtual TInt PrepareToBindClientBuffer();
+    virtual TInt BindClientBuffer(TInt buffer);
+      
+    virtual void SetConfiguration(TInt aOption, const TAny* aValue);
+    
+    virtual TInt UnBindClientBuffer();
+
+    virtual void TerminateSurface();
+
+private:
+
+    /**
+     * Constructor for performing 1st stage construction
+     */
+    CPseudoVGSurfaceImpl();
+
+    /**
+     * EPOC default constructor for performing 2nd stage construction
+     */
+    void ConstructL(CPseodoVGRendererImpl * aVGRendererImpl);
+
+    TSize                   iSize;
+    CPseodoVGRendererImpl * iPseodoVGRendererImpl;
+    };
+
+#endif // PSEUDOVGSURFACEIMPL_H