os/graphics/windowing/windowserver/debuglog/osbwin.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/debuglog/osbwin.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,62 @@
     1.4 +// Copyright (c) 2005-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 +//
    1.18 +
    1.19 +#ifndef __OSBWIN_H__
    1.20 +#define __OSBWIN_H__
    1.21 +
    1.22 +/**
    1.23 +@file
    1.24 +@internalComponent
    1.25 +*/
    1.26 +
    1.27 +#include <gdi.h>
    1.28 +
    1.29 +struct TWin32Info;
    1.30 +class CPalette;
    1.31 +
    1.32 +NONSHARABLE_CLASS(CDebugOsbWin): public CBase
    1.33 +	{
    1.34 +public:
    1.35 +	IMPORT_C static CDebugOsbWin* NewL(const TDesC& aName, TSize aSize);
    1.36 +	IMPORT_C void Refresh(TSize aSize, TDisplayMode aDisplayMode, const TUint32* aDataAddress);
    1.37 +	IMPORT_C ~CDebugOsbWin();
    1.38 +public:	
    1.39 +	static TInt iId;	
    1.40 +private:
    1.41 +	static TInt ThreadMain(TAny* aArg);
    1.42 +	CDebugOsbWin(const TDesC& aName, TSize aSize);
    1.43 +	void ConstructL();
    1.44 +	void Copy2Bpp(const TUint32* aDataAddress);
    1.45 +	void Copy8Bpp(const TUint32* aDataAddress);
    1.46 +	void Copy12Bpp(const TUint32* aDataAddress);
    1.47 +	void Copy16Bpp(const TUint32* aDataAddress);
    1.48 +	void Copy24Bpp(const TUint32* aDataAddress);
    1.49 +	void CopyU24Bpp(const TUint32* aDataAddress);
    1.50 +private:
    1.51 +	RThread iThread;
    1.52 +	TBool iThreadCreated;
    1.53 +	TSize iSize;
    1.54 +	TBuf<32> iName;
    1.55 +	RSemaphore iSem;
    1.56 +	TWin32Info* iWin32;
    1.57 +	TUint8* iBitmapBits;
    1.58 +	CPalette* iPalette;
    1.59 +	TInt iHExtra;
    1.60 +	TInt iVExtra;
    1.61 +	};
    1.62 +
    1.63 +#endif
    1.64 +
    1.65 +