Home
last modified time | relevance | path

Searched refs:descriptorInfo (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/ui/
DGralloc2.cpp102 IMapper::BufferDescriptorInfo* descriptorInfo) const { in validateBufferDescriptorInfo()
108 if (descriptorInfo->usage & ~validUsageBits) { in validateBufferDescriptorInfo()
110 descriptorInfo->usage & ~validUsageBits); in validateBufferDescriptorInfo()
116 if (descriptorInfo->usage & BufferUsage::GPU_DATA_BUFFER && in validateBufferDescriptorInfo()
117 descriptorInfo->format != hardware::graphics::common::V1_1::PixelFormat::BLOB) { in validateBufferDescriptorInfo()
127 IMapper::BufferDescriptorInfo* descriptorInfo = in createDescriptor() local
131 status_t status = validateBufferDescriptorInfo(descriptorInfo); in createDescriptor()
149 ret = mMapperV2_1->createDescriptor_2_1(*descriptorInfo, hidl_cb); in createDescriptor()
152 descriptorInfo->width, in createDescriptor()
153 descriptorInfo->height, in createDescriptor()
[all …]
DGralloc3.cpp96 IMapper::BufferDescriptorInfo* descriptorInfo) const { in validateBufferDescriptorInfo()
99 if (descriptorInfo->usage & ~validUsageBits) { in validateBufferDescriptorInfo()
101 descriptorInfo->usage & ~validUsageBits); in validateBufferDescriptorInfo()
107 if (descriptorInfo->usage & BufferUsage::GPU_DATA_BUFFER && in validateBufferDescriptorInfo()
108 descriptorInfo->format != hardware::graphics::common::V1_2::PixelFormat::BLOB) { in validateBufferDescriptorInfo()
118 IMapper::BufferDescriptorInfo* descriptorInfo = in createDescriptor() local
122 status_t status = validateBufferDescriptorInfo(descriptorInfo); in createDescriptor()
136 hardware::Return<void> ret = mMapper->createDescriptor(*descriptorInfo, hidl_cb); in createDescriptor()
167 IMapper::BufferDescriptorInfo descriptorInfo; in validateBufferSize() local
168 sBufferDescriptorInfo(width, height, format, layerCount, usage, &descriptorInfo); in validateBufferSize()
[all …]
DGralloc4.cpp116 static status_t validateBufferDescriptorInfo(IMapper::BufferDescriptorInfo* descriptorInfo) { in validateBufferDescriptorInfo() argument
122 if (descriptorInfo->usage & ~validUsageBits) { in validateBufferDescriptorInfo()
124 descriptorInfo->usage & ~validUsageBits); in validateBufferDescriptorInfo()
131 descriptorInfo->format != hardware::graphics::common::V1_2::PixelFormat::BLOB && in validateBufferDescriptorInfo()
132 descriptorInfo->usage & BufferUsage::GPU_DATA_BUFFER) { in validateBufferDescriptorInfo()
178 IMapper::BufferDescriptorInfo* descriptorInfo = in createDescriptor() local
182 status_t status = validateBufferDescriptorInfo(descriptorInfo); in createDescriptor()
196 hardware::Return<void> ret = mMapper->createDescriptor(*descriptorInfo, hidl_cb); in createDescriptor()
227 IMapper::BufferDescriptorInfo descriptorInfo; in validateBufferSize() local
229 usage, &descriptorInfo) != OK) { in validateBufferSize()
[all …]
DGralloc5.cpp208 BufferDescriptorInfo descriptorInfo{ in makeDescriptor() local
215 auto nameLength = std::min(requestorName.length(), descriptorInfo.name.size() - 1); in makeDescriptor()
216 memcpy(descriptorInfo.name.data(), requestorName.data(), nameLength); in makeDescriptor()
218 return descriptorInfo; in makeDescriptor()
246 auto descriptorInfo = makeDescriptor(request.requestorName, request.width, request.height, in allocate() local
248 if (!descriptorInfo) { in allocate()
252 descriptorInfo->additionalOptions.reserve(request.extras.size()); in allocate()
257 descriptorInfo->additionalOptions.push_back(std::move(type)); in allocate()
261 auto status = mAllocator->allocate2(*descriptorInfo, 1, &result); in allocate()
731 auto descriptorInfo = makeDescriptor("", width, height, format, layerCount, usage); in isSupported() local
[all …]
/frameworks/native/libs/ui/include/ui/
DGralloc2.h67 hardware::graphics::mapper::V2_1::IMapper::BufferDescriptorInfo* descriptorInfo) const;
DGralloc3.h69 hardware::graphics::mapper::V3_0::IMapper::BufferDescriptorInfo* descriptorInfo) const;