• Home
  • Raw
  • Download

Lines Matching refs:mapper

87             BufferMapper *mapper = mBufferPool->getMapper(i);  in deinitialize()  local
88 mapper->unmap(); in deinitialize()
89 delete mapper; in deinitialize()
97 BufferMapper *mapper = mFrameBuffers.valueAt(j); in deinitialize() local
98 mapper->unmap(); in deinitialize()
99 delete mapper; in deinitialize()
119 BufferMapper *mapper = mBufferPool->getMapper(i); in dump() local
122 mapper->getHandle(), in dump()
123 mapper->getWidth(), in dump()
124 mapper->getHeight(), in dump()
125 mapper->getFormat(), in dump()
126 mapper->getRef()); in dump()
156 BufferMapper* mapper; in map() local
161 mapper = mBufferPool->getMapper(buffer.getKey()); in map()
162 if (mapper) { in map()
164 mapper->incRef(); in map()
165 return mapper; in map()
171 mapper = createBufferMapper(mGrallocModule, buffer); in map()
172 if (!mapper) { in map()
176 ret = mapper->map(); in map()
179 delete mapper; in map()
180 mapper = NULL; in map()
183 ret = mBufferPool->addMapper(buffer.getKey(), mapper); in map()
189 mapper->incRef(); in map()
190 return mapper; in map()
194 if (mapper) { in map()
195 mapper->unmap(); in map()
196 delete mapper; in map()
201 void BufferManager::unmap(BufferMapper *mapper) in unmap() argument
204 if (!mapper) { in unmap()
210 int refCount = mapper->decRef(); in unmap()
215 mBufferPool->removeMapper(mapper); in unmap()
216 mapper->unmap(); in unmap()
217 delete mapper; in unmap()
252 BufferMapper *mapper = NULL; in allocFrameBuffer() local
261 mapper = createBufferMapper(mGrallocModule, *buffer); in allocFrameBuffer()
262 if (!mapper) { in allocFrameBuffer()
268 if (!(fbHandle = mapper->getFbHandle(0))) { in allocFrameBuffer()
273 mFrameBuffers.add(fbHandle, mapper); in allocFrameBuffer()
282 if (mapper) { in allocFrameBuffer()
283 delete mapper; in allocFrameBuffer()
304 BufferMapper *mapper = mFrameBuffers.valueAt(index); in freeFrameBuffer() local
305 buffer_handle_t handle = mapper->getHandle(); in freeFrameBuffer()
306 mapper->putFbHandle(); in freeFrameBuffer()
307 delete mapper; in freeFrameBuffer()