summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-07-31 19:18:22 -0700
committerMathias Agopian <mathias@google.com>2013-07-31 20:10:10 -0700
commit87f9b877964b7d7db9b59ba45b73b4b1a779ecf8 (patch)
treedc2f14e9e49a01ad4fd13026c6f0edfa87714911 /include
parentb304edb0b1f45ec7d4f10cfbff1b91f50bca86e4 (diff)
downloadframeworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.zip
frameworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.tar.gz
frameworks_native-87f9b877964b7d7db9b59ba45b73b4b1a779ecf8.tar.bz2
remove unused code form GraphicBuffer
Change-Id: I0dd67f1f93f654331e8f17b55730931dbc695ca7
Diffstat (limited to 'include')
-rw-r--r--include/ui/GraphicBuffer.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h
index 8184b7d..3cf628c 100644
--- a/include/ui/GraphicBuffer.h
+++ b/include/ui/GraphicBuffer.h
@@ -99,13 +99,16 @@ public:
status_t unlock();
ANativeWindowBuffer* getNativeBuffer() const;
-
- void setIndex(int index);
- int getIndex() const;
// for debugging
static void dumpAllocationsToSystemLog();
+ // Flattenable protocol
+ size_t getFlattenedSize() const;
+ size_t getFdCount() const;
+ status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
+ status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
+
private:
~GraphicBuffer();
@@ -137,16 +140,8 @@ private:
void free_handle();
- // Flattenable protocol
- size_t getFlattenedSize() const;
- size_t getFdCount() const;
- status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
- status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
-
-
GraphicBufferMapper& mBufferMapper;
ssize_t mInitCheck;
- int mIndex;
// If we're wrapping another buffer then this reference will make sure it
// doesn't get freed.