Update contrib.
1 // Copyright (c) 2009-2010 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.
16 #ifndef GLYPHATLASTESTWRAPPER_H
17 #define GLYPHATLASTESTWRAPPER_H
19 #include "glyphatlas.h"
23 Class to provide access to glyph atlas metrics for test purposes
25 NONSHARABLE_CLASS(CGlyphAtlasTestWrapper)
28 ~CGlyphAtlasTestWrapper();
29 static CGlyphAtlasTestWrapper* NewL(TInt aMaxCacheSizeInBytes);
30 static CGlyphAtlasTestWrapper* NewLC(TInt aMaxCacheSizeInBytes);
31 TInt GetGlyph(const CBitmapFont& aFont, TUint aGlyphCode, TGlyphImageInfo& aGlyphImageInfo);
32 TInt AddGlyph(const CBitmapFont& aFont, const CGlyphAtlas::TAddGlyphArgs& aArgs, TGlyphImageInfo& aGlyphImageInfo);
33 void FontReleased(const CBitmapFont& aFont);
35 // Utility functions providing access to internals of glyph atlas
36 TInt SizeInBytes() const;
37 TInt GlyphCountByFont(const CBitmapFont* aFont);
39 TInt FontCount() const;
40 TBool LruPageContainsGlyph(TUint aGlyphCode) const;
42 CGlyphAtlasTestWrapper();
43 void ConstructL(TInt aMaxCacheSizeInBytes);
48 #endif /* GLYPHATLASTESTWRAPPER_H */