diff options
Diffstat (limited to 'libhwcomposer/drmfb.cpp')
-rw-r--r-- | libhwcomposer/drmfb.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libhwcomposer/drmfb.cpp b/libhwcomposer/drmfb.cpp index 04c41dd..c0bcc07 100644 --- a/libhwcomposer/drmfb.cpp +++ b/libhwcomposer/drmfb.cpp | |||
@@ -51,10 +51,7 @@ DRMFramebuffer::DRMFramebuffer(int drm_fd, buffer_handle_t handle, bool is_overl | |||
51 | switch (this->format) { | 51 | switch (this->format) { |
52 | case DRM_FORMAT_NV12: | 52 | case DRM_FORMAT_NV12: |
53 | this->bo[1] = gem_handle; | 53 | this->bo[1] = gem_handle; |
54 | |||
55 | this->pitches[0] = ALIGN(img_hnd->iWidth, HW_ALIGN); | ||
56 | this->pitches[1] = this->pitches[0]; | 54 | this->pitches[1] = this->pitches[0]; |
57 | |||
58 | this->offsets[1] = this->pitches[0] * img_hnd->iHeight; | 55 | this->offsets[1] = this->pitches[0] * img_hnd->iHeight; |
59 | break; | 56 | break; |
60 | case DRM_FORMAT_ARGB8888: | 57 | case DRM_FORMAT_ARGB8888: |