commit | f543e5a7110868647e6dc16788b72ad7de80fa38 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Mon Apr 03 17:16:41 2017 -0700 |
committer | Mathias Agopian <mathias@google.com> | Tue Apr 04 14:39:12 2017 -0700 |
tree | bd050a85596a75568cd6d0c5364f745220927c96 | |
parent | 53ed7bfca150e51a2458a1db6c86fc99e5b7afb7 [diff] [blame] |
Remove useless GraphicBuffer() constructor Test: compiled & run Bug: 36869708 Change-Id: I83d80a1cde28671135b7716a434c503aeefcec46
diff --git a/libs/gui/tests/CpuConsumer_test.cpp b/libs/gui/tests/CpuConsumer_test.cpp index 9c2e838..5848c74 100644 --- a/libs/gui/tests/CpuConsumer_test.cpp +++ b/libs/gui/tests/CpuConsumer_test.cpp
@@ -490,7 +490,7 @@ ASSERT_TRUE(anb != NULL); - sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); + sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); *stride = buf->getStride(); uint8_t* img = NULL;