os/graphics/graphicsdeviceinterface/directgdiadaptation/hwsrc/directgdiimagesourceimpl.h
First public contribution.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 @internalComponent Reference implementation of OpenVG hardware accelerated DirectGDI adaptation.
21 #ifndef DIRECTGDIIMAGESOURCEIMPL_H
22 #define DIRECTGDIIMAGESOURCEIMPL_H
24 #include "directgdiimageref.h"
27 #include <VG/openvg.h>
28 #include <graphics/sgimage.h>
30 class CDirectGdiDriverImpl;
31 class XDirectGdiDriverProcessState;
34 Container for holding an RDirectGdiDrawableSource and its associated EGLSurface.
35 May be reference counted if more than one CDirectGdiContext is allowed to
36 use the same RDirectGdiDrawableSource.
38 NONSHARABLE_CLASS(CDirectGdiImageSourceImpl): public CDirectGdiImageRef
41 static TInt New(CDirectGdiImageSourceImpl*& aImage, CDirectGdiDriverImpl& aDriver, const RSgImage& aSgImage);
42 virtual ~CDirectGdiImageSourceImpl();
43 inline VGImage VgImage() const;
46 CDirectGdiImageSourceImpl(CDirectGdiDriverImpl& aDriver);
47 virtual TInt Construct(const RSgImage& aSgImage);
50 CDirectGdiDriverImpl& iDriver;
54 inline VGImage CDirectGdiImageSourceImpl::VgImage() const
59 #endif /*DIRECTGDIIMAGESOURCEIMPL_H_*/