os/graphics/graphicsresourceservices/graphicsresourceimplementation/src/sgdevice.cpp
Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Graphics Resource - logical device driver implementation
17 #include "sgdeviceimpl.h"
19 _LIT(KSgDevicePanicCategory, "SGDEV");
21 void Panic(TSgDevicePanicReason aReason)
23 Kern::PanicCurrentThread(KSgDevicePanicCategory, aReason);
26 DECLARE_STANDARD_LDD()
31 TInt DSgDevice::Install()
33 return SetName(&KSgDeviceName);
36 void DSgDevice::GetCaps(TDes8& aDes) const
41 TInt DSgDevice::Create(DLogicalChannelBase*& aChannel)
43 aChannel = new DSgChannel;
44 return aChannel ? KErrNone : KErrNoMemory;