Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Reduce false positive performance monitor detection (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored Jul 29, 2019
1 parent aac311f commit 0298c68
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ android {
dimension "platform"
externalNativeBuild {
cmake {
cppFlags " -I" + file("${project.rootDir}/third_party/wavesdk/build/wvr_client/include").absolutePath
cppFlags " -I" + file("${project.rootDir}/third_party/wavesdk/build/wvr_client/include").absolutePath +
" -DWAVEVR"
arguments "-DVR_SDK_LIB=wavevr-lib", "-DWAVEVR=ON"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ private void handlePoorPerformance() {
mWindowWidget.showButtonPrompt(getString(R.string.performance_title), getString(R.string.performance_message), buttons, new GeckoSession.PromptDelegate.ButtonCallback() {
@Override
public void confirm(int button) {
if (button == 0) {
if (button == GeckoSession.PromptDelegate.BUTTON_TYPE_NEGATIVE) {
mPoorPerformanceWhiteList.add(originalUrl);
SessionStore.get().loadUri(originalUrl);
}
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ struct BrowserWorld::State {
splashAnimation = SplashAnimation::Create(create);
monitor = PerformanceMonitor::Create(create);
monitor->AddPerformanceMonitorObserver(std::make_shared<PerformanceObserver>());
#if defined(WAVEVR)
monitor->SetPerformanceDelta(15.0);
#endif
}

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

0 comments on commit 0298c68

Please sign in to comment.