diff options
author | Haixia Shi <hshi@chromium.org> | 2015-11-24 12:42:45 -0800 |
---|---|---|
committer | Haixia Shi <hshi@chromium.org> | 2015-11-24 12:42:45 -0800 |
commit | 6afbb6aef0c89b8e737624c4baa1208aaec6f48e (patch) | |
tree | c6d66ca315cf7dd67f475c79aee91e928a54b20a /drmdisplaycomposition.h | |
parent | d0cff784a82bbb63047420da20fef7d3739715bd (diff) |
drm_hwcomposer: only check the composition after a geometry change
Do not check the composition with kernel for every frame. We are currently
using synchronous atomic ioctl calls, so all test-only calls are serialized
with the actual commits.
BUG=25866352
TEST=same test procedure as crosbug.com/p/47206
Change-Id: Ia423243c279fc677ff6213115a8f20efa40c235e
Diffstat (limited to 'drmdisplaycomposition.h')
-rw-r--r-- | drmdisplaycomposition.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drmdisplaycomposition.h b/drmdisplaycomposition.h index 9be5fdd..3c94e6b 100644 --- a/drmdisplaycomposition.h +++ b/drmdisplaycomposition.h @@ -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_; } |