mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
09cb12c26c
Summary: Changelog: [internal] EventPriority is backed by int, passing it by reference doesn't provide any performance benefits. Quite contrary, it can make it slower because of indirectness (in our case it is probably negligible). Reviewed By: mdvacca Differential Revision: D27938600 fbshipit-source-id: 37d1312627dd5a8f9012dfb35d21afe716a16ad7
27 lines
546 B
C++
27 lines
546 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
enum class EventPriority {
|
|
SynchronousUnbatched,
|
|
SynchronousBatched,
|
|
AsynchronousUnbatched,
|
|
AsynchronousBatched,
|
|
|
|
Sync = SynchronousUnbatched,
|
|
Work = SynchronousBatched,
|
|
Interactive = AsynchronousUnbatched,
|
|
Deferred = AsynchronousBatched
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|