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

/frameworks/base/libs/hwui/
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 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 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 DCanvasState.h130 void setClippingOutline(LinearAllocator& allocator, const Outline* outline);
131 void setClippingRoundRect(LinearAllocator& allocator,
133 void setProjectionPathMask(LinearAllocator& allocator, const SkPath* 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 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 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 DOpenGLRenderer.h400 void setClippingOutline(LinearAllocator& allocator, const Outline* outline);
401 void setClippingRoundRect(LinearAllocator& allocator,
403 void setProjectionPathMask(LinearAllocator& allocator, const SkPath* path);
H A DDisplayListCanvas.h256 LinearAllocator& alloc() { return mDisplayListData->allocator; }
273 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
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);
H A DDisplayListOp.h66 static void* operator new(size_t size, LinearAllocator& allocator) { argument
67 return allocator.alloc(size);
/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/native/include/binder/
H A DMemoryDealer.h51 SimpleBestFitAllocator* allocator() const;
/frameworks/native/libs/gui/tests/
H A DStreamSplitter_test.cpp82 sp<CountedAllocator> allocator(new CountedAllocator);
86 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
90 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer, allocator);
138 ASSERT_EQ(1, allocator->getAllocCount());
143 sp<CountedAllocator> allocator(new CountedAllocator);
147 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer, allocator);
153 &outputConsumers[output], allocator);
208 ASSERT_EQ(1, allocator->getAllocCount());
/frameworks/native/include/gui/
H A DBufferQueue.h76 // producers and consumers. allocator is used to allocate all the
80 const sp<IGraphicBufferAlloc>& allocator = NULL);
H A DBufferQueueCore.h76 // producers and consumers. allocator is used to allocate all the needed
78 BufferQueueCore(const sp<IGraphicBufferAlloc>& allocator = NULL);
/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
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp242 JavaPixelAllocator* allocator = (JavaPixelAllocator*) decoder->getAllocator(); local
246 return GraphicsJNI::createBitmap(env, allocator->getStorageObjAndReset(),
H A DBitmap.cpp752 JavaPixelAllocator allocator(env);
754 if (!src.copyTo(&result, dstCT, &allocator)) {
757 Bitmap* bitmap = allocator.getStorageObjAndReset();
767 AshmemPixelAllocator allocator(env);
768 if (!src.copyTo(&result, &allocator)) {
771 Bitmap* bitmap = allocator.getStorageObjAndReset();
1153 JavaPixelAllocator allocator(env);
1155 src.extractAlpha(&dst, paint, &allocator, &offset);
1169 return GraphicsJNI::createBitmap(env, allocator.getStorageObjAndReset(),

Completed in 3094 milliseconds