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

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

Issue 2550803002: WebVR: avoid race conditions for partially-initialized display (Closed)
Patch Set: Created 4 years 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 | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('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.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 322b1b1e7e7542039b03260b0f93b1fcc3fc5f5e..819208f3a6a69719ffa68de93d0b3ab7ba85c498 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -167,7 +167,9 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
gvr::Sizei render_size_headlocked_;
// Intended size for the primary render buffer by UI mode.
- gvr::Sizei render_size_primary_webvr_ = device::kFallbackRenderTargetSize;
+ // For WebVR, a size of 0x0 is used to indicate "not yet ready"
+ // to suppress rendering while still initializing.
+ gvr::Sizei render_size_primary_webvr_ = device::kInvalidRenderTargetSize;
gvr::Sizei render_size_primary_vrshell_;
std::queue<base::Callback<void()>> task_queue_;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698