diff options
| author | 2017-10-15 03:43:56 +0000 | |
|---|---|---|
| committer | 2017-10-15 03:43:56 +0000 | |
| commit | 3a566dd1e145353e6acc639f5862e098762bee0c (patch) | |
| tree | 02bdb38fbced6eb6d691f09cf39d93e905efa884 /libs/ui/GraphicBufferMapper.cpp | |
| parent | b002413fafbe9b3f7bf63ffa15f0d0d10256210b (diff) | |
| parent | c4ebf5bbab849840aae999044d0732ccdab98575 (diff) | |
Merge "Use -Werror in frameworks/native/libs/gui and ui"
am: c4ebf5bbab
Change-Id: Ia99830d3c2ffe68a05db21c56364f3fcd1965ac1
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) { |