Fix build break
error: 'class std::vector<char>' has no member named 'data'
Bug: 130246090
Test: make
Change-Id: I39eec3b4d6621067387e48e1481de3cd614b79a1
Signed-off-by: Roman Kiryanov <rkir@google.com>
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp
index 851f3b0..4f3f974 100644
--- a/system/gralloc/gralloc.cpp
+++ b/system/gralloc/gralloc.cpp
@@ -389,7 +389,7 @@
if ((doLocked && is_rgb_format) ||
(!grdma && (doLocked || !is_rgb_format))) {
convertedBuf.resize(rgbSz);
- to_send = convertedBuf.data();
+ to_send = &convertedBuf.front();
send_buffer_size = rgbSz;
}