aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2019-04-09 17:59:32 -0700
committerRoman Kiryanov <rkir@google.com>2019-04-12 11:01:09 -0700
commit3624615bc01fd9c3ef81d3324cf6a11ee0cfc630 (patch)
tree6fa6f2db84c56358fef9e5e255dc798693b4b8c4
parent27f0770e31914699c33c7c457e6b409527287e25 (diff)
downloaddevice_generic_goldfish-opengl-3624615bc01fd9c3ef81d3324cf6a11ee0cfc630.tar.gz
device_generic_goldfish-opengl-3624615bc01fd9c3ef81d3324cf6a11ee0cfc630.tar.bz2
device_generic_goldfish-opengl-3624615bc01fd9c3ef81d3324cf6a11ee0cfc630.zip
Fix build break
error: 'class std::vector<char>' has no member named 'data' Bug: 130246090 Test: make Change-Id: I1c7146a6eada5be4aa0678c7a3ddb762d080c981 Merged-In: I39eec3b4d6621067387e48e1481de3cd614b79a1 Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r--system/gralloc/gralloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp
index 19969650..3706bc68 100644
--- a/system/gralloc/gralloc.cpp
+++ b/system/gralloc/gralloc.cpp
@@ -389,7 +389,7 @@ static void updateHostColorBuffer(cb_handle_t* cb,
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;
}