os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalextensions.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 /**
    16 @file
    17 @test
    18 @internalTechnology
    19  */
    20 #ifndef TGRAPHICSRESOURCEINTERNALEXTENSIONS_H_
    21 #define TGRAPHICSRESOURCEINTERNALEXTENSIONS_H_
    22 
    23 #include <e32cmn.h>
    24 
    25 /**
    26 Copy of the test extension from the reference Graphics Resource implementation.
    27 This has been copied to remove the dependency of the tests upon the reference
    28 implementation.
    29  */
    30 class MSgDriver_Test
    31 	{
    32 public:
    33 	enum { EInterfaceUid = 0x102872C8 };
    34 public:
    35 	virtual void AllocMarkStart() = 0;
    36 	virtual void AllocMarkEnd(TInt aCount) = 0;
    37 	virtual void SetAllocFail(RAllocator::TAllocFail aFail, TInt aRate) = 0;
    38 	};
    39 
    40 /**
    41 Copy of the profiling extension from the reference Graphics Resource implementation.
    42 This has been copied to remove the dependency of the tests upon the reference
    43 implementation.
    44  */
    45 class MSgDriver_Profiling
    46 	{
    47 public:
    48 	enum { EInterfaceUid = 0x102872C9 };
    49 public:
    50 	virtual TInt LocalResourceCount() const = 0;
    51 	virtual TInt GlobalResourceCount() const = 0;
    52 	virtual TInt LocalGraphicsMemoryUsed() const = 0;
    53 	virtual TInt GlobalGraphicsMemoryUsed() const = 0;
    54 	};
    55 
    56 #endif /* TGRAPHICSRESOURCEINTERNALEXTENSIONS_H_ */