diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llviewerimagelist.h | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerimagelist.h')
-rw-r--r-- | linden/indra/newview/llviewerimagelist.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerimagelist.h b/linden/indra/newview/llviewerimagelist.h index 6cf84b9..8aa9913 100644 --- a/linden/indra/newview/llviewerimagelist.h +++ b/linden/indra/newview/llviewerimagelist.h | |||
@@ -71,7 +71,7 @@ class LLViewerImageList | |||
71 | friend class LLTextureView; | 71 | friend class LLTextureView; |
72 | 72 | ||
73 | public: | 73 | public: |
74 | static BOOL createUploadFile(const LLString& filename, const LLString& out_filename, const U8 codec); | 74 | static BOOL createUploadFile(const std::string& filename, const std::string& out_filename, const U8 codec); |
75 | static LLPointer<LLImageJ2C> convertToUploadFile(LLPointer<LLImageRaw> raw_image); | 75 | static LLPointer<LLImageJ2C> convertToUploadFile(LLPointer<LLImageRaw> raw_image); |
76 | static void processImageNotInDatabase( LLMessageSystem *msg, void **user_data ); | 76 | static void processImageNotInDatabase( LLMessageSystem *msg, void **user_data ); |
77 | static S32 calcMaxTextureRAM(); | 77 | static S32 calcMaxTextureRAM(); |
@@ -96,7 +96,7 @@ public: | |||
96 | LLHost request_from_host = LLHost() | 96 | LLHost request_from_host = LLHost() |
97 | ); | 97 | ); |
98 | 98 | ||
99 | LLViewerImage * getImageFromFile(const LLString& filename, | 99 | LLViewerImage * getImageFromFile(const std::string& filename, |
100 | BOOL usemipmap = TRUE, | 100 | BOOL usemipmap = TRUE, |
101 | BOOL level_immediate = FALSE, // Get the requested level immediately upon creation. | 101 | BOOL level_immediate = FALSE, // Get the requested level immediately upon creation. |
102 | LLGLint internal_format = 0, | 102 | LLGLint internal_format = 0, |
@@ -168,10 +168,6 @@ private: | |||
168 | // simply holds on to LLViewerImage references to stop them from being purged too soon | 168 | // simply holds on to LLViewerImage references to stop them from being purged too soon |
169 | std::set<LLPointer<LLViewerImage> > mImagePreloads; | 169 | std::set<LLPointer<LLViewerImage> > mImagePreloads; |
170 | 170 | ||
171 | typedef std::vector<LLPointer<LLViewerImage> > callback_data_t; | ||
172 | typedef std::set< callback_data_t* > callback_data_list_t; | ||
173 | callback_data_list_t mIRCallbackData; | ||
174 | |||
175 | BOOL mUpdateStats; | 171 | BOOL mUpdateStats; |
176 | S32 mMaxResidentTexMem; | 172 | S32 mMaxResidentTexMem; |
177 | LLFrameTimer mForceDecodeTimer; | 173 | LLFrameTimer mForceDecodeTimer; |
@@ -197,28 +193,28 @@ class LLUIImageList : public LLImageProviderInterface, public LLSingleton<LLUIIm | |||
197 | public: | 193 | public: |
198 | // LLImageProviderInterface | 194 | // LLImageProviderInterface |
199 | LLUIImagePtr getUIImageByID(const LLUUID& id); | 195 | LLUIImagePtr getUIImageByID(const LLUUID& id); |
200 | LLUIImagePtr getUIImage(const LLString& name); | 196 | LLUIImagePtr getUIImage(const std::string& name); |
201 | void cleanUp(); | 197 | void cleanUp(); |
202 | 198 | ||
203 | bool initFromFile(); | 199 | bool initFromFile(); |
204 | 200 | ||
205 | LLUIImagePtr preloadUIImage(const LLString& name, const LLString& filename, BOOL use_mips, const LLRect& scale_rect); | 201 | LLUIImagePtr preloadUIImage(const std::string& name, const std::string& filename, BOOL use_mips, const LLRect& scale_rect); |
206 | 202 | ||
207 | static void onUIImageLoaded( BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* src_aux, S32 discard_level, BOOL final, void* userdata ); | 203 | static void onUIImageLoaded( BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* src_aux, S32 discard_level, BOOL final, void* userdata ); |
208 | private: | 204 | private: |
209 | LLUIImagePtr loadUIImageByName(const LLString& name, const LLString& filename, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); | 205 | LLUIImagePtr loadUIImageByName(const std::string& name, const std::string& filename, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); |
210 | LLUIImagePtr loadUIImageByID(const LLUUID& id, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); | 206 | LLUIImagePtr loadUIImageByID(const LLUUID& id, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); |
211 | 207 | ||
212 | LLUIImagePtr loadUIImage(LLViewerImage* imagep, const LLString& name, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); | 208 | LLUIImagePtr loadUIImage(LLViewerImage* imagep, const std::string& name, BOOL use_mips = FALSE, const LLRect& scale_rect = LLRect::null); |
213 | 209 | ||
214 | 210 | ||
215 | struct LLUIImageLoadData | 211 | struct LLUIImageLoadData |
216 | { | 212 | { |
217 | LLString mImageName; | 213 | std::string mImageName; |
218 | LLRect mImageScaleRegion; | 214 | LLRect mImageScaleRegion; |
219 | }; | 215 | }; |
220 | 216 | ||
221 | typedef std::map< LLString, LLPointer<LLUIImage> > uuid_ui_image_map_t; | 217 | typedef std::map< std::string, LLPointer<LLUIImage> > uuid_ui_image_map_t; |
222 | uuid_ui_image_map_t mUIImages; | 218 | uuid_ui_image_map_t mUIImages; |
223 | }; | 219 | }; |
224 | 220 | ||