os/graphics/windowing/windowserver/debuglog/osbwin.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2005-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 //
    15 
    16 #ifndef __OSBWIN_H__
    17 #define __OSBWIN_H__
    18 
    19 /**
    20 @file
    21 @internalComponent
    22 */
    23 
    24 #include <gdi.h>
    25 
    26 struct TWin32Info;
    27 class CPalette;
    28 
    29 NONSHARABLE_CLASS(CDebugOsbWin): public CBase
    30 	{
    31 public:
    32 	IMPORT_C static CDebugOsbWin* NewL(const TDesC& aName, TSize aSize);
    33 	IMPORT_C void Refresh(TSize aSize, TDisplayMode aDisplayMode, const TUint32* aDataAddress);
    34 	IMPORT_C ~CDebugOsbWin();
    35 public:	
    36 	static TInt iId;	
    37 private:
    38 	static TInt ThreadMain(TAny* aArg);
    39 	CDebugOsbWin(const TDesC& aName, TSize aSize);
    40 	void ConstructL();
    41 	void Copy2Bpp(const TUint32* aDataAddress);
    42 	void Copy8Bpp(const TUint32* aDataAddress);
    43 	void Copy12Bpp(const TUint32* aDataAddress);
    44 	void Copy16Bpp(const TUint32* aDataAddress);
    45 	void Copy24Bpp(const TUint32* aDataAddress);
    46 	void CopyU24Bpp(const TUint32* aDataAddress);
    47 private:
    48 	RThread iThread;
    49 	TBool iThreadCreated;
    50 	TSize iSize;
    51 	TBuf<32> iName;
    52 	RSemaphore iSem;
    53 	TWin32Info* iWin32;
    54 	TUint8* iBitmapBits;
    55 	CPalette* iPalette;
    56 	TInt iHExtra;
    57 	TInt iVExtra;
    58 	};
    59 
    60 #endif
    61 
    62