os/graphics/graphicsdeviceinterface/bitgdi/sbit/accelsoftbc.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/graphicsdeviceinterface/bitgdi/sbit/accelsoftbc.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,81 @@
     1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// ACCELSOFT.CPP
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#include <graphicsaccelerator.h>
    1.22 +#include <fbs.h>
    1.23 +
    1.24 +/**
    1.25 +A wrapper around the screendriver implementation of a factory for creating 2D 
    1.26 +graphics accelerator objects whose graphics operations are implemented in software.
    1.27 +
    1.28 +Do not use, link against scdv.lib, here for BC.
    1.29 +
    1.30 +@internalComponent
    1.31 +@see CSoftwareGraphicsAccelerator
    1.32 +*/
    1.33 +class CSoftwareGraphicsAcceleratorBC : public CGraphicsAccelerator
    1.34 +	{
    1.35 +public:
    1.36 +	// Create a new CSoftwareGraphicsAccelerator for use with a given bitmap
    1.37 +	IMPORT_C static CSoftwareGraphicsAccelerator* NewL(CFbsBitmap* aBitmap);
    1.38 +
    1.39 +	// Get the non-bitmap-specific capabilities of the hardware accelerator.
    1.40 +	IMPORT_C static const TGraphicsAcceleratorCaps* GenericCapabilities();
    1.41 +public:
    1.42 +	// From CGraphicsAccelerator
    1.43 +	virtual const TGraphicsAcceleratorCaps* Capabilities() = 0;
    1.44 +	virtual TInt Operation(const TGraphicsOperation& aOperation) = 0;
    1.45 +	virtual TInt Operation(const TGraphicsOperation& aOperation,TInt aNumClipRects,TRect* aClipRects) = 0;
    1.46 +	virtual TInt Operation(TDes8& aBuffer) = 0;
    1.47 +	virtual TInt Operation(TDes8& aBuffer,TInt aNumClipRects,TRect* aClipRects) = 0;
    1.48 +	// From CGraphicsAccelerator
    1.49 +	virtual void Reserved_1() = 0;
    1.50 +	virtual void Reserved_2() = 0;
    1.51 +	virtual void Reserved_3() = 0;
    1.52 +	virtual void Reserved_4() = 0;
    1.53 +	};
    1.54 +
    1.55 +/** 
    1.56 +Allocates and constructs an instance of a derived class and initialises its 
    1.57 +capabilities.
    1.58 +
    1.59 +Do not use, link against scdv.lib, here for BC. 
    1.60 +
    1.61 +@param aBitmap The bitmap for the accelerator to draw to. This may be any 
    1.62 +type of bitmap, including a hardware bitmap.
    1.63 +@return Pointer to the initialised graphics accelerator object.
    1.64 +@see CSoftwareGraphicsAccelerator::NewL
    1.65 +*/
    1.66 +EXPORT_C CSoftwareGraphicsAccelerator* CSoftwareGraphicsAcceleratorBC::NewL(CFbsBitmap* aBitmap)
    1.67 +	{
    1.68 +	return CSoftwareGraphicsAccelerator::NewL(aBitmap);
    1.69 +	}
    1.70 +
    1.71 +/** 
    1.72 +Gets the generic capabilities of the accelerator, including which display modes 
    1.73 +are supported for the bitmap passed to NewL().
    1.74 +
    1.75 +Do not use, link against scdv.lib, here for BC. 
    1.76 +
    1.77 +@return Generic capabilities for software graphics accelerators. 
    1.78 +@see CSoftwareGraphicsAccelerator::GenericCapabilities
    1.79 +*/
    1.80 +EXPORT_C const TGraphicsAcceleratorCaps* CSoftwareGraphicsAcceleratorBC::GenericCapabilities()
    1.81 +	{
    1.82 +	return CSoftwareGraphicsAccelerator::GenericCapabilities();
    1.83 +	}
    1.84 +