summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Fan Xu <fanxu@google.com> 2019-01-14 15:27:40 -0800
committer Fan Xu <fanxu@google.com> 2019-01-14 15:27:40 -0800
commitf6b3dc2a356c3147a8b6525716439c2c773b13a0 (patch)
tree622b556710a6477c25cb5682ec66384f55946688 /libs
parent7ab76b1c7d7d3f667cb58789295f62e7eb9e26c6 (diff)
Remove BufferHubBuffer:Poll function
In the new eventFd design, BufferHubBuffer will only provide with the eventfd itself, and user can decide what to do with it. Therefore, the Poll function is not needed any more. Test: BufferHub_test, GraphicBuffer_test Bug: 118891412 Change-Id: I5f5ff71bcedc20de81f246764e878d81b0768eb1
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/BufferHubBuffer.cpp5
-rw-r--r--libs/ui/include/ui/BufferHubBuffer.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/libs/ui/BufferHubBuffer.cpp b/libs/ui/BufferHubBuffer.cpp
index c70f18823c..87314ecf76 100644
--- a/libs/ui/BufferHubBuffer.cpp
+++ b/libs/ui/BufferHubBuffer.cpp
@@ -319,11 +319,6 @@ bool BufferHubBuffer::IsValid() const {
mMetadata.IsValid() && mBufferClient != nullptr;
}
-// TODO(b/68770788): implement Poll() once we have event fd
-int BufferHubBuffer::Poll(int /* timeoutMs */) {
- return -ENOSYS;
-}
-
native_handle_t* BufferHubBuffer::Duplicate() {
if (mBufferClient == nullptr) {
ALOGE("%s: missing BufferClient!", __FUNCTION__);
diff --git a/libs/ui/include/ui/BufferHubBuffer.h b/libs/ui/include/ui/BufferHubBuffer.h
index 44dfa95e67..c6a4a232d1 100644
--- a/libs/ui/include/ui/BufferHubBuffer.h
+++ b/libs/ui/include/ui/BufferHubBuffer.h
@@ -94,9 +94,6 @@ public:
// current cycle of the usage of the buffer.
int Release();
- // Polls the fd for |timeoutMs| milliseconds (-1 for infinity).
- int Poll(int timeoutMs);
-
// Creates a token that stands for this BufferHubBuffer client and could be used for Import to
// create another BufferHubBuffer. The new BufferHubBuffer will share the same underlying
// gralloc buffer and ashmem region for metadata. Note that the caller owns the token and