mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 03:08:48 +08:00
Summary: A couple of small changes: 1. `onEnqueue` was decoupled from `enqueueEvent` for easier and unified overiding in subclasses (other methods will call `onEnqueue` soon); 2. `flushEvents` was decoupled from `onBeat` (we will put more stuff into `onBeat` soon). Reviewed By: mdvacca Differential Revision: D14205769 fbshipit-source-id: 574c2b2caaa6432bc7782b2f3bc147fa1fb82bd3
22 lines
435 B
C++
22 lines
435 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.
|
|
*/
|
|
|
|
#include "UnbatchedEventQueue.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
void UnbatchedEventQueue::onEnqueue() const {
|
|
EventQueue::onEnqueue();
|
|
|
|
eventBeat_->request();
|
|
eventBeat_->induce();
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|