Lines Matching refs:buffer
46 INIT_LOGD(" Setting render buffer cache size to %sMB", property);
49 INIT_LOGD(" Using default render buffer cache size of %.2fMB",
91 void RenderBufferCache::deleteBuffer(RenderBuffer* buffer) {
92 if (buffer) {
93 RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d)",
94 RenderBuffer::formatName(buffer->getFormat()),
95 buffer->getWidth(), buffer->getHeight());
97 mSize -= buffer->getSize();
98 delete buffer;
111 RenderBuffer* buffer = NULL;
120 buffer = entry.mBuffer;
121 mSize -= buffer->getSize();
123 RENDER_BUFFER_LOGD("Found %s render buffer (%dx%d)",
126 buffer = new RenderBuffer(format, width, height);
128 RENDER_BUFFER_LOGD("Created new %s render buffer (%dx%d)",
132 buffer->bind();
133 buffer->allocate();
135 return buffer;
138 bool RenderBufferCache::put(RenderBuffer* buffer) {
139 if (!buffer) return false;
141 const uint32_t size = buffer->getSize();
151 RenderBufferEntry entry(buffer);
156 RENDER_BUFFER_LOGD("Added %s render buffer (%dx%d)",
157 RenderBuffer::formatName(buffer->getFormat()),
158 buffer->getWidth(), buffer->getHeight());