OSDN Git Service

drm_hwcomposer: only check the composition after a geometry change
[android-x86/external-drm_hwcomposer.git] / drmdisplaycomposition.h
index 9be5fdd..3c94e6b 100644 (file)
@@ -17,8 +17,8 @@
 #ifndef ANDROID_DRM_DISPLAY_COMPOSITION_H_
 #define ANDROID_DRM_DISPLAY_COMPOSITION_H_
 
-#include "drmhwcomposer.h"
 #include "drmcrtc.h"
+#include "drmhwcomposer.h"
 #include "drmplane.h"
 #include "glworker.h"
 #include "importer.h"
@@ -100,6 +100,10 @@ class DrmDisplayComposition {
     return composition_planes_;
   }
 
+  bool geometry_changed() const {
+    return geometry_changed_;
+  }
+
   uint64_t frame_no() const {
     return frame_no_;
   }