64
|
1 |
// Copyright (c) 2008-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 __UTILS_H__
|
|
17 |
#define __UTILS_H__
|
|
18 |
|
|
19 |
#include <gdi.h>
|
|
20 |
#include <pixelformats.h>
|
|
21 |
|
|
22 |
GLDEF_C TDisplayMode ParseDisplayMode(const TDesC& aModeName);
|
|
23 |
|
|
24 |
// Macros to highlight usage of deprecated render stage APIs.
|
|
25 |
// The description (X) should be small because panic descriptions are limited to 16 chars
|
|
26 |
|
|
27 |
#ifdef RS_DEPRECATED_PANIC
|
|
28 |
#ifndef RS_DEPRECATED_LOG
|
|
29 |
#define RS_DEPRECATED_LOG
|
|
30 |
#endif
|
|
31 |
#endif
|
|
32 |
|
|
33 |
#ifdef RS_DEPRECATED_PANIC
|
|
34 |
#define RS_REPORT_DEPRECATED(X) RDebug::Printf("Deprecated render stage API:" X), User::Panic(_L("RS:" X), __LINE__)
|
|
35 |
#define RS_REPORT_DEPRECATED_SET(X) RDebug::Printf("Deprecated render stage API - SET:" X), User::Panic(_L("RS:" X), __LINE__)
|
|
36 |
#define RS_REPORT_DEPRECATED_GET(X) RDebug::Printf("Deprecated render stage API - GET:" X), User::Panic(_L("RS:" X), __LINE__)
|
|
37 |
#else /* RS_DEPRECATED_PANIC */
|
|
38 |
#ifdef RS_DEPRECATED_LOG
|
|
39 |
#define RS_REPORT_DEPRECATED(X) RDebug::Printf("Deprecated render stage API:" X)
|
|
40 |
#define RS_REPORT_DEPRECATED_SET(X) RDebug::Printf("Deprecated render stage API - SET:" X)
|
|
41 |
#define RS_REPORT_DEPRECATED_GET(X) RDebug::Printf("Deprecated render stage API - GET:" X)
|
|
42 |
#else /* RS_DEPRECATED_LOG */
|
|
43 |
#define RS_REPORT_DEPRECATED(X)
|
|
44 |
#define RS_REPORT_DEPRECATED_SET(X)
|
|
45 |
#define RS_REPORT_DEPRECATED_GET(X)
|
|
46 |
#endif /* RS_DEPRECATED_LOG */
|
|
47 |
#endif /* RS_DEPRECATED_PANIC */
|
|
48 |
|
|
49 |
#endif //__UTILS_H__
|