equal
deleted
inserted
replaced
|
1 // Copyright (c) 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 // Graphics Resource - definitions common to both kernel side and user side |
|
15 // |
|
16 |
|
17 #ifndef SGCOMMON_H |
|
18 #define SGCOMMON_H |
|
19 |
|
20 #include <e32cmn.h> |
|
21 #include <sgresource/sgconst.h> |
|
22 |
|
23 const TInt KSgMaxMetaDataSize = 512; |
|
24 |
|
25 NONSHARABLE_CLASS(TSgImageMetaData) |
|
26 { |
|
27 public: |
|
28 #ifndef __KERNEL_MODE__ |
|
29 TSgImageMetaData(): iSizeInPixels(TSize::EUninitialized) {} |
|
30 #endif |
|
31 public: |
|
32 TSize iSizeInPixels; |
|
33 TInt iPixelFormat; |
|
34 }; |
|
35 |
|
36 const TUint32 KSgUsageBitMask = 0xFFFF; |
|
37 |
|
38 enum TSgResourceAttributes |
|
39 { |
|
40 ESgResourceAttrCpuCached = 0x00010000 |
|
41 }; |
|
42 |
|
43 #endif // SGCOMMON_H |