summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Aleks Rozman <arozman@google.com> 2018-08-04 22:15:13 -0700
committer Aleks Rozman <arozman@google.com> 2018-08-06 18:53:41 +0000
commit7274173ba52f6a40f14b2c064b9651ddabf7166d (patch)
tree3a5eb7b18cedad31e2b74751e0bbf516a44b551a /libs/gui/SurfaceControl.cpp
parentf5a824e83d2af4f538f3d88d03a31e5c5c6a2c26 (diff)
Replace magic 0 with enum in surfacecontrol
Test: m Fixes: nothing Change-Id: Iab9348dcf57bfb72069655ec9fc7f443d30f3e1b
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
-rw-r--r--libs/gui/SurfaceControl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp
index 19ad31b8c7..3a6dfdada5 100644
--- a/libs/gui/SurfaceControl.cpp
+++ b/libs/gui/SurfaceControl.cpp
@@ -102,14 +102,14 @@ bool SurfaceControl::isSameSurface(
status_t SurfaceControl::clearLayerFrameStats() const {
status_t err = validate();
- if (err < 0) return err;
+ if (err != NO_ERROR) return err;
const sp<SurfaceComposerClient>& client(mClient);
return client->clearLayerFrameStats(mHandle);
}
status_t SurfaceControl::getLayerFrameStats(FrameStats* outStats) const {
status_t err = validate();
- if (err < 0) return err;
+ if (err != NO_ERROR) return err;
const sp<SurfaceComposerClient>& client(mClient);
return client->getLayerFrameStats(mHandle, outStats);
}