svgtopt/VGRenderer/src/VGSurface.cpp
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     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:  CVGSurface source file
       
    15  *
       
    16 */
       
    17 
       
    18 #include "VGSurface.h"
       
    19 
       
    20 CVGSurface::CVGSurface()
       
    21     {
       
    22     }
       
    23 
       
    24 CVGSurface::~CVGSurface()
       
    25     {
       
    26     delete this->iImpl;
       
    27     }
       
    28 
       
    29 CVGSurface* CVGSurface::NewLC(MVGSurfaceImpl *aVGSurfaceImpl)
       
    30     {
       
    31     CVGSurface* self = new (ELeave)CVGSurface();
       
    32     CleanupStack::PushL(self);
       
    33     self->ConstructL(aVGSurfaceImpl);
       
    34     return self;
       
    35     }
       
    36 
       
    37 CVGSurface* CVGSurface::NewL(MVGSurfaceImpl *aVGSurfaceImpl)
       
    38     {
       
    39     CVGSurface* self=CVGSurface::NewLC(aVGSurfaceImpl);
       
    40     CleanupStack::Pop(self);
       
    41     return self;
       
    42     }
       
    43 
       
    44 void CVGSurface::ConstructL(MVGSurfaceImpl *aVGSurfaceImpl)
       
    45     {
       
    46     this->iImpl = aVGSurfaceImpl;
       
    47     }