Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ private void initialize(Context aContext) {

mFoveatedAppRadio = findViewById(R.id.foveated_app_radio);
mFoveatedWebVRRadio = findViewById(R.id.foveated_webvr_radio);
if (BuildConfig.FLAVOR_platform == "oculusvr" ||
BuildConfig.FLAVOR_platform == "wavevr") {
if (DeviceType.isOculusBuild() || DeviceType.isWaveBuild()) {
mFoveatedAppRadio.setVisibility(View.VISIBLE);
// Uncomment this when Foveated Rendering for WebVR makes more sense
// mFoveatedWebVRRadio.setVisibility(View.VISIBLE);
Expand Down Expand Up @@ -316,7 +315,7 @@ private void setFoveatedLevel(RadioGroupSetting aSetting, int checkedId, boolean
if (doApply) {
mWidgetManager.updateFoveatedLevel();
// "WaveVR WVR_RenderFoveation(false) doesn't work properly, we need to restart."
if (level == 0 && BuildConfig.FLAVOR_platform == "wavevr") {
if (level == 0 && DeviceType.isWaveBuild()) {
showRestartDialog();
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ JNI_METHOD(void, runCallbackNative)
}

JNI_METHOD(void, setCPULevelNative)
(JNIEnv*, jobject, int aCPULevel) {
(JNIEnv*, jobject, jint aCPULevel) {
crow::BrowserWorld::Instance().SetCPULevel(static_cast<crow::device::CPULevel>(aCPULevel));
}

Expand Down