os/graphics/graphicsdeviceinterface/bitgdi/sbit/accelsoftbc.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // ACCELSOFT.CPP
    15 // 
    16 //
    17 
    18 #include <graphicsaccelerator.h>
    19 #include <fbs.h>
    20 
    21 /**
    22 A wrapper around the screendriver implementation of a factory for creating 2D 
    23 graphics accelerator objects whose graphics operations are implemented in software.
    24 
    25 Do not use, link against scdv.lib, here for BC.
    26 
    27 @internalComponent
    28 @see CSoftwareGraphicsAccelerator
    29 */
    30 class CSoftwareGraphicsAcceleratorBC : public CGraphicsAccelerator
    31 	{
    32 public:
    33 	// Create a new CSoftwareGraphicsAccelerator for use with a given bitmap
    34 	IMPORT_C static CSoftwareGraphicsAccelerator* NewL(CFbsBitmap* aBitmap);
    35 
    36 	// Get the non-bitmap-specific capabilities of the hardware accelerator.
    37 	IMPORT_C static const TGraphicsAcceleratorCaps* GenericCapabilities();
    38 public:
    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;
    50 	};
    51 
    52 /** 
    53 Allocates and constructs an instance of a derived class and initialises its 
    54 capabilities.
    55 
    56 Do not use, link against scdv.lib, here for BC. 
    57 
    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
    62 */
    63 EXPORT_C CSoftwareGraphicsAccelerator* CSoftwareGraphicsAcceleratorBC::NewL(CFbsBitmap* aBitmap)
    64 	{
    65 	return CSoftwareGraphicsAccelerator::NewL(aBitmap);
    66 	}
    67 
    68 /** 
    69 Gets the generic capabilities of the accelerator, including which display modes 
    70 are supported for the bitmap passed to NewL().
    71 
    72 Do not use, link against scdv.lib, here for BC. 
    73 
    74 @return Generic capabilities for software graphics accelerators. 
    75 @see CSoftwareGraphicsAccelerator::GenericCapabilities
    76 */
    77 EXPORT_C const TGraphicsAcceleratorCaps* CSoftwareGraphicsAcceleratorBC::GenericCapabilities()
    78 	{
    79 	return CSoftwareGraphicsAccelerator::GenericCapabilities();
    80 	}
    81