aboutsummaryrefslogtreecommitdiff
path: root/drmresources.h
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-09-19 09:14:34 -0400
committerSean Paul <seanpaul@chromium.org>2015-10-01 14:11:24 -0400
commit573554106db499d323bea12ff00363b1816f8c8a (patch)
treed9f5fe8cace780a4c44fb964474ca9f9560663b9 /drmresources.h
parent7acc59be7f12ad45b9abfa56c2d21726edf6224e (diff)
downloaddrm_hwcomposer-573554106db499d323bea12ff00363b1816f8c8a.tar.gz
drm_hwcomposer: Process modesets via compositor
This patch queues modeset in the compositor for application on the next frame. This allows us to perform the modeset atomically with the first frame that comes in after the mode is changed. Change-Id: I6bb9edd17bbdd6dbee5c0474f2e43599781cc7a7 Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmresources.h')
-rw-r--r--drmresources.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drmresources.h b/drmresources.h
index 1b40d0e..3ec7d2c 100644
--- a/drmresources.h
+++ b/drmresources.h
@@ -60,6 +60,9 @@ class DrmResources {
int SetDisplayActiveMode(int display, const DrmMode &mode);
int SetDpmsMode(int display, uint64_t mode);
+ int CreatePropertyBlob(void *data, size_t length, uint32_t *blob_id);
+ int DestroyPropertyBlob(uint32_t blob_id);
+
private:
int TryEncoderForDisplay(int display, DrmEncoder *enc);
int GetProperty(uint32_t obj_id, uint32_t obj_type, const char *prop_name,
@@ -67,9 +70,6 @@ class DrmResources {
int CreateDisplayPipe(DrmConnector *connector);
- int CreatePropertyBlob(void *data, size_t length, uint32_t *blob_id);
- int DestroyPropertyBlob(uint32_t blob_id);
-
int fd_;
uint32_t mode_id_;