aboutsummaryrefslogtreecommitdiff
path: root/hwcutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwcutils.cpp')
-rw-r--r--hwcutils.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/hwcutils.cpp b/hwcutils.cpp
index 0091575..53a7d82 100644
--- a/hwcutils.cpp
+++ b/hwcutils.cpp
@@ -159,12 +159,8 @@ int DrmHwcLayer::ImportBuffer(Importer *importer,
if (ret)
return ret;
- ret = gralloc->perform(gralloc, GRALLOC_MODULE_PERFORM_GET_USAGE,
- handle.get(), &gralloc_buffer_usage);
- if (ret) {
- ALOGE("Failed to get usage for buffer %p (%d)", handle.get(), ret);
- return ret;
- }
+ gralloc_buffer_usage = buffer.operator->()->usage;
+
return 0;
}