diff options
author | Rob Herring <robh@kernel.org> | 2018-05-09 15:18:36 -0500 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-05-30 13:31:41 -0400 |
commit | cff7b1e829c3ee3608146144148b6602e218fbae (patch) | |
tree | eac02dd14f57f71d54fb38fb41c4f0d0d8c1f40d /hwcutils.cpp | |
parent | af0d975665ca68a3396854cd20b18e59002c2ec5 (diff) |
drm_hwcomposer: remove separate_rects
As part of removing GL compositing, separate_rects.cpp is no long
needed. Use hwc_rect_t and hwc_frect_t in places instead of our own
class.
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'hwcutils.cpp')
-rw-r--r-- | hwcutils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hwcutils.cpp b/hwcutils.cpp index 7ba382a..e452bc8 100644 --- a/hwcutils.cpp +++ b/hwcutils.cpp @@ -106,12 +106,11 @@ int DrmHwcLayer::ImportBuffer(Importer *importer) { } void DrmHwcLayer::SetSourceCrop(hwc_frect_t const &crop) { - source_crop = DrmHwcRect<float>(crop.left, crop.top, crop.right, crop.bottom); + source_crop = crop; } void DrmHwcLayer::SetDisplayFrame(hwc_rect_t const &frame) { - display_frame = - DrmHwcRect<int>(frame.left, frame.top, frame.right, frame.bottom); + display_frame = frame; } void DrmHwcLayer::SetTransform(int32_t sf_transform) { |