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
This commit is contained in:
Родитель
75c4920a0e
Коммит
2182efaf7c
|
@ -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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче