diff --git a/ReactCommon/react/renderer/scheduler/SurfaceHandler.h b/ReactCommon/react/renderer/scheduler/SurfaceHandler.h index 69485e75639..c8c16bff63c 100644 --- a/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +++ b/ReactCommon/react/renderer/scheduler/SurfaceHandler.h @@ -62,22 +62,11 @@ class SurfaceHandler final { * mounted (on not) on the screen. */ enum class DisplayMode { - /* - * The surface is `Hidden`. All previously mounted visual side-effects - * will be unmounted, and all new (committed after switching to the mode) - * visual side-effects will *not* be mounted on the screen until the mode is - * switched back to `normal`. - * - * The mode can be used for temporarily freeing computing resources of - * off-the-screen surfaces. - */ - Hidden = 0, - /* * The surface is running normally. All visual side-effects will be rendered * on the screen. */ - Visible = 1, + Visible = 0, /* * The surface is `Suspended`. All new (committed after switching to the @@ -88,7 +77,18 @@ class SurfaceHandler final { * The surface will be prepared without spending computing resources * on mounting, and then can be instantly mounted if needed. */ - Suspended = 2, + Suspended = 1, + + /* + * The surface is `Hidden`. All previously mounted visual side-effects + * will be unmounted, and all new (committed after switching to the mode) + * visual side-effects will *not* be mounted on the screen until the mode is + * switched back to `normal`. + * + * The mode can be used for temporarily freeing computing resources of + * off-the-screen surfaces. + */ + Hidden = 2, }; /*