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

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

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Fix SubmitFrameClient corner case, fix unittest compilation. Created 3 years, 9 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
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 deb1f1fefdd8dffe017701b027c1dfb4aff4c912..27e439b4f8d36448cccf79983a0cdb5a0986f6ac 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -32,6 +32,10 @@ namespace content {
class WebContents;
}
+namespace gpu {
+struct MailboxHolder;
+}
+
namespace ui {
class WindowAndroid;
}
@@ -169,7 +173,7 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
static device::mojom::VRPosePtr VRPosePtrFromGvrPose(gvr::Mat4f head_mat);
static device::mojom::VRDisplayInfoPtr CreateVRDisplayInfo(
gvr::GvrApi* gvr_api,
- gvr::Sizei compositor_size,
+ gvr::Sizei recommended_size,
uint32_t device_id);
private:
@@ -186,10 +190,12 @@ class VrShell : public device::GvrDelegate, content::WebContentsObserver {
// device::GvrDelegate implementation
void SetWebVRSecureOrigin(bool secure_origin) override;
- void SubmitWebVRFrame() override;
+ void SubmitWebVRFrame(int16_t frame_index,
+ const gpu::MailboxHolder& mailbox) override;
void UpdateWebVRTextureBounds(int16_t frame_index,
const gvr::Rectf& left_bounds,
- const gvr::Rectf& right_bounds) override;
+ const gvr::Rectf& right_bounds,
+ const gvr::Sizei& source_size) override;
void OnVRVsyncProviderRequest(
device::mojom::VRVSyncProviderRequest request) override;
void UpdateVSyncInterval(int64_t timebase_nanos,

Powered by Google App Engine
This is Rietveld 408576698