Commit Graph

25946 Commits (e4e01ea7cce42ca5eac28ceff2b111e52dfd939b)

Author SHA1 Message Date
Nat Goodspeed 6ca3706808 LLUICtrlFactory::getLayeredXMLNode() gets LLDir::ESkinConstraint.
At this point, LLUICtrlFactory::getLayeredXMLNode() is a pretty thin wrapper
around LLDir::findSkinnedFilenames() and LLXMLNode::getLayeredXMLNode().
Until now, LLUICtrlFactory::getLayeredXMLNode() passed (by default)
LLDir::CURRENT_SKIN to LLDir::findSkinnedFilenames(). But that meant that a
caller such as LLTransUtil::parseStrings() that wants almost the same
functionality, but with LLDir::ALL_SKINS instead, had to clone the logic from
LLUICtrlFactory::getLayeredXMLNode(). Allowing its caller to pass the desired
LLDir::ESkinConstraint enum value eliminates the need to clone its logic.
Remove cloned logic from LLTransUtil::parseStrings().
2012-10-12 08:42:18 -04:00
Richard Linden 0f58ca02cd SH-3275 WIP Update viewer metrics system to be more flexible
cleaned up accumulator merging logic
introduced frame recording to LLTrace directly instead of going through LLViewerStats
moved consumer code over to frame recording instead of whatever the current active recording was
2012-10-12 00:20:19 -07:00
William Todd Stinson e1bc3cb096 MAINT-1684: Correcting the calls to ll_aligned_free() which should have actually been to ll_aligned_free_16(). 2012-10-11 18:25:13 -07:00
callumprentice 57e8f8f5e4 point to new version of Google Breakpad and tweak function sig of GBP exception handler 2012-10-11 16:51:56 -07:00
Nat Goodspeed 730d13a76a Change LLDir::findSkinnedFilenames() to use enum instead of bool.
At Richard's suggestion, changed the bool merge parameter to new enum
ESkinConstraint with values CURRENT_SKIN and ALL_SKINS. This clarifies what
we're requesting at the point of the call.
2012-10-11 19:51:07 -04:00
William Todd Stinson 572d4bc071 MAINT-1684: Attempt at correcting the linux crash on startup. Replacing the memory allocations and frees in the LLPrivateMemoryPool with aligned memory allocations and frees. 2012-10-11 16:47:16 -07:00
Nat Goodspeed 949e18d98a Merge revised viewer_manifest.py rename logic 2012-10-11 19:02:21 -04:00
Nat Goodspeed fdb0e001f7 Use viewer_manifest.py magic to rename embedded html dir to html.old.
Previous attempt at this same feat copied "*/html" and then iterated through
every such directory in the copy-target space, renaming each individually with
os.rename(). Richard kindly pointed out that it can be done more simply by
using a viewer_manifest.py feature permitting wildcards even in dst= args.
2012-10-11 19:01:49 -04:00
Dave Parks cdbfdfc351 MAINT-1709 Factor out realloc
Reviewed by VoidPointer
2012-10-11 17:02:45 -05:00
Dave Parks 7ebbb5067d MAINT-1709 Factor out realloc
Reviewed by VoidPointer
2012-10-11 17:02:45 -05:00
Nat Goodspeed 9e4927ece5 Make LLTransUtil::parseStrings() merge all relevant strings.xml files.
Until now, adding a xui/en/strings.xml file in any non-default skin meant you
had to clone the entire file, editing only the particular entries you wanted
to override. With this change, we load strings.xml file(s) from the default
skin before loading the specified skin -- so a non-default skin can now
provide a strings.xml file containing only the specific entries it wants to
override.
2012-10-11 17:29:04 -04:00
Richard Linden b3107e3764 merge 2012-10-10 20:15:21 -07:00
Richard Linden 74ac0182ec SH-3405 WIP convert existing stats to lltrace system
fixed units conversion so that trace getters return convertable units
removed circular dependencies from lltrace*
converted more stats to lltrace
2012-10-10 19:25:56 -07:00
Oz Linden 1709952adb pull back 3.4.1-beta6 fixes 2012-10-10 21:40:10 -04:00
Oz Linden 3f45fa719e Added tag 3.4.1-beta6 for changeset 49ed253c80be 2012-10-10 19:29:14 -04:00
Oz Linden 2a0d7acccf tag merge of DRTVWR-179 2012-10-10 19:15:00 -04:00
Nat Goodspeed fdddd37db0 Remove HelpUseLocal setting variable. Hide local html skin dir.
We assert that the local html directory is no longer used. Remove machinery
related to its use, notably HelpUseLocal, the code that checks it and the
code that sets and examines special flag URL "__local".
Before actually killing off the local skins/default/html directory, make
viewer_manifest.py rename it but continue packaging it as html.old. If this
doesn't cause a panic, we can proceed with removing it entirely.
2012-10-10 17:18:26 -04:00
Dave Parks 830ecff00b DRTVWR-225 Cleanup assertions 2012-10-10 14:13:52 -05:00
William Todd Stinson 4a3bdb6896 Pull and merge from ssh://hg@bitbucket.org/oz_linden/viewer-beta-drtvwr-179. 2012-10-10 15:10:48 -07:00
Nat Goodspeed 3653727e7f Introduce new LLDir::findSkinnedFilenames() method. Use as needed.
In a number of different places, for different reasons, the viewer wants to
load a UI-related file that might be overridden by a non-default skin; and
within that skin, might further be overridden by a non-default language.
Apparently, for each of those use cases, every individual developer approached
it as an entirely new problem, solving it idiosyncratically for that one case.
Not only is this a maintenance problem, but it rubs one's nose in the fact
that most such solutions consider only a subset of the relevant skin
directories.
Richard and I evolved an API intended to address all such cases: a central
LLDir method returning a list of relevant pathnames, from most general to most
localized, filtered to present only existing files; plus a couple of
convenience methods to specifically obtain the most general and most localized
available file.
There were several load-skinned-file methods (LLFloater::buildFromFile(),
LLPanel::buildFromFile() and LLUICtrlFactory::createFromFile() -- apparently
cloned-and-modified from each other) that contained funky bolted-on logic to
output the loaded data to an optional passed LLXMLNodePtr param. The trouble
is that passing that param forced each of these methods to subvert its normal
search: specifically for that case, it needed to find the baseline XML file
instead of the localized one. Richard agreed that for the intended usage
(reformatting XML files) we should use XML schema instead, and that the hacky
functionality should be removed. Remove it. Also remove
LLUICtrlFactory::getLocalizedXMLNode(), only used for those three special cases.
Some callers explicitly passed the optional LLXMLNodePtr param as NULL. Remove
that.
Remove LLFloaterUIPreview::displayFloater(save) param, which relied on the
optional output LLXMLNodePtr param. Make onClickSaveFloater() and
onClickSaveAll() emit popupAndPrintWarning() about discontinued functionality.
Recast LLFloater::buildFromFile(), LLPanel::buildFromFile(),
LLUICtrlFactory::createFromFile(), LLNotifications::loadTemplates(),
LLUI::locateSkin(), LLFontRegistry::parseFontInfo(),
LLUIColorTable::loadFromSettings(), LLUICtrlFactory::loadWidgetTemplate(),
LLUICtrlFactory::getLayeredXMLNode(), LLUIImageList::initFromFile(),
LLAppViewer::launchUpdater() and LLMediaCtrl::navigateToLocalPage() to use
findSkinnedFilenames(). (Is LLAppViewer::launchUpdater() ever called any more?
Apparently so -- though the linux-updater.bin logic to process the relevant
command-line switch has been disabled. Shrug.) (Is
LLMediaCtrl::navigateToLocalPage() ever used?? If so, why?)
Remove LLUI::setupPaths(), getXUIPaths(), getSkinPath() and
getLocalizedSkinPath(). Remove the skins/paths.xml file read by setupPaths().
The only configuration it contained was the pair of partial paths "xui/en" and
"xui/[LANGUAGE]" -- hardly likely to change. getSkinPath() specifically
returned the first of these, while getLocalizedSkinPath() specifically
returned the second. This knowledge is now embedded in findSkinnedFilenames().
Also remove paths.xml from viewer_manifest.py.
Remove injected xui_paths from LLFontGL::initClass() and
LLFontRegistry::LLFontRegistry(). These are no longer needed since
LLFontRegistry can now directly consult LLDir for its path search. Stop
passing LLUI::getXUIPaths() to LLFontGL::initClass() in LLViewerWindow's
constructor and initFonts() method.
Add LLDir::append() and add() methods for the simple task of combining two
path components separated by getDirDelimiter() -- but only if they're both
non-empty. Amazing how often that logic is replicated. Replace some existing
concatenations with add() or append().
New LLDir::findSkinnedFilenames() method must know current language. Allow
injecting current language by adding an LLDir::setSkinFolder(language) param,
and pass it where LLAppViewer::init() and initConfiguration() currently call
setSkinFolder(). Also add LLDir::getSkinFolder() and getLanguage() methods.
Change LLFLoaterUIPreview's LLLocalizationResetForcer helper to "forcibly
reset language" using LLDir::setSkinFolder() instead of LLUI::setupPaths().
Update LLDir stubs in lldir_stub.cpp and llupdaterservice_test.cpp.
Add LLDir::getUserDefaultSkinDir() to obtain often-overlooked possible skin
directory -- like getUserSkinDir() but with "default" in place of the current
skin name as the last path component. (However, we hope findSkinnedFilenames()
obviates most explicit use of such individual skin directory pathnames.)
Add LLDir unit tests for new findSkinnedFilenames() and add() methods -- the
latter exercises append() as well.
Tweak indra/integration_tests/llui_libtest/llui_libtest.cpp for all the above.
Notably, comment out its export_test_floaters() function, since the essential
LLFloater::buildFromFile(optional LLXMLNodePtr) functionality has been
removed. This may mean that llui_libtest.cpp has little remaining value, not
sure.
2012-10-10 14:57:43 -04:00
Nat Goodspeed e97c06cf0c On lluuidhashmap_tut<1> failure, save/reload data in temp file.
Generating new random data on every test run makes it impossible to debug a
test failure. While in general we do want to generate random data to
thoroughly exercise the generator logic, if every new run generates new data,
the only thing we can do about an observed failure is shrug and ignore it. Add
logic to save data on failure, with corresponding logic to notice and reload
from a previously-generated save file.
In case of a merge collision, this version SUPERCEDES my previous efforts with
this file. (My other changes may still be in a backed-up merge request.) It is
okay to resolve collisions in favor of this version.
2012-10-10 10:45:37 -04:00
Oz Linden 9edd628643 merge changes for DRTVWR-226 2012-10-10 09:16:05 -04:00
Oz Linden bf9eb5cc25 tag merge of DRTVWR-226 2012-10-10 09:16:02 -04:00
Nat Goodspeed 76333248a8 #include <string.h> in v3color.h: recent Linux compilers care.
Linux dev builds have started breaking because v3color.h uses strlen() and
strncpy() without declaring them. Add relevant #include, which fixes.
2012-10-10 09:04:31 -04:00
Richard Linden 05510799e5 SH-3275 WIP Update viewer metrics system to be more flexible
renamed mergeSamples to mergeRecording
2012-10-09 22:18:07 -07:00
Richard Linden 8bb0a6ef73 post merge cleanup 2012-10-09 18:07:31 -07:00
Richard Linden f5852ff448 Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting 2012-10-09 18:05:32 -07:00
Richard Linden aff9654c11 SH-3275 WIP Update viewer metrics system to be more flexible
added PeriodicRecorder class for frame by frame stats accumulation
2012-10-09 18:02:47 -07:00
Dave Parks 9db74ae962 MAINT-1138 Fix for crash when picking rigged attachments. 2012-10-09 18:27:42 -05:00
Dave Parks 81ba7e031e MAINT-1760 Fix for opaque water glowing when wearing certain rigged attachments. 2012-12-05 18:27:13 -06:00
Dave Parks 87b248958c MAINT-2090 Bump featuretable version to reset mac graphics to default 2012-12-12 17:17:56 -06:00
Dave Parks ccef9ab267 MAINT-2086 Separate GPU class from settings more completely to avoid GPU dependent behavior when manually adjusting detail slider. 2012-12-12 16:42:06 -06:00
Dave Parks fd3cbbaa27 MAINT-2090 Make gcc happy 2012-12-12 15:23:50 -06:00
Dave Parks e0bc069af2 MAINT-2090 Never enable lighting and shadows by default on OS X 2012-12-12 14:52:36 -06:00
Dave Parks 6c989a692d MAINT-1138 Fix for crash when picking rigged attachments. 2012-10-09 18:27:42 -05:00
Dave Parks 827d8814cf MAINT-1688 Potential fix for crash on exit in LLTextureFetch 2012-10-09 13:34:28 -05:00
Oz Linden 04663d0329 Added tag 3.4.1-beta5 for changeset 0bd3744ff060 2012-10-06 06:16:26 -04:00
Oz Linden 66901ca487 tag merge of DRTVWR-224 2012-10-06 06:16:13 -04:00
William Todd Stinson aa86085347 MAINT-1636: Turning off tcmalloc for the build now that davep's changes are in to fix our major crasher. 2012-10-05 15:58:38 -07:00
Richard Linden 960f8764ad SH-3405 WIP convert existing stats to lltrace system
added update() method to trace recorders to allow mid-collection snapshots
2012-10-05 11:44:36 -07:00
Richard Linden 4dce574a8d SH-3405 WIP convert existing stats to lltrace system
added update() method to trace recorders to allow mid-collection snapshots
2012-10-05 10:51:38 -07:00
Richard Linden 3960fdf9e0 SH-3275 WIP Update viewer metrics system to be more flexible
moved threadrecorder classes into separate file
added Count trace type, which tracks value increases and decreases and can report churn
as well as overall growth rate
2012-10-04 23:11:57 -07:00
Oz Linden 7db84aa7e0 Added tag 3.4.1-beta4 for changeset 305950187c62 2012-10-04 20:21:42 -04:00
Oz Linden 07899b2820 merge changes for DRTVWR-222 2012-10-04 20:12:51 -04:00
Oz Linden a5e28651f5 tag merge of DRTVWR-222 2012-10-04 20:12:37 -04:00
Jeff (Gioffredo Linden) 2da6b1f2d7 Merge from Nat's repo - SWAT-711: Create Mac app bundle symlinks only for .dylib files that exist. Previous viewer_manifest.py unconditionally created Mac symlinks for all expected .dylib files. Recent change to revert to statically linking llcommon means we no longer build libllcommon.dylib, therefore we no longer copy it, therefore any symlink to that library will be broken by definition. Change to create symlinks for .dylib files that were successfully copied. 2012-10-04 19:15:48 -04:00
Richard Linden 8f5e837892 SH-3405 WIP convert existing stats to lltrace system
SH-3403 FIX implement unit conversion
LLUnit implements unit tracking and conversion
added support for LLUnit to LLTrace
duplicated most llstats into LLTrace equivalents
2012-10-03 19:32:59 -07:00
Dave Parks ce007b124b Fix for linux build 2012-10-03 16:32:09 -05:00
Chris Baker 03fa24f8ae Merge 2012-10-03 21:16:36 +00:00
Chris Baker a905f7c74e - Fixed an issue where group list wouldn't fall back to UDP if the region doesn't support the new GroupMemberData capabaility
- Fixed a potential null pointer crash.

Thanks to Ansariel from Firestorm for these!

Reviewer: Myself
2012-10-03 21:16:04 +00:00