From 2182efaf7c6bbc7aa7e48b4b08da6edbda847639 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 6 Apr 2021 10:57:30 -0700 Subject: [PATCH] Change values of DisplayMode enum Summary: Changing back the values of DisplayMode, visible is the default value, it should be 0 changelog: [internal] internal Reviewed By: ShikaSD Differential Revision: D27596595 fbshipit-source-id: e5a17e22dc04d380f584bbb816106ab7d3388875 --- .../react/renderer/scheduler/SurfaceHandler.h | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) 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, }; /*