sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @internalComponent sl@0: */ sl@0: sl@0: #ifndef SGIMAGEIMPL_INL sl@0: #define SGIMAGEIMPL_INL sl@0: sl@0: sl@0: // XSgImageImplBase sl@0: sl@0: inline XSgImageImplBase::XSgImageImplBase(XSgDriverImpl& aDriverImpl) sl@0: : XSgBase(aDriverImpl) sl@0: {} sl@0: sl@0: sl@0: inline XSgImageImplBase::XSgImageImplBase(XSgDriverImpl& aDriverImpl, const TSgDrawableId& aId) sl@0: : XSgBase(aDriverImpl), iId(aId) sl@0: {} sl@0: sl@0: sl@0: inline const TSgImageMetaData& XSgImageImplBase::MetaData() const sl@0: { sl@0: return iState->MetaData(); sl@0: } sl@0: sl@0: sl@0: // XSgImageStateBase sl@0: sl@0: inline XSgImageStateBase::XSgImageStateBase(XSgDriverImpl& aDriverImpl) sl@0: : XSgBase(aDriverImpl) sl@0: {} sl@0: sl@0: sl@0: inline XSgImageStateBase::XSgImageStateBase(XSgDriverImpl& aDriverImpl, TInt aDataStride) sl@0: : XSgBase(aDriverImpl), iDataStride(aDataStride) sl@0: {} sl@0: sl@0: sl@0: inline TInt XSgImageStateBase::DataStride() const sl@0: { sl@0: return iDataStride; sl@0: } sl@0: sl@0: sl@0: #ifndef SYMBIAN_GRAPHICS_USE_GPU sl@0: sl@0: // TSgImageId_SwLocal sl@0: sl@0: inline TBool TSgImageId_SwLocal::IsMatch(const TSgDrawableId& aId) sl@0: { sl@0: return reinterpret_cast(aId).iMinusOne == KErrNotFound; sl@0: } sl@0: sl@0: sl@0: // XSgImageImpl_SwLocal sl@0: sl@0: inline XSgImageImpl_SwLocal::XSgImageImpl_SwLocal(XSgDriverImpl& aDriverImpl, const TSgDrawableId& aId) sl@0: : XSgImageImplBase(aDriverImpl, aId) sl@0: {} sl@0: sl@0: sl@0: inline XSgImageImpl_SwLocal::XSgImageImpl_SwLocal(const XSgImageImpl_SwLocal& aImage, TUint32 aFlags) sl@0: : XSgImageImplBase(aImage, aFlags) sl@0: {} sl@0: sl@0: #endif sl@0: sl@0: sl@0: // TSgImageId_SurfaceManager sl@0: sl@0: inline TBool TSgImageId_SurfaceManager::IsMatch(const TSgDrawableId& aId) sl@0: { sl@0: return reinterpret_cast(aId).iBufferIndex >= 0 sl@0: && reinterpret_cast(aId).iMetaDataIndex >= 0; sl@0: } sl@0: sl@0: sl@0: // XSgImageImpl_SurfaceManager sl@0: sl@0: inline XSgImageImpl_SurfaceManager::XSgImageImpl_SurfaceManager(XSgDriverImpl& aDriverImpl) sl@0: : XSgImageImplBase(aDriverImpl) sl@0: {} sl@0: sl@0: sl@0: inline XSgImageImpl_SurfaceManager::XSgImageImpl_SurfaceManager(XSgDriverImpl& aDriverImpl, const TSgDrawableId& aId) sl@0: : XSgImageImplBase(aDriverImpl, aId) sl@0: {} sl@0: sl@0: sl@0: inline XSgImageImpl_SurfaceManager::XSgImageImpl_SurfaceManager(const XSgImageImpl_SurfaceManager& aImage, TUint32 aFlags) sl@0: : XSgImageImplBase(aImage, aFlags) sl@0: {} sl@0: sl@0: sl@0: // XSgImageState_SurfaceManager sl@0: sl@0: inline XSgImageState_SurfaceManager::XSgImageState_SurfaceManager(XSgDriverImpl& aDriverImpl) sl@0: : XSgImageStateBase(aDriverImpl) sl@0: {} sl@0: sl@0: sl@0: inline const TSurfaceId& XSgImageState_SurfaceManager::SurfaceId() const sl@0: { sl@0: return iSurfaceId; sl@0: } sl@0: sl@0: sl@0: inline const RChunk& XSgImageState_SurfaceManager::DataChunk() const sl@0: { sl@0: return iDataChunk; sl@0: } sl@0: sl@0: sl@0: inline TInt XSgImageState_SurfaceManager::DataOffset() const sl@0: { sl@0: return iDataOffset; sl@0: } sl@0: sl@0: sl@0: #endif // SGIMAGEIMPL_INL