summaryrefslogtreecommitdiff
path: root/hwc2/hwc2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc2/hwc2.cpp')
-rw-r--r--hwc2/hwc2.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/hwc2/hwc2.cpp b/hwc2/hwc2.cpp
index 036f488..fde75d7 100644
--- a/hwc2/hwc2.cpp
+++ b/hwc2/hwc2.cpp
@@ -80,16 +80,18 @@ hwc2_error_t accept_display_changes(hwc2_device_t* /*device*/,
return HWC2_ERROR_NONE;
}
-hwc2_error_t create_layer(hwc2_device_t* /*device*/, hwc2_display_t /*display*/,
- hwc2_layer_t* /*out_layer*/)
+hwc2_error_t create_layer(hwc2_device_t *device, hwc2_display_t display,
+ hwc2_layer_t *out_layer)
{
- return HWC2_ERROR_NONE;
+ hwc2_dev *dev = reinterpret_cast<hwc2_context *>(device)->hwc2_dev;
+ return dev->create_layer(display, out_layer);
}
-hwc2_error_t destroy_layer(hwc2_device_t* /*device*/,
- hwc2_display_t /*display*/, hwc2_layer_t /*layer*/)
+hwc2_error_t destroy_layer(hwc2_device_t *device, hwc2_display_t display,
+ hwc2_layer_t layer)
{
- return HWC2_ERROR_NONE;
+ hwc2_dev *dev = reinterpret_cast<hwc2_context *>(device)->hwc2_dev;
+ return dev->destroy_layer(display, layer);
}
hwc2_error_t get_active_config(hwc2_device_t* /*device*/,