| Index: chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| index d1651a56f04ed41c054a3d62d9ac52991ad8c0f7..4ed691a93cc894c83b28809237952bf18e246741 100644
|
| --- a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| +++ b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
|
| @@ -129,12 +129,27 @@ scene.Scene = class {
|
| delete this.animations[id];
|
| }
|
|
|
| + /**
|
| + * Set the background color of the scene.
|
| + * @param {{r: number, b: number, g: number, a: number}} color
|
| + */
|
| setBackgroundColor(color) {
|
| this.commands.push(
|
| {'type': api.Command.UPDATE_BACKGROUND, 'data': {'color': color}});
|
| }
|
|
|
| /**
|
| + * Set the radius of background-bounding sphere.
|
| + * @param {number} distance
|
| + */
|
| + setBackgroundDistance(distance) {
|
| + this.commands.push({
|
| + 'type': api.Command.UPDATE_BACKGROUND,
|
| + 'data': {'distance': distance}
|
| + });
|
| + }
|
| +
|
| + /**
|
| * Purge all elements in the scene.
|
| */
|
| purge() {
|
|
|