Commit Graph

20 Commits (b6cdbebb98bb0472e498921b95bab547aeb3eb38)

Author SHA1 Message Date
Ansariel 5f1a19af72 Merge remote-tracking branch 'LL/marchcat/x-ws-merge'
# Conflicts:
#	autobuild.xml
#	indra/linux_crash_logger/llcrashloggerlinux.cpp
#	indra/newview/llappviewerlinux_api.h
#	indra/newview/llappviewerlinux_api_dbus.cpp
#	indra/newview/llappviewerlinux_api_dbus.h
#	indra/newview/llavatarpropertiesprocessor.h
#	indra/newview/llcallbacklist.cpp
#	indra/newview/llimpanel.h
2024-05-01 12:30:57 +02:00
Andrey Lihatskiy 1b68f71348 #824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed 2024-04-29 07:56:09 +03:00
Beq b36372bb5e remove pointer no longer used for tracking attachments/huds 2021-11-03 19:36:11 +00:00
Beq 390c136430 Migrate perfstats away from telemetry/profiling
perfstats is now a standalone module.
2021-10-13 02:04:05 +01:00
Mnikolenko Productengine bc609f964b SL-15297 WIP Implement performance floater - updated UI 2021-06-17 20:37:06 +03:00
Mnikolenko Productengine 10a770047d SL-15297 WIP Implement performance floater 2021-06-11 19:10:43 +03:00
AndreyL ProductEngine 7dd8c1fc37 Buildfix: proper constructor declaration for LLHUDRenderNotifier 2016-11-15 01:39:16 +02:00
AndreyL ProductEngine 7fceb3a63f Merged in lindenlab/viewer-cleanup 2016-11-14 22:04:37 +02:00
andreykproductengine 6be5e1eb01 MAINT-6792 Improvements for HUD warning 2016-10-07 20:29:42 +03:00
Nat Goodspeed d2c3c2f9fe MAINT-5232: Normalize LLSingleton subclasses.
A shocking number of LLSingleton subclasses had public constructors -- and in
several instances, were being explicitly instantiated independently of the
LLSingleton machinery. This breaks the new LLSingleton dependency-tracking
machinery. It seems only fair that if you say you want an LLSingleton, there
should only be ONE INSTANCE!

Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the
friend class LLSingleton<whatevah>;
and explicitly declare a private nullary constructor.

To try to enforce the LLSINGLETON() convention, introduce a new pure virtual
LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might
suspect, defined by the macro. If you declare an LLSingleton subclass without
using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't
instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro()
implementation -- which will hopefully remind the coder.

Trawl through ALL LLSingleton subclass definitions, sprinkling in
LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit
constructor declarations, public or private, along with relevant 'friend class
LLSingleton<myself>' declarations. Where destructors are declared, move them
into private section as well. Where the constructor was inline but nontrivial,
move out of class body.

Fix several LLSingleton abuses revealed by making ctors/dtors private:

LLGlobalEconomy was both an LLSingleton and the base class for
LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance
contained another instance of the LLGlobalEconomy "singleton.") Extract
LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that.
LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy.

LLToolGrab, an LLSingleton, was also explicitly instantiated by
LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated,
with trivial subclass LLToolGrab, the LLSingleton instance.

(WARNING: LLToolGrabBase methods have an unnerving tendency to go after
LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship
between the instance in LLToolCompGun and the LLToolGrab singleton instance.)

LLGridManager declared a variant constructor accepting (const std::string&),
with the comment:
// initialize with an explicity grid file for testing.
As there is no evidence of this being called from anywhere, delete it.

LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD
parameter wasn't used, and as there is no evidence of it being passed from
anywhere, delete the parameter.

LLViewerWindow::shutdownViews() was checking LLNavigationBar::
instanceExists(), then deleting its getInstance() pointer -- leaving a
dangling LLSingleton instance pointer, a land mine if any subsequent code
should attempt to reference it. Use deleteSingleton() instead.

~LLAppViewer() was calling LLViewerEventRecorder::instance() and then
explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the
LLSingleton instance pointer pointing to an allocated-but-destroyed instance.
Use deleteSingleton() instead.
2016-09-15 20:18:12 -04:00
andreykproductengine 57060fa0eb MAINT-4124 Warning user about render-heavy set of HUDs 2016-08-02 21:57:04 +03:00
andreykproductengine cfcc31c459 MAINT-5570 additional comments, extended functionality of some variables 2015-09-22 17:21:06 +03:00
andreykproductengine e28f920f9a MAINT-5570 Code refactoring 2015-09-21 15:48:02 +03:00
andreykproductengine b3ef025412 MAINT-5570 [QuickGraphics] Visual complexity notifications are confusing. 2015-09-17 15:33:04 +03:00
andreykproductengine 864d579e0c MAINT-5557 'complexity' change should hide 'over limit' part 2015-09-04 18:26:03 +03:00
andreykproductengine 8465167d87 Backed out changeset: 490da610307f 2015-09-08 17:35:22 +03:00
andreykproductengine dbce6e9370 MAINT-5557 'complexity' change should hide 'over limit' part 2015-09-04 18:26:03 +03:00
andreykproductengine 6f3b21b98d MAINT-5570 FIXED [QuickGraphics] Visual complexity notifications are confusing. 2015-09-01 20:31:20 +03:00
Oz Linden c50aab4a26 refine messages per MAINT-5376 (no percentage) 2015-08-26 16:57:28 -04:00
andreykproductengine 75304b4ca8 MAINT-5378 Add notices for avatar complexity changes 2015-08-19 15:43:06 -04:00