Merge branch 'master' of https://github.com/highfidelity/hifi into edit-button-to-select-in-pal

This commit is contained in:
howard-stearns 2017-01-05 14:02:44 -08:00
commit c4c1ea9578
4 changed files with 7 additions and 2 deletions

View file

@ -165,6 +165,7 @@ public:
if (newPlugin) {
bool hasVsync = true;
QThread::setPriority(newPlugin->getPresentPriority());
bool wantVsync = newPlugin->wantVsync();
_context->makeCurrent();
#if defined(Q_OS_WIN)

View file

@ -14,6 +14,7 @@
#include <memory>
#include <queue>
#include <QtCore/QThread>
#include <QtCore/QTimer>
#include <QtGui/QImage>
@ -80,6 +81,7 @@ protected:
void updateCompositeFramebuffer();
virtual QThread::Priority getPresentPriority() { return QThread::HighPriority; }
virtual void compositeLayers();
virtual void compositeScene();
virtual void compositeOverlay();

View file

@ -37,7 +37,7 @@ public slots:
* @param {nodeID} nodeID The node or session ID of the user you want to ignore.
* @param {bool} enable True for ignored; false for un-ignored.
*/
void ignore(const QUuid& nodeID, bool ignoreEnabled);
void ignore(const QUuid& nodeID, bool ignoreEnabled = true);
/**jsdoc
* Gets a bool containing whether you have ignored the given Avatar UUID.
@ -52,7 +52,7 @@ public slots:
* @param {nodeID} nodeID The node or session ID of the user you want to mute.
* @param {bool} enable True for enabled; false for disabled.
*/
void personalMute(const QUuid& nodeID, bool muteEnabled);
void personalMute(const QUuid& nodeID, bool muteEnabled = true);
/**jsdoc
* Requests a bool containing whether you have personally muted the given Avatar UUID.

View file

@ -24,6 +24,8 @@ public:
virtual QJsonObject getHardwareStats() const;
protected:
QThread::Priority getPresentPriority() override { return QThread::TimeCriticalPriority; }
bool internalActivate() override;
void hmdPresent() override;
bool isHmdMounted() const override;