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

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

Issue 2428383006: Decouple VR Shell DPR and CSS size from Physical Displays. (Closed)
Patch Set: Created 4 years, 2 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 c5fc1b7d55959b062303bff24e218587387e7022..0d9ffd107676920471b4f48c2add789d05c46354 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -89,18 +89,21 @@ class VrShell : public device::GvrDelegate {
gvr::GvrApi* gvr_api() override;
void SetGvrPoseForWebVr(const gvr::Mat4f& pose, uint32_t pose_num) override;
- void ContentSurfaceChanged(
+ void SurfacesChanged(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& object,
- jint width,
- jint height,
- const base::android::JavaParamRef<jobject>& surface);
- void UiSurfaceChanged(
+ const base::android::JavaParamRef<jobject>& content_surface,
+ const base::android::JavaParamRef<jobject>& ui_surface);
+
+ void ContentBoundsChanged(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& object,
- jint width,
- jint height,
- const base::android::JavaParamRef<jobject>& surface);
+ jint width, jint height);
+
+ void UIBoundsChanged(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& object,
+ jint width, jint height);
// Called from non-render thread to queue a callback onto the render thread.
// The render thread checks for callbacks and processes them between frames.
@@ -109,6 +112,9 @@ class VrShell : public device::GvrDelegate {
// Perform a UI action triggered by the javascript API.
void DoUiAction(const UiAction action);
+ void SetContentCssSize(float width, float height, float dpr);
+ void SetUiCssSize(float width, float height, float dpr);
+
private:
virtual ~VrShell();
void LoadUIContent();

Powered by Google App Engine
This is Rietveld 408576698