diff options
| author | 2017-10-15 04:23:05 +0000 | |
|---|---|---|
| committer | 2017-10-15 04:23:05 +0000 | |
| commit | 6d560a52fceb9a8efc20f9a8b80e72558a1b2d3f (patch) | |
| tree | 09ac92840202aad6f879b3031803d6df53a439be /libs/gui/Surface.cpp | |
| parent | 3db6b7db327cb84035de136559ecf6b299723b94 (diff) | |
| parent | 14ac77cd1e6b002db0f3873959004bdc6cdb3deb (diff) | |
Merge "Use -Werror in frameworks/native/libs/gui and ui" am: c4ebf5bbab am: 3a566dd1e1
am: 14ac77cd1e
Change-Id: I529db9786afca459da51ec886f7e672743038bb9
Diffstat (limited to 'libs/gui/Surface.cpp')
| -rw-r--r-- | libs/gui/Surface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index 5b1c599a13..d9d945dff1 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp @@ -153,7 +153,10 @@ status_t Surface::getDisplayRefreshCycleDuration(nsecs_t* outRefreshDuration) { ATRACE_CALL(); DisplayStatInfo stats; - status_t err = composerService()->getDisplayStats(NULL, &stats); + status_t result = composerService()->getDisplayStats(NULL, &stats); + if (result != NO_ERROR) { + return result; + } *outRefreshDuration = stats.vsyncPeriod; |