diff options
| author | 2017-10-15 06:16:22 +0000 | |
|---|---|---|
| committer | 2017-10-15 06:16:22 +0000 | |
| commit | a039340cacb0621c9bae44d5efd52aa50e71becc (patch) | |
| tree | befb75711996d0f72845f2b85c2ce3b68b7991c6 /libs/ui/GraphicBufferMapper.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/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 672dc361a1..2cac2874a8 100644 --- a/libs/ui/GraphicBufferMapper.cpp +++ b/libs/ui/GraphicBufferMapper.cpp @@ -154,29 +154,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) { |