diff options
| author | 2018-08-07 16:51:26 +0000 | |
|---|---|---|
| committer | 2018-08-07 16:51:26 +0000 | |
| commit | b7d3be2e53ea637949999166683a45e596d9e54a (patch) | |
| tree | 1af92a82f2229c9af52e884f95d713bcd7ea13ed /libs/gui/DisplayEventReceiver.cpp | |
| parent | 16b9f38d2245028256954490458971efe65af329 (diff) | |
| parent | db6d295873dcb494f6fde062158a5c91af961232 (diff) | |
Merge "Merge Android Pie into master"
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
| -rw-r--r-- | libs/gui/DisplayEventReceiver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/gui/DisplayEventReceiver.cpp b/libs/gui/DisplayEventReceiver.cpp index f5cf1c4d5a..1757ec1cd3 100644 --- a/libs/gui/DisplayEventReceiver.cpp +++ b/libs/gui/DisplayEventReceiver.cpp @@ -34,9 +34,9 @@ namespace android { DisplayEventReceiver::DisplayEventReceiver(ISurfaceComposer::VsyncSource vsyncSource) { sp<ISurfaceComposer> sf(ComposerService::getComposerService()); - if (sf != nullptr) { + if (sf != NULL) { mEventConnection = sf->createDisplayEventConnection(vsyncSource); - if (mEventConnection != nullptr) { + if (mEventConnection != NULL) { mDataChannel = std::make_unique<gui::BitTube>(); mEventConnection->stealReceiveChannel(mDataChannel.get()); } @@ -47,13 +47,13 @@ DisplayEventReceiver::~DisplayEventReceiver() { } status_t DisplayEventReceiver::initCheck() const { - if (mDataChannel != nullptr) + if (mDataChannel != NULL) return NO_ERROR; return NO_INIT; } int DisplayEventReceiver::getFd() const { - if (mDataChannel == nullptr) + if (mDataChannel == NULL) return NO_INIT; return mDataChannel->getFd(); @@ -63,7 +63,7 @@ status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { if (int32_t(count) < 0) return BAD_VALUE; - if (mEventConnection != nullptr) { + if (mEventConnection != NULL) { mEventConnection->setVsyncRate(count); return NO_ERROR; } @@ -71,7 +71,7 @@ status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { } status_t DisplayEventReceiver::requestNextVsync() { - if (mEventConnection != nullptr) { + if (mEventConnection != NULL) { mEventConnection->requestNextVsync(); return NO_ERROR; } |