1 #ifndef __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_DEBUG_H__
2 #define __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_DEBUG_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
20 // un-comment to enable
21 //#define DEBUG_GLYPH_STATUS_CONTAINER
23 #ifdef DEBUG_GLYPH_STATUS_CONTAINER
26 #include <dali/public-api/common/set-wrapper.h>
27 #include <dali/internal/event/text/glyph-status/glyph-status.h>
35 // typedefs are only defined if DEBUG_GLYPH_STATUS_CONTAINER is enabled
36 typedef std::set< GlyphStatus, GlyphStatus::Comparator > StatusSet;
37 typedef std::set< const GlyphStatus*, GlyphStatus::PointerComparator > StatusPointerSet;
40 * If DEBUG_GLYPH_STATUS_CONTAINER is defined, it will display
41 * the following whenever an item is inserted / reference /un-referenced / deleted
43 * ----- Glyph Status Container ---
44 * Character 46 ".", Font 0, High Q Loaded , Ref count: 0 : ~DEAD~
45 * Character 72 "H", Font 0, High Q Loaded , Ref count: 1
46 * Character 78 "N", Font 0, High Q Loaded , Ref count: 1
47 * Character 97 "a", Font 0, High Q Loaded , Ref count: 1
48 * Character 100 "d", Font 0, High Q Loaded , Ref count: 1
49 * Character 101 "e", Font 0, High Q Loaded , Ref count: 2
50 * Character 108 "l", Font 0, High Q Loaded , Ref count: 2
51 * Character 111 "o", Font 0, High Q Loaded , Ref count: 3
52 * Character 112 "p", Font 0, High Q Loaded , Ref count: 1
53 * Character 114 "r", Font 0, High Q Loaded , Ref count: 0 : ~DEAD~
54 * Character 116 "t", Font 0, High Q Loaded , Ref count: 1
55 * Character 119 "w", Font 0, High Q Loaded , Ref count: 1
57 * -----Dead List------
58 * Character 46 ".", Font 0, Ref count: 0, High Q Loaded , Dead Time: 0
59 * Character 114 "r", Font 0, Ref count: 0, High Q Loaded , Dead Time: 1
61 * Atlas Size: 16, Used Space 10, Dead size (cached): 2
64 * @param atlasSize, the size of the container
65 * @param statusSet glyph status set
66 * @param deadSet set of dead glyphs
68 void DebugGlyphContainer( unsigned int atlasSize,
70 StatusPointerSet deadSet);
73 } // namespace Internal
77 #endif // DEBUG_GLYPH_STATUS_CONTAINER
78 #endif // __DALI_INTERNAL_GLYPH_STATUS_CONTAINER_H__