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

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

Issue 2508703002: WebVR: Use content CVC size for compositor rendering (Closed)
Patch Set: Undo VrShellImpl changes, use native-side values. Created 4 years, 1 month 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
Index: chrome/browser/android/vr_shell/vr_shell_delegate.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.cc b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
index 04afe1c512bfee1c83ee5d2d9235c04a5978e9cf..0c9be96911c3da3b22115300bc2994d9848a60de 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
@@ -31,6 +31,9 @@ class GvrNonPresentingDelegate : public device::GvrDelegate {
const gvr::Rectf& right_bounds) override {}
void SetGvrPoseForWebVr(const gvr::Mat4f& pose,
uint32_t pose_index) override {}
+ void SetWebVRRenderSurfaceSize(int width, int height) override {}
+ gvr::Sizei GetWebVRCompositorSurfaceSize() override {
+ return gvr::Sizei{2048, 1024}; }
mthiesse 2016/11/16 21:30:41 More magic numbers
klausw 2016/11/16 23:37:39 Replaced with kFallbackRenderTargetSize.
gvr::GvrApi* gvr_api() override { return gvr_api_.get(); }
base::WeakPtr<GvrNonPresentingDelegate> GetWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();

Powered by Google App Engine
This is Rietveld 408576698