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

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

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Rebase to 11e28fd6b9380b77273db51ef0b6ccc7ea341944 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
« no previous file with comments | « device/vr/DEPS ('k') | device/vr/android/gvr/gvr_device.h » ('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 ed31de3388bd346dabdc6b2aff14ca2fb5d7ac7a..0491d756d1f5a6fd690ffac053345ac273c05f8e 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -12,15 +12,15 @@
namespace device {
-constexpr gvr::Sizei kInvalidRenderTargetSize = {0, 0};
-
class DEVICE_VR_EXPORT GvrDelegate {
public:
virtual void SetWebVRSecureOrigin(bool secure_origin) = 0;
- virtual void SubmitWebVRFrame() = 0;
+ virtual void SubmitWebVRFrame(int16_t frame_index,
+ const gpu::MailboxHolder& mailbox) = 0;
virtual void UpdateWebVRTextureBounds(int16_t frame_index,
const gvr::Rectf& left_bounds,
- const gvr::Rectf& right_bounds) = 0;
+ const gvr::Rectf& right_bounds,
+ const gvr::Sizei& source_size) = 0;
virtual void OnVRVsyncProviderRequest(
mojom::VRVSyncProviderRequest request) = 0;
virtual void UpdateVSyncInterval(int64_t timebase_nanos,
@@ -44,6 +44,7 @@ class DEVICE_VR_EXPORT GvrDelegateProvider {
virtual void SetDeviceProvider(GvrDeviceProvider* device_provider) = 0;
virtual void ClearDeviceProvider() = 0;
virtual void RequestWebVRPresent(
+ mojom::VRSubmitFrameClientPtr submit_client,
const base::Callback<void(bool)>& callback) = 0;
virtual void ExitWebVRPresent() = 0;
virtual GvrDelegate* GetDelegate() = 0;
« no previous file with comments | « device/vr/DEPS ('k') | device/vr/android/gvr/gvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698