diff options
| author | 2017-10-15 06:16:22 +0000 | |
|---|---|---|
| committer | 2017-10-15 06:16:22 +0000 | |
| commit | a039340cacb0621c9bae44d5efd52aa50e71becc (patch) | |
| tree | befb75711996d0f72845f2b85c2ce3b68b7991c6 /libs/gui/Surface.cpp | |
| parent | ab5e67a5528555da0f9c3bde8b8bbd2bc38838d2 (diff) | |
| parent | 6d560a52fceb9a8efc20f9a8b80e72558a1b2d3f (diff) | |
Merge "Use -Werror in frameworks/native/libs/gui and ui" am: c4ebf5bbab am: 3a566dd1e1 am: 14ac77cd1e
am: 6d560a52fc
Change-Id: I6b612a1fff0da31b16c1121d0f3d08abf407336c
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 6c9d88b599..e9393831c7 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; |