aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimagelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerimagelist.h')
-rw-r--r--linden/indra/newview/llviewerimagelist.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerimagelist.h b/linden/indra/newview/llviewerimagelist.h
index 8ee2731..306dd5b 100644
--- a/linden/indra/newview/llviewerimagelist.h
+++ b/linden/indra/newview/llviewerimagelist.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -37,6 +37,7 @@
37#include "llgl.h" 37#include "llgl.h"
38#include "llstat.h" 38#include "llstat.h"
39#include "llviewerimage.h" 39#include "llviewerimage.h"
40#include "llui.h"
40#include <list> 41#include <list>
41#include <set> 42#include <set>
42 43
@@ -81,7 +82,8 @@ public:
81 ~LLViewerImageList(); 82 ~LLViewerImageList();
82 83
83 // LLImageProviderInterface 84 // LLImageProviderInterface
84 LLImageGL* getUIImageByID(const LLUUID& id, BOOL clamped = TRUE); 85 LLImageGL* getImageByID(const LLUUID& id, BOOL clamped = TRUE);
86 LLUIImage* getUIImageByID(const LLUUID& id, BOOL clamped = TRUE);
85 87
86 void init(); 88 void init();
87 void shutdown(); 89 void shutdown();
@@ -151,7 +153,7 @@ public:
151 void doPrefetchImages(); 153 void doPrefetchImages();
152 154
153private: 155private:
154 LLViewerImage* preloadImage(const LLString& filename, const LLUUID &image_set_id, BOOL use_mips); 156 LLViewerImage* preloadUIImage(const LLString& filename, const LLUUID &image_set_id, BOOL use_mips, const LLRectf& scale_rect = LLRectf(0.f, 1.f, 1.f, 0.f));
155 void updateImagesDecodePriorities(); 157 void updateImagesDecodePriorities();
156 F32 updateImagesCreateTextures(F32 max_time); 158 F32 updateImagesCreateTextures(F32 max_time);
157 F32 updateImagesFetchTextures(F32 max_time); 159 F32 updateImagesFetchTextures(F32 max_time);
@@ -190,7 +192,8 @@ private:
190 LLUUID mMovieImageUUID; 192 LLUUID mMovieImageUUID;
191 U8 mMovieImageHasMips; 193 U8 mMovieImageHasMips;
192 194
193 std::vector<LLPointer<LLViewerImage> > mPreloadedImages; 195 typedef std::map< LLUUID, LLPointer<LLUIImage> > uuid_ui_image_map_t;
196 uuid_ui_image_map_t mUIImages;
194 197
195public: 198public:
196 static U32 sTextureBits; 199 static U32 sTextureBits;