Loading libs/hwui/PatchCache.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -158,7 +157,6 @@ void PatchCache::createVertexBuffer() { mMaxSize, nullptr, GL_DYNAMIC_DRAW); mSize = 0; mFreeBlocks = new BufferBlock(0, mMaxSize); mGenerationId++; } /** Loading libs/hwui/PatchCache.h +0 −6 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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; Loading Loading
libs/hwui/PatchCache.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -158,7 +157,6 @@ void PatchCache::createVertexBuffer() { mMaxSize, nullptr, GL_DYNAMIC_DRAW); mSize = 0; mFreeBlocks = new BufferBlock(0, mMaxSize); mGenerationId++; } /** Loading
libs/hwui/PatchCache.h +0 −6 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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; Loading