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

Unified Diff: device/vr/android/gvr/gvr_delegate.h

Issue 2508703002: WebVR: Use content CVC size for compositor rendering (Closed)
Patch Set: Rebase, use more appropriate crbug/655722 for TODOS 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_delegate.h
diff --git a/device/vr/android/gvr/gvr_delegate.h b/device/vr/android/gvr/gvr_delegate.h
index 3b57a77c2ad43d0e15abfcdc87d0c6d0eaba5102..556924720a1e573c23e308b36390e28c4694ba35 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -16,6 +16,8 @@ class GvrApi;
namespace device {
+constexpr gvr::Sizei kFallbackRenderTargetSize = {2048, 1024};
+
class DEVICE_VR_EXPORT GvrDelegate {
public:
virtual void SetWebVRSecureOrigin(bool secure_origin) = 0;
@@ -25,6 +27,8 @@ class DEVICE_VR_EXPORT GvrDelegate {
virtual void SetGvrPoseForWebVr(const gvr::Mat4f& pose,
uint32_t pose_index) = 0;
+ virtual gvr::Sizei GetWebVRCompositorSurfaceSize() = 0;
+ virtual void SetWebVRRenderSurfaceSize(int width, int height) = 0;
virtual gvr::GvrApi* gvr_api() = 0;
};
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | device/vr/android/gvr/gvr_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698