Searched defs:allocator (Results 1 - 13 of 13) sorted by relevance

/frameworks/native/libs/gui/
H A DBufferQueue.cpp66 const sp<IGraphicBufferAlloc>& allocator) {
72 sp<BufferQueueCore> core(new BufferQueueCore(allocator));
64 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),
77 if (allocator == NULL) {
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp242 JavaPixelAllocator* allocator = (JavaPixelAllocator*) decoder->getAllocator(); local
246 return GraphicsJNI::createBitmap(env, allocator->getStorageObjAndReset(),
/frameworks/base/libs/hwui/
H A DCanvasState.cpp172 void CanvasState::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { argument
183 setClippingRoundRect(allocator, bounds, radius, false);
187 void CanvasState::setClippingRoundRect(LinearAllocator& allocator, argument
189 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
192 void CanvasState::setProjectionPathMask(LinearAllocator& allocator, const SkPath* path) { argument
193 mSnapshot->setProjectionPathMask(allocator, path);
H A DDeferredDisplayList.h51 static void* operator new(size_t size, LinearAllocator& allocator) { argument
52 return allocator.alloc(size);
82 friend struct DeferStateStruct; // used to give access to allocator
H A DDisplayList.h72 PlaybackStateStruct(OpenGLRenderer& renderer, int replayFlags, LinearAllocator* allocator) argument
75 , mAllocator(allocator) {}
83 // TODO: move this allocator to be owned by object with clear frame lifecycle
130 // pointers to all ops within display list, pointing into allocator data
156 return allocator.usedSize();
170 // allocator into which all ops were allocated
171 LinearAllocator allocator; member in class:android::uirenderer::DisplayListData
H A DSnapshot.cpp178 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument
190 RoundRectClipState* state = new (allocator) RoundRectClipState;
224 void Snapshot::setProjectionPathMask(LinearAllocator& allocator, const SkPath* path) { argument
226 ProjectionPathMask* mask = new (allocator) ProjectionPathMask;
H A DSnapshot.h47 /** static void* operator new(size_t size); PURPOSELY OMITTED, allocator only **/
48 static void* operator new(size_t size, LinearAllocator& allocator) { argument
49 return allocator.alloc(size);
68 /** static void* operator new(size_t size); PURPOSELY OMITTED, allocator only **/
69 static void* operator new(size_t size, LinearAllocator& allocator) { argument
70 return allocator.alloc(size);
200 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds,
206 void setProjectionPathMask(LinearAllocator& allocator, const SkPath* path);
H A DRenderNode.cpp430 SaveLayerOp* op = new (handler.allocator()) SaveLayerOp(
449 ClipRectOp* op = new (handler.allocator()) ClipRectOp(
459 renderer.setClippingRoundRect(handler.allocator(), bounds, mProperties.getRevealClip().getRadius());
461 renderer.setClippingOutline(handler.allocator(), &(mProperties.getOutline()));
595 inline LinearAllocator& allocator() { return *(mDeferStruct.mAllocator); } function in class:android::uirenderer::DeferOperationHandler
622 inline LinearAllocator& allocator() { return *(mReplayStruct.mAllocator); } function in class:android::uirenderer::ReplayOperationHandler
718 DisplayListOp* shadowOp = new (handler.allocator()) DrawShadowOp(
804 LinearAllocator& alloc = handler.allocator();
880 LinearAllocator& alloc = handler.allocator();
H A DDisplayListOp.h66 static void* operator new(size_t size, LinearAllocator& allocator) { argument
67 return allocator.alloc(size);
H A DOpenGLRenderer.cpp2193 void OpenGLRenderer::setClippingOutline(LinearAllocator& allocator, const Outline* outline) { argument
2194 mState.setClippingOutline(allocator, outline);
2197 void OpenGLRenderer::setClippingRoundRect(LinearAllocator& allocator, argument
2199 mState.setClippingRoundRect(allocator, rect, radius, highPriority);
2202 void OpenGLRenderer::setProjectionPathMask(LinearAllocator& allocator, const SkPath* path) { argument
2203 mState.setProjectionPathMask(allocator, path);
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp112 GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
113 allocator.free(handle);
148 GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
149 allocator.free(handle);
168 GraphicBufferAllocator& allocator = GraphicBufferAllocator::get(); local
170 status_t err = allocator.alloc(inWidth, inHeight, inFormat, inUsage,
/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

Completed in 141 milliseconds