sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include "GraphicsAccelerator.h" sl@0: sl@0: LOCAL_D const TGraphicsAcceleratorCaps HardwareAcceleratorCapabilities = sl@0: { sl@0: sizeof(TGraphicsAcceleratorCaps), //TInt iStructureSize; // The size of this class sl@0: 1, //TInt iVersion; // == 1 to specify current API sl@0: {0} //Tint iVendorUid; // Optional ID sl@0: // Default values of zero... sl@0: }; sl@0: sl@0: EXPORT_C CHardwareGraphicsAccelerator* CHardwareGraphicsAccelerator::NewL(RHardwareBitmap /*aBitmap*/) sl@0: /** sl@0: Allocates and constructs an instance of a derived class and initialises its sl@0: capabilities. sl@0: sl@0: @param aBitmap The hardware bitmap for the accelerator to draw to. sl@0: @return Pointer to the initialised graphics accelerator object. sl@0: @see TGraphicsAcceleratorCaps::iDisplayModes sl@0: */ sl@0: { sl@0: User::Leave(KErrNotSupported); sl@0: return NULL; sl@0: } sl@0: sl@0: EXPORT_C const TGraphicsAcceleratorCaps* CHardwareGraphicsAccelerator::GenericCapabilities() sl@0: /** sl@0: Gets the generic capabilities of the accelerator, including which display modes sl@0: are supported for the bitmap passed to NewL(). sl@0: sl@0: Generic capabilities apply to all hardware graphics accelerators on the device. sl@0: The function is static, so it can be used to find out the capabilities of sl@0: graphics accelerators before deciding on whether or not to create one. sl@0: sl@0: The CGraphicsAccelerator::Capabilities() function provides information about sl@0: the capabilities of a particular graphics accelerator. sl@0: sl@0: As capabilities may vary depending on the display mode of a bitmap, this method sl@0: should indicate as supported any features which are only available in some sl@0: display modes. sl@0: sl@0: @return Generic capabilities for hardware graphics accelerators. sl@0: */ sl@0: { sl@0: return &HardwareAcceleratorCapabilities; sl@0: } sl@0: