summaryrefslogtreecommitdiff
path: root/libs/ui/GraphicBufferMapper.cpp
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2017-10-15 03:53:28 +0000
committer android-build-merger <android-build-merger@google.com> 2017-10-15 03:53:28 +0000
commit14ac77cd1e6b002db0f3873959004bdc6cdb3deb (patch)
tree66d152be2bfa017ff26ae143cccd18c4f94b8f4d /libs/ui/GraphicBufferMapper.cpp
parent9b35a97f3a603716a14d6f9fdf0bded54c5721f7 (diff)
parent3a566dd1e145353e6acc639f5862e098762bee0c (diff)
Merge "Use -Werror in frameworks/native/libs/gui and ui" am: c4ebf5bbab
am: 3a566dd1e1 Change-Id: I587295b82d5638e1b76d062f1374b49fc0214867
Diffstat (limited to 'libs/ui/GraphicBufferMapper.cpp')
-rw-r--r--libs/ui/GraphicBufferMapper.cpp23
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)
{