/frameworks/base/libs/hwui/ |
D | BakedOpState.cpp | 33 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState() argument 55 clipState = snapshot.serializeIntersectedClip(allocator, in ResolvedRenderState() 80 auto localMask = allocator.create<SkPath>(); in ResolvedRenderState() 87 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState() argument 90 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState() 96 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) in ResolvedRenderState() argument 98 , clipState(snapshot.mutateClipArea().serializeClip(allocator)) in ResolvedRenderState() 112 BakedOpState* BakedOpState::tryConstruct(LinearAllocator& allocator, in tryConstruct() argument 115 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>( in tryConstruct() 116 allocator, snapshot, recordedOp, false, false); in tryConstruct() [all …]
|
D | BakedOpState.h | 55 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, 59 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, 63 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot); 106 static BakedOpState* tryConstruct(LinearAllocator& allocator, 109 static BakedOpState* tryConstructUnbounded(LinearAllocator& allocator, 119 static BakedOpState* tryStrokeableOpConstruct(LinearAllocator& allocator, 123 static BakedOpState* tryShadowOpConstruct(LinearAllocator& allocator, 126 static BakedOpState* directConstruct(LinearAllocator& allocator, 143 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, in BakedOpState() argument 145 : computedState(allocator, snapshot, recordedOp, expandForStroke, expandForPathTexture) in BakedOpState() [all …]
|
D | LayerBuilder.cpp | 239 void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState) { in onDeferOp() argument 243 flushLayerClears(allocator); in onDeferOp() 255 void LayerBuilder::flushLayerClears(LinearAllocator& allocator) { in flushLayerClears() argument 261 Vertex* const verts = (Vertex*) allocator.create_trivial_array<Vertex>(vertCount); in flushLayerClears() 276 SkPaint* paint = allocator.create<SkPaint>(); in flushLayerClears() 278 SimpleRectsOp* op = allocator.create_trivial<SimpleRectsOp>(bounds, in flushLayerClears() 281 BakedOpState* bakedState = BakedOpState::directConstruct(allocator, in flushLayerClears() 283 deferUnmergeableOp(allocator, bakedState, OpBatchType::Vertices); in flushLayerClears() 287 void LayerBuilder::deferUnmergeableOp(LinearAllocator& allocator, in deferUnmergeableOp() argument 289 onDeferOp(allocator, op); in deferUnmergeableOp() [all …]
|
D | LayerBuilder.h | 88 void deferUnmergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId); 92 void deferMergeableOp(LinearAllocator& allocator, 118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState); 119 void flushLayerClears(LinearAllocator& allocator);
|
D | Snapshot.h | 48 static void* operator new(size_t size, LinearAllocator& allocator) { in new() argument 49 return allocator.alloc<RoundRectClipState>(size); in new() 150 WARN_UNUSED_RESULT const ClipBase* serializeIntersectedClip(LinearAllocator& allocator, 176 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds,
|
D | Snapshot.cpp | 116 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, in setClippingRoundRect() argument 128 RoundRectClipState* state = new (allocator) RoundRectClipState; in setClippingRoundRect() 172 const ClipBase* Snapshot::serializeIntersectedClip(LinearAllocator& allocator, in serializeIntersectedClip() argument 180 return target->mClipArea->serializeIntersectedClip(allocator, in serializeIntersectedClip()
|
D | ClipArea.cpp | 361 const ClipBase* ClipArea::serializeClip(LinearAllocator& allocator) { in serializeClip() argument 376 serialization = allocator.create<ClipRect>(mClipRect); in serializeClip() 379 serialization = allocator.create<ClipRectList>(mRectangleList); in serializeClip() 383 serialization = allocator.create<ClipRegion>(mClipRegion); in serializeClip() 417 const ClipBase* ClipArea::serializeIntersectedClip(LinearAllocator& allocator, in serializeIntersectedClip() argument 421 if (!recordedClip) return serializeClip(allocator); in serializeIntersectedClip() 436 auto rectClip = allocator.create<ClipRect>(recordedClip->rect); in serializeIntersectedClip() 470 ClipRegion* regionClip = allocator.create<ClipRegion>(); in serializeIntersectedClip() 487 auto rectListClip = allocator.create<ClipRectList>(mRectangleList); in serializeIntersectedClip()
|
D | CanvasState.h | 134 void setClippingOutline(LinearAllocator& allocator, const Outline* outline); 135 void setClippingRoundRect(LinearAllocator& allocator, 137 mSnapshot->setClippingRoundRect(allocator, rect, radius, highPriority);
|
/frameworks/native/vulkan/nulldrv/ |
D | null_driver.cpp | 39 VkAllocationCallbacks allocator; member 99 VkAllocationCallbacks allocator; member 286 const VkAllocationCallbacks* allocator, in CreateInstance() argument 288 if (!allocator) in CreateInstance() 289 allocator = &kDefaultAllocCallbacks; in CreateInstance() 292 static_cast<VkInstance_T*>(allocator->pfnAllocation( in CreateInstance() 293 allocator->pUserData, sizeof(VkInstance_T), alignof(VkInstance_T), in CreateInstance() 299 instance->allocator = *allocator; in CreateInstance() 337 instance->allocator.pfnFree(instance->allocator.pUserData, instance); in DestroyInstance() 650 const VkAllocationCallbacks* allocator, in CreateDevice() argument [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.cpp | 25 const VkAllocationCallbacks& allocator) { in AddCallback() argument 26 void* mem = allocator.pfnAllocation(allocator.pUserData, sizeof(Node), in AddCallback() 42 const VkAllocationCallbacks& allocator) { in RemoveCallback() argument 53 allocator.pfnFree(allocator.pUserData, node); in RemoveCallback() 120 const VkAllocationCallbacks* allocator, in CreateDebugReportCallbackEXT() argument 126 instance, create_info, allocator, &driver_handle); in CreateDebugReportCallbackEXT() 134 (allocator) ? *allocator : GetData(instance).allocator); in CreateDebugReportCallbackEXT() 138 allocator); in CreateDebugReportCallbackEXT() 151 const VkAllocationCallbacks* allocator) { in DestroyDebugReportCallbackEXT() argument 160 node, (allocator) ? *allocator : GetData(instance).allocator); in DestroyDebugReportCallbackEXT() [all …]
|
D | api.cpp | 49 OverrideLayerNames(bool is_instance, const VkAllocationCallbacks& allocator) in OverrideLayerNames() argument 51 allocator_(allocator), in OverrideLayerNames() 310 const VkAllocationCallbacks& allocator) in OverrideExtensionNames() argument 312 allocator_(allocator), in OverrideExtensionNames() 381 const VkAllocationCallbacks* allocator, 386 const VkAllocationCallbacks* allocator, 390 const VkAllocationCallbacks* allocator); 393 const VkAllocationCallbacks* allocator); 401 const VkAllocationCallbacks& allocator); 422 const VkAllocationCallbacks* allocator, [all …]
|
D | swapchain.cpp | 483 const VkAllocationCallbacks* allocator, in CreateAndroidSurfaceKHR() argument 485 if (!allocator) in CreateAndroidSurfaceKHR() 486 allocator = &GetData(instance).allocator; in CreateAndroidSurfaceKHR() 487 void* mem = allocator->pfnAllocation(allocator->pUserData, sizeof(Surface), in CreateAndroidSurfaceKHR() 506 allocator->pfnFree(allocator->pUserData, surface); in CreateAndroidSurfaceKHR() 517 const VkAllocationCallbacks* allocator) { in DestroySurfaceKHR() argument 528 if (!allocator) in DestroySurfaceKHR() 529 allocator = &GetData(instance).allocator; in DestroySurfaceKHR() 530 allocator->pfnFree(allocator->pUserData, surface); in DestroySurfaceKHR() 776 const VkAllocationCallbacks* allocator, in CreateSwapchainKHR() argument [all …]
|
D | driver.cpp | 90 const VkAllocationCallbacks& allocator); 93 const VkAllocationCallbacks& allocator); 290 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument 292 allocator_(allocator), in CreateInfoWrapper() 302 const VkAllocationCallbacks& allocator) in CreateInfoWrapper() argument 304 allocator_(allocator), in CreateInfoWrapper() 588 InstanceData* AllocateInstanceData(const VkAllocationCallbacks& allocator) { in AllocateInstanceData() argument 589 void* data_mem = allocator.pfnAllocation( in AllocateInstanceData() 590 allocator.pUserData, sizeof(InstanceData), alignof(InstanceData), in AllocateInstanceData() 595 return new (data_mem) InstanceData(allocator); in AllocateInstanceData() [all …]
|
D | swapchain.h | 26 …kAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* allocator, VkSurfaceKHR* s… 27 …stroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* allocator); 32 …nst VkSwapchainCreateInfoKHR* create_info, const VkAllocationCallbacks* allocator, VkSwapchainKHR*… 33 …chainKHR(VkDevice device, VkSwapchainKHR swapchain_handle, const VkAllocationCallbacks* allocator);
|
D | driver.h | 68 allocator(alloc), in InstanceData() 76 const VkAllocationCallbacks allocator; member 90 allocator(alloc), in DeviceData() 98 const VkAllocationCallbacks allocator; member
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 28 LinearAllocator allocator; in TEST() local 38 ResolvedRenderState state(allocator, *parentSnapshot, recordedOp, false, false); in TEST() 47 ResolvedRenderState state(allocator, *parentSnapshot, recordedOp, false, false); in TEST() 63 LinearAllocator allocator; in TEST() local 73 ResolvedRenderState state(allocator, *parentSnapshot, recordedOp, false, false); in TEST() 80 ResolvedRenderState state(allocator, *parentSnapshot, recordedOp, false, false); in TEST() 157 LinearAllocator allocator; in TEST() local 173 ResolvedRenderState state(allocator, *parentSnapshot, recordedOp, true, false); in TEST() 185 LinearAllocator allocator; in TEST() local 188 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp)) in TEST() [all …]
|
D | ClipAreaTests.cpp | 124 LinearAllocator allocator; in TEST() local 127 EXPECT_EQ(nullptr, area.serializeClip(allocator)); in TEST() 132 auto serializedClip = area.serializeClip(allocator); in TEST() 137 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST() 146 auto serializedClip = area.serializeClip(allocator); in TEST() 153 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST() 162 auto serializedClip = area.serializeClip(allocator); in TEST() 170 EXPECT_EQ(serializedClip, area.serializeClip(allocator)) in TEST() 177 LinearAllocator allocator; in TEST() local 182 auto serializedClip = area.serializeClip(allocator); in TEST() [all …]
|
D | SnapshotTests.cpp | 32 LinearAllocator allocator; in TEST() local 35 auto intersectWithChild = child->serializeIntersectedClip(allocator, in TEST() 43 auto intersectWithRoot = child->serializeIntersectedClip(allocator, in TEST()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | TvApp.cpp | 48 TvApp(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvApp() argument 50 , mAllocator(allocator) { } in TvApp() 236 TvAppNoRoundedCorner(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppNoRoundedCorner() argument 237 : TvApp(allocator) { } in TvAppNoRoundedCorner() 248 TvAppColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppColorFilter() argument 249 : TvApp(allocator) { } in TvAppColorFilter() 260 TvAppNoRoundedCornerColorFilter(BitmapAllocationTestUtils::BitmapAllocator allocator) in TvAppNoRoundedCornerColorFilter() argument 261 : TvApp(allocator) { } in TvAppNoRoundedCornerColorFilter()
|
D | BitmapShaders.cpp | 30 BitmapShaders(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapShaders() argument 32 , mAllocator(allocator) { } in BitmapShaders()
|
D | BitmapFillrate.cpp | 34 BitmapFillrate(BitmapAllocationTestUtils::BitmapAllocator allocator) in BitmapFillrate() argument 36 , mAllocator(allocator) { } in BitmapFillrate()
|
/frameworks/base/libs/hwui/utils/ |
D | LinearAllocator.h | 160 explicit LinearStdAllocator(LinearAllocator& allocator) in LinearStdAllocator() argument 161 : linearAllocator(allocator) {} in LinearStdAllocator() 198 explicit LsaVector(const LinearStdAllocator<T>& allocator) in LsaVector() argument 199 : std::vector<T, LinearStdAllocator<T>>(allocator) {} in LsaVector()
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | buffer_wrapper.h | 114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) in BufferWrapper() argument 115 : buffer_(buffer, allocator) {} in BufferWrapper() 117 BufferWrapper(BufferType&& buffer, const Allocator& allocator) in BufferWrapper() argument 118 : buffer_(std::move(buffer), allocator) {} in BufferWrapper() 166 template <typename T, typename Allocator = std::allocator<T>>
|
/frameworks/base/libs/hwui/tests/common/ |
D | BitmapAllocationTestUtils.h | 52 template <class T, BitmapAllocator allocator> 54 return new T(allocator); in createBitmapAllocationScene()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 176 SkBRDAllocator* allocator = nullptr; in nativeDecodeRegion() local 180 allocator = &recycleAlloc; in nativeDecodeRegion() 184 allocator = &heapAlloc; in nativeDecodeRegion() 190 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()
|