Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4243)

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2890563003: VR: Update UiSceneManager with audio/video capturing flags (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index 0e6a91adf91dcf06d9001860df9e679d450bbf76..1728f275f21723f827e5d50fcb30fa449cf2f425 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -574,30 +574,18 @@ void VrShell::PollMediaAccessFlag() {
MediaCaptureDevicesDispatcher::GetInstance()
->GetMediaStreamCaptureIndicator();
bool is_capturing_audio = indicator->IsCapturingAudio(web_contents_);
- if (is_capturing_audio != is_capturing_audio_) {
- WaitForGlThread();
- PostToGlThread(FROM_HERE,
- base::Bind(&VrShellGl::SetAudioCapturingWarning,
- gl_thread_->GetVrShellGl(), is_capturing_audio));
- }
+ if (is_capturing_audio != is_capturing_audio_)
+ ui_->SetAudioCapturingIndicator(is_capturing_audio);
is_capturing_audio_ = is_capturing_audio;
bool is_capturing_video = indicator->IsCapturingVideo(web_contents_);
- if (is_capturing_video != is_capturing_video_) {
- WaitForGlThread();
- PostToGlThread(FROM_HERE,
- base::Bind(&VrShellGl::SetVideoCapturingWarning,
- gl_thread_->GetVrShellGl(), is_capturing_video));
- }
+ if (is_capturing_video != is_capturing_video_)
+ ui_->SetVideoCapturingIndicator(is_capturing_video);
is_capturing_video_ = is_capturing_video;
bool is_capturing_screen = indicator->IsBeingMirrored(web_contents_);
- if (is_capturing_screen != is_capturing_screen_) {
- WaitForGlThread();
- PostToGlThread(FROM_HERE,
- base::Bind(&VrShellGl::SetScreenCapturingWarning,
- gl_thread_->GetVrShellGl(), is_capturing_screen));
- }
+ if (is_capturing_screen != is_capturing_screen_)
+ ui_->SetScreenCapturingIndicator(is_capturing_screen);
is_capturing_screen_ = is_capturing_screen;
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698