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

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

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Revert FrameView.cpp change, re-enable typemap workaround. 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: 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..35d67039d4636ded2264dac47520e5efdb8ec1b7 100644
--- a/device/vr/android/gvr/gvr_delegate.h
+++ b/device/vr/android/gvr/gvr_delegate.h
@@ -10,6 +10,11 @@
#include "device/vr/vr_service.mojom.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
+namespace gpu {
+class Mailbox;
+class SyncToken;
+}
+
namespace device {
constexpr gvr::Sizei kInvalidRenderTargetSize = {0, 0};
@@ -17,10 +22,14 @@ 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::Mailbox& mailbox,
+ const gpu::SyncToken& sync_token,
+ mojom::VRSubmitFrameClientPtr) = 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,

Powered by Google App Engine
This is Rietveld 408576698