diff -r 000000000000 -r 5d03bc08d59c graphicsdeviceinterface/directgdiadaptation/hwsrc/directgdiimagetargetimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsdeviceinterface/directgdiadaptation/hwsrc/directgdiimagetargetimpl.h Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,54 @@ +// Copyright (c) 2007-2009 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: +// + +/** + @file + @internalComponent Reference implementation of Open VG hardware accelerated Direct GDI adaptation. +*/ + +#ifndef DIRECTGDIIMAGETARGETIMPL_H +#define DIRECTGDIIMAGETARGETIMPL_H + +#include "directgdiimageref.h" +#include +#include +#include +#include +#include + +class CDirectGdiDriverImpl; + +/** +Container for holding an RDirectGdiImageTarget and its associated EGLSurface. +Reference counted as more than one CDirectGdiContext is allowed to use the same RDirectGdiImageTarget. +*/ +NONSHARABLE_CLASS(CDirectGdiImageTargetImpl): public CDirectGdiImageRef + { +public: + static TInt New(CDirectGdiImageTargetImpl*& aImage, CDirectGdiDriverImpl& aDriver, const RSgImage& aSgImage, RHashMap& aContexts, RHashMap& aConfigs, EGLContext& aSharedContext); + virtual ~CDirectGdiImageTargetImpl(); + TBool Activate(); + +private: + CDirectGdiImageTargetImpl(CDirectGdiDriverImpl& aDriver); + TInt Construct(const RSgImage& aSgImage, RHashMap& aContexts, RHashMap& aConfigs, EGLContext& aSharedContext); + +private: + CDirectGdiDriverImpl& iDriver; + EGLSurface iSurface; + EGLContext iContext; + }; + +#endif /*DIRECTGDIIMAGETARGETIMPL_H_*/