graphicsdeviceinterface/directgdiadaptation/hwsrc/directgdidriverprocessstate.inl
equal
deleted
inserted
replaced
|
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 // directhdidriverprocessstate.inl |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef DIRECTGDIDRIVERPROCESSSTATE_INL |
|
19 #define DIRECTGDIDRIVERPROCESSSTATE_INL |
|
20 |
|
21 |
|
22 inline const TSgDrawableId& CImageSourceData::SgImageId() const |
|
23 { |
|
24 return iSgImageId; |
|
25 } |
|
26 |
|
27 inline EGLImageKHR CImageSourceData::EglImage() const |
|
28 { |
|
29 return iEglImage; |
|
30 } |
|
31 |
|
32 inline VGImage CImageSourceData::VgImage() const |
|
33 { |
|
34 return iVgImage; |
|
35 } |
|
36 |
|
37 inline TInt CImageSourceData::Open() |
|
38 { |
|
39 return ++iRefCount; |
|
40 } |
|
41 |
|
42 inline TInt CImageSourceData::Close() |
|
43 { |
|
44 return --iRefCount; |
|
45 } |
|
46 |
|
47 |
|
48 /** |
|
49 Returns how the creation of the mutex in the constructor went. If this is not KErrNone, the mutex |
|
50 was not created and the process state cannot be used. |
|
51 */ |
|
52 inline TInt XDirectGdiDriverProcessState::MutexCreationStatus() const |
|
53 { |
|
54 return iCreateMutexErr; |
|
55 } |
|
56 |
|
57 #endif // DIRECTGDIDRIVERPROCESSSTATE_INL |