First public contribution.
1 // Copyright (c) 2006-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
36 EAdaptationSurfaceBase = 33,
38 struct TSurfaceUsage //TSurfaceId::TSurfaceUsage::
45 EHalFlippedFlag=0x80000000,
54 typedef TSurfaceUsage TScreenSurfaceUsage; //Backward compatibility
57 inline static TSurfaceId CreateNullId(void)
59 TSurfaceId id = TSurfaceId();
60 for (TInt i = 0; i < 4; ++i) id.iInternal[i] = 0;
63 inline TBool IsNull() const
65 return ((iInternal[0] == 0) &&
66 (iInternal[1] == 0) &&
67 (iInternal[2] == 0) &&
71 inline TInt Type() const {return (TInt)(iInternal[3] >> 24);}
77 inline bool operator == (const TSurfaceId& lhs, const TSurfaceId& rhs)
79 return ((lhs.iInternal[0] == rhs.iInternal[0]) &&
80 (lhs.iInternal[1] == rhs.iInternal[1]) &&
81 (lhs.iInternal[2] == rhs.iInternal[2]) &&
82 (lhs.iInternal[3] == rhs.iInternal[3]));
85 inline bool operator != (const TSurfaceId& lhs, const TSurfaceId& rhs)