More CR comments; rename function

This commit is contained in:
Zach Fox 2017-06-15 13:25:16 -07:00
parent 1088d248e3
commit d7a9354b37
4 changed files with 3 additions and 4 deletions

View file

@ -706,7 +706,7 @@ bool OpenGLDisplayPlugin::setDisplayTexture(const QString& name) {
// Note: it is the caller's responsibility to keep the network texture in cache.
if (name.isEmpty()) {
_displayTexture.reset();
clearPreviewFlag();
onDisplayTextureReset();
return true;
}
auto textureCache = DependencyManager::get<TextureCache>();

View file

@ -58,7 +58,7 @@ public:
}
virtual bool setDisplayTexture(const QString& name) override;
virtual bool clearPreviewFlag() override { return false; };
virtual bool onDisplayTextureReset() { return false; };
QImage getScreenshot(float aspectRatio = 0.0f) const override;
float presentRate() const override;

View file

@ -46,7 +46,7 @@ public:
float stutterRate() const override;
virtual bool clearPreviewFlag() override { _clearPreviewFlag = true; return true; };
virtual bool onDisplayTextureReset() override { _clearPreviewFlag = true; return true; };
protected:
virtual void hmdPresent() = 0;

View file

@ -186,7 +186,6 @@ public:
// Set the texture to display on the monitor and return true, if allowed. Empty string resets.
virtual bool setDisplayTexture(const QString& name) { return false; }
virtual bool clearPreviewFlag() { return false; };
virtual float devicePixelRatio() { return 1.0f; }
// Rate at which we render frames