summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2019-06-11 16:12:05 -0500
committerAndrew F. Davis2019-06-28 10:32:54 -0500
commit007419d9788ab730971e804e0040ef3710dd21a3 (patch)
tree0f911bd4426c1af36c3b01c3e6d69a45bba8fa27
parentb25437154a4dda4d55a52cfa9b9c72da65f0a2aa (diff)
downloadhardware-ti-am65x-007419d9788ab730971e804e0040ef3710dd21a3.tar.gz
hardware-ti-am65x-007419d9788ab730971e804e0040ef3710dd21a3.tar.xz
hardware-ti-am65x-007419d9788ab730971e804e0040ef3710dd21a3.zip
libhwcomposer: Move plane store to after printing information
Store the plane info in "planeProps" after printing the info so that count can be incremented as part of the assignment, this makes it more clear what we are doing. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--libhwcomposer/display.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhwcomposer/display.cpp b/libhwcomposer/display.cpp
index 270d665..f5f094e 100644
--- a/libhwcomposer/display.cpp
+++ b/libhwcomposer/display.cpp
@@ -46,9 +46,8 @@ void HWCDisplay::setup_composition_pipes()
46 for (auto plane : kdisp->card->get_planes()) { 46 for (auto plane : kdisp->card->get_planes()) {
47 auto possible_crtcs = plane->get_possible_crtcs(); 47 auto possible_crtcs = plane->get_possible_crtcs();
48 if (std::find(possible_crtcs.begin(), possible_crtcs.end(), kdisp->crtc) != possible_crtcs.end()) { 48 if (std::find(possible_crtcs.begin(), possible_crtcs.end(), kdisp->crtc) != possible_crtcs.end()) {
49 planeProps[count].plane = plane; 49 ALOGI("Overlay %d: plane_id: %d", count, plane->id());
50 ALOGI("Overlay %d: plane_id: %d", count, planeProps[count].plane->id()); 50 planeProps[count++].plane = plane;
51 count++;
52 } 51 }
53 } 52 }
54} 53}