diff options
author | Jacek Antonelli | 2009-11-19 04:19:06 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-19 04:19:06 -0600 |
commit | 1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427 (patch) | |
tree | e09ccbc010e326a48fd91ba15b58afd7fb836b3f /linden/indra/newview/llviewerimage.h | |
parent | Fixed minor formatting issue in MANIFESTO.txt. (diff) | |
parent | Fixed CMake setting errors (diff) | |
download | meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.zip meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.gz meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.bz2 meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.xz |
Merge remote branch 'mccabe/1.3.0-next' into next
Conflicts:
linden/indra/cmake/00-Common.cmake
linden/indra/newview/skins/default/xui/de/floater_about.xml
linden/indra/newview/skins/default/xui/fr/floater_about.xml
linden/indra/newview/skins/default/xui/ja/floater_about.xml
linden/indra/newview/skins/default/xui/ko/floater_about.xml
linden/indra/newview/skins/default/xui/zh/floater_about.xml
linden/install.xml
Diffstat (limited to 'linden/indra/newview/llviewerimage.h')
-rw-r--r-- | linden/indra/newview/llviewerimage.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerimage.h b/linden/indra/newview/llviewerimage.h index c735cb0..980ff56 100644 --- a/linden/indra/newview/llviewerimage.h +++ b/linden/indra/newview/llviewerimage.h | |||
@@ -17,7 +17,8 @@ | |||
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://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -40,6 +41,9 @@ | |||
40 | #include <map> | 41 | #include <map> |
41 | #include <list> | 42 | #include <list> |
42 | 43 | ||
44 | #define MIN_VIDEO_RAM_IN_MEGA_BYTES 32 | ||
45 | #define MAX_VIDEO_RAM_IN_MEGA_BYTES 512 // 512MB max for performance reasons. | ||
46 | |||
43 | class LLViewerImage; | 47 | class LLViewerImage; |
44 | 48 | ||
45 | typedef void (*loaded_callback_func)( BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* src_aux, S32 discard_level, BOOL final, void* userdata ); | 49 | typedef void (*loaded_callback_func)( BOOL success, LLViewerImage *src_vi, LLImageRaw* src, LLImageRaw* src_aux, S32 discard_level, BOOL final, void* userdata ); |
@@ -180,10 +184,11 @@ public: | |||
180 | 184 | ||
181 | /*virtual*/ bool bindError(const S32 stage = 0) const; | 185 | /*virtual*/ bool bindError(const S32 stage = 0) const; |
182 | /*virtual*/ bool bindDefaultImage(const S32 stage = 0) const; | 186 | /*virtual*/ bool bindDefaultImage(const S32 stage = 0) const; |
187 | /*virtual*/ void forceImmediateUpdate() ; | ||
183 | 188 | ||
184 | void reinit(BOOL usemipmaps = TRUE); | 189 | void reinit(BOOL usemipmaps = TRUE); |
185 | 190 | ||
186 | const LLUUID& getID() { return mID; } | 191 | const LLUUID& getID() const { return mID; } |
187 | 192 | ||
188 | // New methods for determining image quality/priority | 193 | // New methods for determining image quality/priority |
189 | // texel_area_ratio is ("scaled" texel area)/(original texel area), approximately. | 194 | // texel_area_ratio is ("scaled" texel area)/(original texel area), approximately. |
@@ -201,6 +206,7 @@ public: | |||
201 | 206 | ||
202 | // ONLY call from LLViewerImageList | 207 | // ONLY call from LLViewerImageList |
203 | BOOL createTexture(S32 usename = 0); | 208 | BOOL createTexture(S32 usename = 0); |
209 | void destroyTexture() ; | ||
204 | 210 | ||
205 | BOOL needsAux() const { return mNeedsAux; } | 211 | BOOL needsAux() const { return mNeedsAux; } |
206 | 212 | ||
@@ -357,10 +363,11 @@ public: | |||
357 | static LLTimer sEvaluationTimer; | 363 | static LLTimer sEvaluationTimer; |
358 | static F32 sDesiredDiscardBias; | 364 | static F32 sDesiredDiscardBias; |
359 | static F32 sDesiredDiscardScale; | 365 | static F32 sDesiredDiscardScale; |
360 | static S32 sBoundTextureMemory; | 366 | static S32 sBoundTextureMemoryInBytes; |
361 | static S32 sTotalTextureMemory; | 367 | static S32 sTotalTextureMemoryInBytes; |
362 | static S32 sMaxBoundTextureMem; | 368 | static S32 sMaxBoundTextureMemInMegaBytes; |
363 | static S32 sMaxTotalTextureMem; | 369 | static S32 sMaxTotalTextureMemInMegaBytes; |
370 | static S32 sMaxDesiredTextureMemInBytes ; | ||
364 | static BOOL sDontLoadVolumeTextures; | 371 | static BOOL sDontLoadVolumeTextures; |
365 | }; | 372 | }; |
366 | 373 | ||