equal
deleted
inserted
replaced
1930 } |
1930 } |
1931 else |
1931 else |
1932 { |
1932 { |
1933 // For PC-lint |
1933 // For PC-lint |
1934 } |
1934 } |
1935 |
1935 if (aFirst.iTextBoxMaxSize.iHeight < aSecond.iTextBoxMaxSize.iHeight) |
|
1936 { |
|
1937 return -1; // less than |
|
1938 } |
|
1939 else if (aFirst.iTextBoxMaxSize.iHeight > aSecond.iTextBoxMaxSize.iHeight) |
|
1940 { |
|
1941 return 1; // more than |
|
1942 } |
|
1943 else |
|
1944 { |
|
1945 // For PC-lint |
|
1946 } |
1936 // Text content |
1947 // Text content |
1937 TInt textcompare = KErrNotFound; |
1948 TInt textcompare = KErrNotFound; |
1938 if ( aFirst.iFindTextPtr ) |
1949 if ( aFirst.iFindTextPtr ) |
1939 { |
1950 { |
1940 textcompare = aFirst.iFindTextPtr->Compare(*aSecond.iText); |
1951 textcompare = aFirst.iFindTextPtr->Compare(*aSecond.iText); |
2087 // --------------------------------------------------------------------------- |
2098 // --------------------------------------------------------------------------- |
2088 // |
2099 // |
2089 CHuiCanvasTextureCache::CHuiCanvasTextureCache() |
2100 CHuiCanvasTextureCache::CHuiCanvasTextureCache() |
2090 { |
2101 { |
2091 SetMemoryLevel(EHuiMemoryLevelNormal); |
2102 SetMemoryLevel(EHuiMemoryLevelNormal); |
2092 CHuiStatic::Env().AddLowMemoryObserver(this); |
2103 CHuiStatic::Env().AddMemoryLevelObserver(this); |
2093 } |
2104 } |
2094 |
2105 |
2095 // --------------------------------------------------------------------------- |
2106 // --------------------------------------------------------------------------- |
2096 // Destructor |
2107 // Destructor |
2097 // --------------------------------------------------------------------------- |
2108 // --------------------------------------------------------------------------- |
2098 // |
2109 // |
2099 CHuiCanvasTextureCache::~CHuiCanvasTextureCache() |
2110 CHuiCanvasTextureCache::~CHuiCanvasTextureCache() |
2100 { |
2111 { |
2101 CHuiStatic::Env().RemoveLowMemoryObserver(this); |
2112 CHuiStatic::Env().RemoveMemoryLevelObserver(this); |
2102 iCachedTexts.ResetAndDestroy(); |
2113 iCachedTexts.ResetAndDestroy(); |
2103 iCachedImages.ResetAndDestroy(); |
2114 iCachedImages.ResetAndDestroy(); |
2104 iRecycledTextures.ResetAndDestroy(); |
2115 iRecycledTextures.ResetAndDestroy(); |
2105 |
2116 |
2106 if (iSearchedTextImageEntry) |
2117 if (iSearchedTextImageEntry) |