summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2017-04-03 17:51:49 -0700
committerMathias Agopian <mathias@google.com>2017-04-03 17:51:49 -0700
commit56085c1fa6d3973d1bdb187e8271023004d355ed (patch)
treeeea8a57107e928799fe8994efbe89a8518302be8
parenta96e082acbc128f06be3e9d71ed093f45744522d (diff)
downloadhwcomposer-56085c1fa6d3973d1bdb187e8271023004d355ed.tar.gz
Remove useless GraphicBuffer() constructor
Test: compiled & run Bug: 36869708 Change-Id: If83078847fb3516ae4a972e19bc788007090b585
-rw-r--r--merrifield/test/nv12_ved_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/merrifield/test/nv12_ved_test.cpp b/merrifield/test/nv12_ved_test.cpp
index 7fb5b36..7753eb3 100644
--- a/merrifield/test/nv12_ved_test.cpp
+++ b/merrifield/test/nv12_ved_test.cpp
@@ -117,7 +117,7 @@ int main(int argc, char **argv) {
return 0;
if (anb == NULL)
return 0;
- sp < GraphicBuffer > buf(new GraphicBuffer(anb, false));
+ sp <GraphicBuffer> buf(GraphicBuffer::from(anb));
//if (anw->lockBuffer(anw.get(), buf->getNativeBuffer()) != NO_ERROR)
// return 0;
buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**) (&img));