Skip to content

Commit

Permalink
Deprecate VIRTUAL_REALITY from Starboard
Browse files Browse the repository at this point in the history
b/150410605
  • Loading branch information
kaidokert committed Mar 27, 2024
1 parent 92151b6 commit bd3c6c5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 28 deletions.
9 changes: 0 additions & 9 deletions cobalt/layout/replaced_box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -739,21 +739,12 @@ void ReplacedBox::RenderAndAnimateContentWithMapToMesh(
filter_node =
new FilterNode(MapToMeshFilter(stereo_mode, builder), animate_node);

#if !SB_HAS(VIRTUAL_REALITY)
// Attach a 3D camera to the map-to-mesh node, so the rendering of its
// content can be transformed.
border_node_builder->AddChild(
used_style_provider()->attach_camera_node_function().Run(
filter_node, mtm_function->horizontal_fov_in_radians(),
mtm_function->vertical_fov_in_radians()));
#else
// Camera node unnecessary in VR, since the 3D scene is completely
// immersive, and the whole render tree is placed within it and subject to
// camera transforms, not just the map-to-mesh node.
// TODO: Reconcile both paths with respect to this if Cobalt adopts a global
// camera or a document-wide notion of 3D space layout.
border_node_builder->AddChild(filter_node);
#endif
}

void ReplacedBox::RenderAndAnimateContentWithLetterboxing(
Expand Down
7 changes: 0 additions & 7 deletions cobalt/site/docs/reference/starboard/configuration-public.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ Book: /youtube/cobalt/_book.yaml
| **`SB_HAS_QUIRK_HASH_FILE_NAME`**<br><br>On some platforms the file system cannot access extremely long file names. We do not need this feature on stub.<br><br>By default, this property is undefined. |


## Graphics Configuration

| Properties |
| :--- |
| **`SB_HAS_VIRTUAL_REALITY`**<br><br>The default value in the Stub implementation is `1` |


## I/O Configuration

| Properties |
Expand Down
3 changes: 3 additions & 0 deletions starboard/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ since the version previous to it.

## Version 16

## Removed `VIRTUAL_REALITY` configuration
This configuration is unused by Cobalt.

### Removed configuration for `abort_on_allocation_failure`
This flag has no effect in builds, and checked allocations are removed
in Starboard 16.
Expand Down
4 changes: 0 additions & 4 deletions starboard/stub/configuration_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@
// We do not need this feature on stub.
#undef SB_HAS_QUIRK_HASH_FILE_NAME

// --- Graphics Configuration ------------------------------------------------

#define SB_HAS_VIRTUAL_REALITY 1

// --- I/O Configuration -----------------------------------------------------

// Whether the current platform implements the on screen keyboard interface.
Expand Down
4 changes: 0 additions & 4 deletions starboard/win/shared/configuration_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
// the current linking unit.
#define SB_IMPORT_PLATFORM

// --- Graphics Configuration ------------------------------------------------

#define SB_HAS_VIRTUAL_REALITY 0

// --- I/O Configuration -----------------------------------------------------

// Whether the current platform supports on screen keyboard.
Expand Down
4 changes: 0 additions & 4 deletions starboard/xb1/shared/configuration_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
// the current linking unit.
#define SB_IMPORT_PLATFORM __declspec(dllimport)

// --- Graphics Configuration ------------------------------------------------

#define SB_HAS_VIRTUAL_REALITY 0

// --- I/O Configuration -----------------------------------------------------

// Whether the current platform has speech synthesis.
Expand Down

0 comments on commit bd3c6c5

Please sign in to comment.