OSDN Git Service

Open the device node with O_CLOEXEC
[android-x86/external-minigbm.git] / cros_gralloc / cros_gralloc_buffer.h
index 2dc4d8b..e6aec91 100644 (file)
@@ -23,7 +23,8 @@ class cros_gralloc_buffer
        int32_t increase_refcount();
        int32_t decrease_refcount();
 
-       int32_t lock(uint64_t flags, uint8_t *addr[DRV_MAX_PLANES]);
+       int32_t lock(const struct rectangle *rect, uint32_t map_flags,
+                    uint8_t *addr[DRV_MAX_PLANES]);
        int32_t unlock();
 
       private:
@@ -38,7 +39,7 @@ class cros_gralloc_buffer
        int32_t lockcount_;
        uint32_t num_planes_;
 
-       struct map_info *lock_data_[DRV_MAX_PLANES];
+       struct mapping *lock_data_[DRV_MAX_PLANES];
 };
 
 #endif