Changeset 846 for trunk/src/openvg/qvgimagepool.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/openvg/qvgimagepool.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 155 155 Q_UNUSED(height); 156 156 157 if (data) 157 bool succeeded = false; 158 bool wasInLRU = false; 159 if (data) { 160 wasInLRU = data->inLRU; 158 161 moveToHeadOfLRU(data); 162 } 159 163 160 164 QVGPixmapData *lrudata = pixmapLRU(); 161 165 if (lrudata && lrudata != data) { 162 166 lrudata->reclaimImages(); 163 returntrue;167 succeeded = true; 164 168 } 165 169 166 return false; 170 if (data && !wasInLRU) 171 removeFromLRU(data); 172 173 return succeeded; 167 174 } 168 175
Note:
See TracChangeset
for help on using the changeset viewer.