Merge "drm_hwcomposer: Add glworker" into mnc-dev
diff --git a/drmproperty.cpp b/drmproperty.cpp
index 6dca12e..378e3a2 100644
--- a/drmproperty.cpp
+++ b/drmproperty.cpp
@@ -69,6 +69,9 @@
     type_ = DRM_PROPERTY_TYPE_ENUM;
   else if (flags_ & DRM_MODE_PROP_OBJECT)
     type_ = DRM_PROPERTY_TYPE_OBJECT;
+  else if (flags_ & DRM_MODE_PROP_BLOB)
+    type_ = DRM_PROPERTY_TYPE_BLOB;
+
 }
 
 uint32_t DrmProperty::id() const {
@@ -80,6 +83,11 @@
 }
 
 int DrmProperty::value(uint64_t *value) const {
+  if (type_ == DRM_PROPERTY_TYPE_BLOB) {
+    *value = value_;
+    return 0;
+  }
+
   if (values_.size() == 0)
     return -ENOENT;
 
diff --git a/drmproperty.h b/drmproperty.h
index a60ade3..96e8c20 100644
--- a/drmproperty.h
+++ b/drmproperty.h
@@ -28,6 +28,7 @@
   DRM_PROPERTY_TYPE_INT,
   DRM_PROPERTY_TYPE_ENUM,
   DRM_PROPERTY_TYPE_OBJECT,
+  DRM_PROPERTY_TYPE_BLOB,
   DRM_PROPERTY_TYPE_INVALID,
 };