Update contrib.
1 // Copyright (c) 2001-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 #include <graphicsaccelerator.h>
22 A wrapper around the screendriver implementation of a factory for creating 2D
23 graphics accelerator objects whose graphics operations are implemented in software.
25 Do not use, link against scdv.lib, here for BC.
28 @see CSoftwareGraphicsAccelerator
30 class CSoftwareGraphicsAcceleratorBC : public CGraphicsAccelerator
33 // Create a new CSoftwareGraphicsAccelerator for use with a given bitmap
34 IMPORT_C static CSoftwareGraphicsAccelerator* NewL(CFbsBitmap* aBitmap);
36 // Get the non-bitmap-specific capabilities of the hardware accelerator.
37 IMPORT_C static const TGraphicsAcceleratorCaps* GenericCapabilities();
39 // From CGraphicsAccelerator
40 virtual const TGraphicsAcceleratorCaps* Capabilities() = 0;
41 virtual TInt Operation(const TGraphicsOperation& aOperation) = 0;
42 virtual TInt Operation(const TGraphicsOperation& aOperation,TInt aNumClipRects,TRect* aClipRects) = 0;
43 virtual TInt Operation(TDes8& aBuffer) = 0;
44 virtual TInt Operation(TDes8& aBuffer,TInt aNumClipRects,TRect* aClipRects) = 0;
45 // From CGraphicsAccelerator
46 virtual void Reserved_1() = 0;
47 virtual void Reserved_2() = 0;
48 virtual void Reserved_3() = 0;
49 virtual void Reserved_4() = 0;
53 Allocates and constructs an instance of a derived class and initialises its
56 Do not use, link against scdv.lib, here for BC.
58 @param aBitmap The bitmap for the accelerator to draw to. This may be any
59 type of bitmap, including a hardware bitmap.
60 @return Pointer to the initialised graphics accelerator object.
61 @see CSoftwareGraphicsAccelerator::NewL
63 EXPORT_C CSoftwareGraphicsAccelerator* CSoftwareGraphicsAcceleratorBC::NewL(CFbsBitmap* aBitmap)
65 return CSoftwareGraphicsAccelerator::NewL(aBitmap);
69 Gets the generic capabilities of the accelerator, including which display modes
70 are supported for the bitmap passed to NewL().
72 Do not use, link against scdv.lib, here for BC.
74 @return Generic capabilities for software graphics accelerators.
75 @see CSoftwareGraphicsAccelerator::GenericCapabilities
77 EXPORT_C const TGraphicsAcceleratorCaps* CSoftwareGraphicsAcceleratorBC::GenericCapabilities()
79 return CSoftwareGraphicsAccelerator::GenericCapabilities();