Skip to content

Commit

Permalink
Set the name of the main render thread (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin committed Apr 3, 2019
1 parent 945a78b commit 5cfa9ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/src/main/cpp/BrowserWorld.cpp
Expand Up @@ -45,6 +45,7 @@
#include "vrb/TextureCache.h"
#include "vrb/TextureSurface.h"
#include "vrb/TextureCubeMap.h"
#include "vrb/ThreadUtils.h"
#include "vrb/Toggle.h"
#include "vrb/Transform.h"
#include "vrb/VertexArray.h"
Expand Down Expand Up @@ -88,7 +89,7 @@ typedef std::shared_ptr<SurfaceObserver> SurfaceObserverPtr;
class SurfaceObserver : public SurfaceTextureObserver {
public:
SurfaceObserver(crow::BrowserWorldWeakPtr& aWorld);
~SurfaceObserver();
~SurfaceObserver() override;
void SurfaceTextureCreated(const std::string& aName, GLuint aHandle, jobject aSurfaceTexture) override;
void SurfaceTextureHandleUpdated(const std::string aName, GLuint aHandle) override;
void SurfaceTextureDestroyed(const std::string& aName) override;
Expand Down Expand Up @@ -538,6 +539,7 @@ BrowserWorld::InitializeJava(JNIEnv* aEnv, jobject& aActivity, jobject& aAssetMa
});
m.modelsLoaded = true;
}
SetThreadName("VRB Render");
}

void
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/vrb

0 comments on commit 5cfa9ad

Please sign in to comment.