svgtopt/VGRenderer/PseudoVG/src/PseudoVGSurfaceImpl.cpp
branchRCL_3
changeset 14 9be6eed35a80
parent 0 d46562c3d99d
child 17 db5c883ad1c5
equal deleted inserted replaced
12:b52e29b42806 14:9be6eed35a80
    48     }
    48     }
    49 
    49 
    50 TInt CPseudoVGSurfaceImpl::InitializeSurface(TSize aSize, TInt /*aColorSpace*/)
    50 TInt CPseudoVGSurfaceImpl::InitializeSurface(TSize aSize, TInt /*aColorSpace*/)
    51     {
    51     {
    52     iSize = aSize;
    52     iSize = aSize;
    53     iPseodoVGRendererImpl->EmptyEncodedData();
    53     return iPseodoVGRendererImpl->vgGetError();
    54     return KErrNone;
    54     
    55     }
    55     }
    56 
    56 
    57 void CPseudoVGSurfaceImpl::SetConfiguration(TInt aOption, const TAny* aValue)
    57 void CPseudoVGSurfaceImpl::SetConfiguration(TInt aOption, const TAny* aValue)
    58     {
    58     {
    59     if (aOption == BTIMAP_HEADER)
    59     if (aOption == BTIMAP_HEADER)
    67     return KErrNone;
    67     return KErrNone;
    68     }
    68     }
    69 
    69 
    70 TInt CPseudoVGSurfaceImpl::ResizeSurface(TSize aSize)
    70 TInt CPseudoVGSurfaceImpl::ResizeSurface(TSize aSize)
    71     {
    71     {
    72     iSize = aSize;
    72     iSize = aSize;    
    73     return KErrNone;
    73     iPseodoVGRendererImpl->EmptyEncodedData();
       
    74     return iPseodoVGRendererImpl->vgGetError();
    74     }
    75     }
    75 
    76 
    76 TInt CPseudoVGSurfaceImpl::CopyBitmap(TInt aDisplayMode, TInt aMaskMode,CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize /*aSize*/)
    77 TInt CPseudoVGSurfaceImpl::CopyBitmap(TInt aDisplayMode, TInt aMaskMode,CFbsBitmap *aBitmap, CFbsBitmap *aMask, TSize /*aSize*/)
    77     {
    78     {
    78     const TPtr8 vgStream = iPseodoVGRendererImpl->GetEncodedData();
    79     const TPtr8 vgStream = iPseodoVGRendererImpl->GetEncodedData();