Searched refs:allocator (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/libs/hwui/
H A DDisplayList.h71 PlaybackStateStruct(OpenGLRenderer& renderer, int replayFlags, LinearAllocator* allocator) argument
74 , mAllocator(allocator) {}
82 // TODO: move this allocator to be owned by object with clear frame lifecycle
132 // pointers to all ops within display list, pointing into allocator data
160 return allocator.usedSize();
174 // allocator into which all ops were allocated
175 LinearAllocator allocator; member in class:android::uirenderer::DisplayListData
H A DSnapshot.h46 /** static void* operator new(size_t size); PURPOSELY OMITTED, allocator only **/
47 static void* operator new(size_t size, LinearAllocator& allocator) { argument
48 return allocator.alloc(size);
173 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds,
H A DStatefulBaseRenderer.h98 void setClippingOutline(LinearAllocator& allocator, const Outline* outline);
99 void setClippingRoundRect(LinearAllocator& allocator,
H A DStatefulBaseRenderer.cpp197 void StatefulBaseRenderer::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { argument
208 setClippingRoundRect(allocator, bounds, radius, false);
212 void StatefulBaseRenderer::setClippingRoundRect(LinearAllocator& allocator, argument
214 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
H A DDeferredDisplayList.h51 static void* operator new(size_t size, LinearAllocator& allocator) { argument
52 return allocator.alloc(size);
82 friend class DeferStateStruct; // used to give access to allocator
H A DRenderNode.cpp436 SaveLayerOp* op = new (handler.allocator()) SaveLayerOp(
445 ClipRectOp* op = new (handler.allocator()) ClipRectOp(
455 renderer.setClippingRoundRect(handler.allocator(), bounds, mProperties.getRevealClip().getRadius());
457 renderer.setClippingOutline(handler.allocator(), &(mProperties.getOutline()));
591 inline LinearAllocator& allocator() { return *(mDeferStruct.mAllocator); } function in class:android::uirenderer::DeferOperationHandler
618 inline LinearAllocator& allocator() { return *(mReplayStruct.mAllocator); } function in class:android::uirenderer::ReplayOperationHandler
712 DisplayListOp* shadowOp = new (handler.allocator()) DrawShadowOp(
799 LinearAllocator& alloc = handler.allocator();
895 LinearAllocator& alloc = handler.allocator();
H A DSnapshot.cpp219 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument
231 RoundRectClipState* state = new (allocator) RoundRectClipState;
H A DDisplayListRenderer.h175 LinearAllocator& alloc() { return mDisplayListData->allocator; }
191 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
H A DDisplayListOp.h69 static void* operator new(size_t size, LinearAllocator& allocator) { argument
70 return allocator.alloc(size);
/frameworks/native/libs/gui/
H A DBufferQueue.cpp58 const sp<IGraphicBufferAlloc>& allocator) {
64 sp<BufferQueueCore> core(new BufferQueueCore(allocator));
56 createBufferQueue(sp<IGraphicBufferProducer>* outProducer, sp<IGraphicBufferConsumer>* outConsumer, const sp<IGraphicBufferAlloc>& allocator) argument
H A DBufferQueueCore.cpp44 BufferQueueCore::BufferQueueCore(const sp<IGraphicBufferAlloc>& allocator) : argument
45 mAllocator(allocator),
71 if (allocator == NULL) {
/frameworks/native/include/binder/
H A DMemoryDealer.h51 SimpleBestFitAllocator* allocator() const;
/frameworks/native/include/gui/
H A DBufferQueue.h75 // producers and consumers. allocator is used to allocate all the
79 const sp<IGraphicBufferAlloc>& allocator = NULL);
H A DBufferQueueCore.h73 // producers and consumers. allocator is used to allocate all the needed
75 BufferQueueCore(const sp<IGraphicBufferAlloc>& allocator = NULL);
/frameworks/native/libs/gui/tests/
H A DStreamSplitter_test.cpp79 sp<CountedAllocator> allocator(new CountedAllocator);
83 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
87 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer, allocator);
134 ASSERT_EQ(1, allocator->getAllocCount());
139 sp<CountedAllocator> allocator(new CountedAllocator);
143 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
149 &outputConsumers[output], allocator);
203 ASSERT_EQ(1, allocator->getAllocCount());
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp112 GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
113 allocator.free(handle);
144 GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
145 allocator.free(handle);
154 GraphicBufferAllocator& allocator = GraphicBufferAllocator::get(); local
155 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp181 * they're special as they don't have any record in the allocator
242 const ssize_t offset = allocator()->allocate(size);
251 allocator()->deallocate(offset);
256 allocator()->dump(what);
263 SimpleBestFitAllocator* MemoryDealer::allocator() const { function in class:android::MemoryDealer
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp252 JavaPixelAllocator* allocator = (JavaPixelAllocator*) decoder->getAllocator(); local
253 jbyteArray buff = allocator->getStorageObjAndReset();
H A DBitmap.cpp356 JavaPixelAllocator allocator(env);
358 if (!src->copyTo(&result, dstCT, &allocator)) {
361 return GraphicsJNI::createBitmap(env, new SkBitmap(result), allocator.getStorageObj(),
683 JavaPixelAllocator allocator(env);
685 src->extractAlpha(dst, paint, &allocator, &offset);
700 return GraphicsJNI::createBitmap(env, dst, allocator.getStorageObj(),

Completed in 152 milliseconds