summaryrefslogtreecommitdiff
path: root/libs/gui/DisplayEventReceiver.cpp
diff options
context:
space:
mode:
author Xin Li <delphij@google.com> 2018-08-07 16:51:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-08-07 16:51:26 +0000
commitb7d3be2e53ea637949999166683a45e596d9e54a (patch)
tree1af92a82f2229c9af52e884f95d713bcd7ea13ed /libs/gui/DisplayEventReceiver.cpp
parent16b9f38d2245028256954490458971efe65af329 (diff)
parentdb6d295873dcb494f6fde062158a5c91af961232 (diff)
Merge "Merge Android Pie into master"
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
-rw-r--r--libs/gui/DisplayEventReceiver.cpp12
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;
}