aboutsummaryrefslogtreecommitdiff
path: root/compositor/Planner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compositor/Planner.cpp')
-rw-r--r--compositor/Planner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/compositor/Planner.cpp b/compositor/Planner.cpp
index fb6a8c3..b6f10d2 100644
--- a/compositor/Planner.cpp
+++ b/compositor/Planner.cpp
@@ -45,7 +45,7 @@ std::vector<DrmPlane *> Planner::GetUsablePlanes(
int Planner::PlanStage::ValidatePlane(DrmPlane *plane, DrmHwcLayer *layer) {
int ret = 0;
- uint64_t blend;
+ uint64_t blend = UINT64_MAX;
if ((plane->rotation_property().id() == 0) &&
layer->transform != DrmHwcTransform::kIdentity) {
@@ -122,7 +122,7 @@ int PlanStageProtected::ProvisionPlanes(
std::vector<DrmCompositionPlane> *composition,
std::map<size_t, DrmHwcLayer *> &layers, DrmCrtc *crtc,
std::vector<DrmPlane *> *planes) {
- int ret;
+ int ret = 0;
for (auto i = layers.begin(); i != layers.end();) {
if (!i->second->protected_usage()) {
++i;