Commit Graph

346 Commits (e6f53dedb704c92af45ede2d97c559cb6639358f)

Author SHA1 Message Date
andreykproductengine 8d34a4f8c1 MAINT-6840 start and pause doesn't wotk reliably and can get stuck 2016-12-09 18:49:48 +02:00
AndreyL ProductEngine 7fceb3a63f Merged in lindenlab/viewer-cleanup 2016-11-14 22:04:37 +02:00
pavelkproductengine 07e78807a8 MAINT-6810 win10, 4k monitor and UI scale of 2.0 makes most web content too small to read 2016-10-27 19:48:59 +03:00
Nat Goodspeed 704c53b3c5 MAINT-5232: Merge up to VLC viewer from viewer-release 2016-10-11 10:59:17 -04: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
callum@lindenlab.com 921cfa355c MAINT-6462 Built-in browser plays video vertically flipped 2016-09-09 11:46:50 -07:00
Oz Linden 781cf7fac4 remove use of "override" C++11 feature not supported on gcc 4.6 2016-07-27 09:53:20 -04:00
Callum Linden 8cd9569cef First pass at enabling time based media (videos) scrubbing controls 2016-07-21 21:06:06 -07:00
Callum Linden befb0446c5 Remove new 'buffering' state for video media - seemed like it'd be useful but it broke things 2016-07-21 15:20:00 -07:00
Callum Linden f0eab8b36f Add a comment about order of operation that might be important for those that follow 2016-07-21 09:46:42 -07:00
Callum Linden 8a25489591 MAINT-6578 Broken texture batching - fixed along with misc LibVLC plugin additions (status, titles, looping) 2016-07-20 19:54:54 -07:00
Callum Linden cd47f86c4a MAINT-6578 Add back Y Flip into QuickTime plugin used in OS X to match viewer setting 2016-07-19 12:42:49 -07:00
Callum Linden 1c4dbc64ab MAINT-6577 FIX No sound in MOAP or browser video 2016-07-15 12:18:00 -07:00
Callum Prentice 8ae7828643 MAINT-6527 and MAINT-6528 FIX - max volume and media playing prior URLs 2016-07-11 19:46:11 -07:00
callum_linden d59ce04495 MAINT-6527 FIX -volume plays at full amount +50m away - volume was not set for media outside attenuation zone so played at random value 2016-07-07 09:10:39 -07:00
callum_linden 5f57257185 MAINT-6481 FIX Media controls not present 2016-07-01 14:52:51 -07:00
callum_linden 53cc5ba225 FIX MAINT-6748 content looks correct but page links are flipped vertically 2016-06-02 18:24:15 -07:00
Callum Prentice a24e24fb50 Merged in NickyD/viewer-release-vlc (pull request #2)
Linux media_plugin_libvlc
2016-06-02 14:00:36 -07:00
callum_linden 4796f717c2 BUG-18252 - media flipped on OS X when played in 2D browser 2016-06-02 09:49:08 -07:00
Nicky bebfe34aac Linux: Use media_plugin_libvlc for media playback. 2016-06-01 22:33:30 +02:00
callum_linden 69174fcc58 Fix windows line endings 2016-05-31 14:51:40 -07:00
callum_linden dca6153c23 Remove local flip (as part of resize) in QuickTime plugin for OSX 2016-05-31 09:41:37 -07:00
callum_linden 282956e768 Some simple tidy up and added a proper URL for video test button in web content floater 2016-05-27 16:53:16 -07:00
Nicky ccfb18948d - Make popup appear on the right screen coordinates (this was broken after the flipy switch)
- Make sure the popup stays until it is dismissed (no need to hold the mouse button to scroll through eg a listbox) [This needs a CEF change.)
2016-05-27 00:27:10 +02:00
Callum Prentice 8c85ec13d5 Put back QuickTime plugin code for OS X until a LibVLC version is created 2016-05-26 13:51:22 -07:00
callum_linden 70a38880fa Put back QuickTime plugin code for OS X only (untested - moving code to OS X dev) 2016-05-26 12:50:54 -07:00
callum_linden 05fcb7c812 Automated merge with tip of viewer-release 2016-05-23 16:50:56 -07:00
callum_linden 50ab1e57ec Added support for some transport controls (pause/play/stop) and setting media volume level. 2016-05-16 10:58:39 -07:00
callum_linden 09e68a4953 Additional set of changes to use vlc-bin package 2016-05-13 16:43:18 -07:00
callum_linden f0e9566b90 pull in unflipped version of LLCEFLib 2016-05-13 13:09:12 -07:00
callum_linden bceafa5062 working test button in web browser floater - video inverted 2016-05-10 17:16:24 -07:00
callum_linden ed73eae302 Added support for arbitrary URLs and cleaned up code 2016-05-10 13:07:34 -07:00
callum_linden d15da19231 Added restart on resize - kind of works 2016-05-09 17:11:10 -07:00
callum_linden e11ab0240a Moving to a private repo 2016-05-06 17:43:47 -07:00
callum_linden 5a55ba8ce3 Remove references to quicktime from the plain old viewer-release build 2016-04-19 15:04:50 -07:00
Oz Linden 9be58e915a merge with 4.0.3-release 2016-04-04 15:53:09 -04:00
Oz Linden 31f3db0291 merge changes for DRTVWR-417 2016-03-16 13:08:06 -04:00
Rider Linden d51a5a615a Merge 2016-03-07 10:24:39 -08:00
Oz Linden c7ebeb8420 merge with El Capitan and packaging fixes 2016-03-07 09:46:02 -05:00
AndreyL ProductEngine b0afd16e42 Merge fix for MAINT-5360 2016-03-07 18:42:17 +02:00
Oz Linden 0c94c3bbf0 MAINT-5360: restore builds for the EDU package 2016-02-26 10:04:47 -05:00
Rider Linden b785e99cff Killing windows line endings. 2016-02-22 12:01:51 -08:00
callum_linden c41b94cd5e Fix @#$@#$$@# windows line endings introduced via Sublime Text copy/paste 2016-01-21 16:20:51 -08:00
Rider Linden de81e34dc6 Merge 2016-01-21 16:12:01 -08:00
callum_linden 0f265ebf72 Backed out changeset 672bd34768c6 2016-01-20 17:15:02 -08:00
callum_linden 73c0b004d1 Backed out changeset 2e77fb7b61b6 2016-01-20 17:13:12 -08:00
callum_linden 65ab91ff46 MAINT-6004 (Fix) Add non blocking file upload picker support 2016-01-20 17:11:50 -08:00
Rider Linden 28921896f1 OPEN-312: Removed add_dependency entries for items listed in target_link_libraries. Superfluous. 2016-01-20 16:08:33 -08:00
Oz Linden bc22e58743 merge changes for 4.0.1-release 2016-01-15 16:55:04 -05:00
callum_linden f37fb8abe1 Pull in updated LLCEFLib with settings option to turn off WebRTC media and modify the setting in viewer code - nuclear fix for MAINT-6060 2016-01-14 17:23:51 -08:00