diff options
Diffstat (limited to 'compositor/Planner.h')
-rw-r--r-- | compositor/Planner.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compositor/Planner.h b/compositor/Planner.h index 7c1fe80..3390acb 100644 --- a/compositor/Planner.h +++ b/compositor/Planner.h @@ -52,8 +52,6 @@ class Planner { return plane; } - static int ValidatePlane(DrmPlane *plane, DrmHwcLayer *layer); - // Inserts the given layer:plane in the composition at the back static int Emplace(std::vector<DrmCompositionPlane> *composition, std::vector<DrmPlane *> *planes, @@ -63,7 +61,7 @@ class Planner { std::vector<DrmPlane *> unused_planes; int ret = -ENOENT; while (plane) { - ret = ValidatePlane(plane, layer.second); + ret = plane->IsValidForLayer(layer.second) ? 0 : -EINVAL; if (!ret) break; if (!plane->zpos_property().is_immutable()) |