diff options
| author | 2017-10-15 04:23:05 +0000 | |
|---|---|---|
| committer | 2017-10-15 04:23:05 +0000 | |
| commit | 6d560a52fceb9a8efc20f9a8b80e72558a1b2d3f (patch) | |
| tree | 09ac92840202aad6f879b3031803d6df53a439be /libs/ui/GraphicBufferMapper.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/ui/GraphicBufferMapper.cpp')
| -rw-r--r-- | libs/ui/GraphicBufferMapper.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libs/ui/GraphicBufferMapper.cpp b/libs/ui/GraphicBufferMapper.cpp index 163432821f..d85448968a 100644 --- a/libs/ui/GraphicBufferMapper.cpp +++ b/libs/ui/GraphicBufferMapper.cpp @@ -129,29 +129,6 @@ status_t GraphicBufferMapper::lockAsync(buffer_handle_t handle, return static_cast<status_t>(error); } -static inline bool isValidYCbCrPlane(const android_flex_plane_t& plane) { - if (plane.bits_per_component != 8) { - ALOGV("Invalid number of bits per component: %d", - plane.bits_per_component); - return false; - } - if (plane.bits_used != 8) { - ALOGV("Invalid number of bits used: %d", plane.bits_used); - return false; - } - - bool hasValidIncrement = plane.h_increment == 1 || - (plane.component != FLEX_COMPONENT_Y && plane.h_increment == 2); - hasValidIncrement = hasValidIncrement && plane.v_increment > 0; - if (!hasValidIncrement) { - ALOGV("Invalid increment: h %d v %d", plane.h_increment, - plane.v_increment); - return false; - } - - return true; -} - status_t GraphicBufferMapper::lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) { |