summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2016-12-02 10:22:57 -0800
committer John Reck <jreck@google.com> 2016-12-09 22:04:53 +0000
commit03240107a54c8a0ad1e7e496c81182eb5a086f89 (patch)
treebefc2f5b366936c1692a11c185e418c810dd0418
parentce44045d855586394e5b023d1cee69c5fd9dce6d (diff)
Delete dead code
Test: none, it's unused code Change-Id: If25f4f22d8f3a9819f673bacce9ad4c213dd73ed
-rw-r--r--libs/hwui/PatchCache.cpp4
-rw-r--r--libs/hwui/PatchCache.h6
2 files changed, 1 insertions, 9 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 52c62cc34670..983c17e92266 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -36,8 +36,7 @@ PatchCache::PatchCache(RenderState& renderState)
, mSize(0)
, mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity)
, mMeshBuffer(0)
- , mFreeBlocks(nullptr)
- , mGenerationId(0) {}
+ , mFreeBlocks(nullptr) {}
PatchCache::~PatchCache() {
clear();
@@ -158,7 +157,6 @@ void PatchCache::createVertexBuffer() {
mMaxSize, nullptr, GL_DYNAMIC_DRAW);
mSize = 0;
mFreeBlocks = new BufferBlock(0, mMaxSize);
- mGenerationId++;
}
/**
diff --git a/libs/hwui/PatchCache.h b/libs/hwui/PatchCache.h
index 0624c355332c..aa746c7dfa15 100644
--- a/libs/hwui/PatchCache.h
+++ b/libs/hwui/PatchCache.h
@@ -69,10 +69,6 @@ public:
return mMeshBuffer;
}
- uint32_t getGenerationId() const {
- return mGenerationId;
- }
-
/**
* Removes the entries associated with the specified 9-patch. This is meant
* to be called from threads that are not the EGL context thread (GC thread
@@ -175,8 +171,6 @@ private:
// First available free block inside the mesh buffer
BufferBlock* mFreeBlocks;
- uint32_t mGenerationId;
-
// Garbage tracking, required to handle GC events on the VM side
Vector<Res_png_9patch*> mGarbage;
mutable Mutex mLock;