Home
last modified time | relevance | path

Searched refs:requestedSize (Results 1 – 24 of 24) sorted by relevance

/third_party/flutter/skia/third_party/externals/angle2/src/common/
DMemoryBuffer.cpp85 bool ScratchBuffer::get(size_t requestedSize, MemoryBuffer **memoryBufferOut) in get() argument
87 return getImpl(requestedSize, memoryBufferOut, Optional<uint8_t>::Invalid()); in get()
90 bool ScratchBuffer::getInitialized(size_t requestedSize, in getInitialized() argument
94 return getImpl(requestedSize, memoryBufferOut, Optional<uint8_t>(initValue)); in getInitialized()
97 bool ScratchBuffer::getImpl(size_t requestedSize, in getImpl() argument
101 if (mScratchMemory.size() == requestedSize) in getImpl()
108 if (mScratchMemory.size() > requestedSize) in getImpl()
113 if (mResetCounter == 0 || mScratchMemory.size() < requestedSize) in getImpl()
116 if (!mScratchMemory.resize(requestedSize)) in getImpl()
127 ASSERT(mScratchMemory.size() >= requestedSize); in getImpl()
DMemoryBuffer.h69 bool get(size_t requestedSize, MemoryBuffer **memoryBufferOut);
72 bool getInitialized(size_t requestedSize, MemoryBuffer **memoryBufferOut, uint8_t initValue);
80 bool getImpl(size_t requestedSize, MemoryBuffer **memoryBufferOut, Optional<uint8_t> initValue);
/third_party/skia/third_party/externals/angle2/src/common/
DMemoryBuffer.cpp111 bool ScratchBuffer::get(size_t requestedSize, MemoryBuffer **memoryBufferOut) in get() argument
113 return getImpl(requestedSize, memoryBufferOut, Optional<uint8_t>::Invalid()); in get()
116 bool ScratchBuffer::getInitialized(size_t requestedSize, in getInitialized() argument
120 return getImpl(requestedSize, memoryBufferOut, Optional<uint8_t>(initValue)); in getInitialized()
123 bool ScratchBuffer::getImpl(size_t requestedSize, in getImpl() argument
127 if (mScratchMemory.size() == requestedSize) in getImpl()
134 if (mScratchMemory.size() > requestedSize) in getImpl()
139 if (mScratchMemory.size() < requestedSize) in getImpl()
141 if (!mScratchMemory.resize(requestedSize)) in getImpl()
152 ASSERT(mScratchMemory.size() >= requestedSize); in getImpl()
DMemoryBuffer.h73 bool get(size_t requestedSize, MemoryBuffer **memoryBufferOut);
76 bool getInitialized(size_t requestedSize, MemoryBuffer **memoryBufferOut, uint8_t initValue);
84 bool getImpl(size_t requestedSize, MemoryBuffer **memoryBufferOut, Optional<uint8_t> initValue);
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DByteBufferWriter.java114 private static byte[] getOrCreateBuffer(int requestedSize) { in getOrCreateBuffer() argument
115 requestedSize = max(requestedSize, MIN_CACHED_BUFFER_SIZE); in getOrCreateBuffer()
119 if (buffer == null || needToReallocate(requestedSize, buffer.length)) { in getOrCreateBuffer()
120 buffer = new byte[requestedSize]; in getOrCreateBuffer()
123 if (requestedSize <= MAX_CACHED_BUFFER_SIZE) { in getOrCreateBuffer()
130 private static boolean needToReallocate(int requestedSize, int bufferLength) { in needToReallocate() argument
132 return bufferLength < requestedSize in needToReallocate()
133 && bufferLength < requestedSize * BUFFER_REALLOCATION_THRESHOLD; in needToReallocate()
/third_party/skia/src/gpu/
DGrSubRunAllocator.h27 static constexpr int PlatformMinimumSizeWithOverhead(int requestedSize, int assumedAlignment) { in PlatformMinimumSizeWithOverhead() argument
29 requestedSize, assumedAlignment, sizeof(Block), kMaxAlignment); in PlatformMinimumSizeWithOverhead()
33 int requestedSize, int assumedAlignment, int blockSize, int maxAlignment) { in MinimumSizeWithOverhead() argument
34 SkASSERT_RELEASE(0 <= requestedSize && requestedSize < kMaxByteSize); in MinimumSizeWithOverhead()
56 int minimumSize = AlignUp(requestedSize, minAlignment) in MinimumSizeWithOverhead()
DGrSubRunAllocator.cpp61 void GrBagOfBytes::needMoreBytes(int requestedSize, int alignment) { in needMoreBytes() argument
64 std::max(requestedSize, nextBlockSize), kAllocationAlignment); in needMoreBytes()
75 SkASSERT(fCapacity >= requestedSize); in needMoreBytes()
/third_party/skia/third_party/externals/oboe/src/common/
DQuirksManager.cpp30 int32_t requestedSize) { in clipBufferSize() argument
32 return requestedSize; in clipBufferSize()
47 int32_t adjustedSize = requestedSize; in clipBufferSize()
DQuirksManager.h82 int32_t clipBufferSize(AudioStream &stream, int32_t requestedSize);
/third_party/skia/experimental/graphite/src/
DDrawBufferManager.cpp28 static bool can_fit(size_t requestedSize, in can_fit() argument
33 return requestedSize <= (buffer->size() - startOffset); in can_fit()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DRingBuffer.h41 UploadHandle SubAllocate(size_t requestedSize);
/third_party/skia/src/codec/
DSkIcoCodec.h83 int chooseCodec(const SkISize& requestedSize, int startIndex);
DSkIcoCodec.cpp234 int SkIcoCodec::chooseCodec(const SkISize& requestedSize, int startIndex) { in chooseCodec() argument
239 if (fEmbeddedCodecs->operator[](i)->dimensions() == requestedSize) { in chooseCodec()
/third_party/flutter/skia/src/codec/
DSkIcoCodec.h83 int chooseCodec(const SkISize& requestedSize, int startIndex);
DSkIcoCodec.cpp227 int SkIcoCodec::chooseCodec(const SkISize& requestedSize, int startIndex) { in chooseCodec() argument
232 if (fEmbeddedCodecs->operator[](i)->dimensions() == requestedSize) { in chooseCodec()
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dshifted_box.dart735 /// The [requestedSize] and [alignment] arguments must not be null.
741 @required Size requestedSize,
744 }) : assert(requestedSize != null),
745 _requestedSize = requestedSize,
749 Size get requestedSize => _requestedSize;
751 set requestedSize(Size value) {
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dchip.dart2346 final double requestedSize = math.max(0.0, contentSize);
2348 width: requestedSize,
2349 height: requestedSize,
2368 final double requestedSize = math.max(0.0, contentSize);
2370 width: requestedSize,
2371 height: requestedSize,
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderer11.h426 size_t requestedSize,
DRenderer11.cpp3689 size_t requestedSize, in getScratchMemoryBuffer() argument
3692 ANGLE_CHECK_GL_ALLOC(context11, mScratchMemoryBuffer.get(requestedSize, bufferOut)); in getScratchMemoryBuffer()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderer11.h407 size_t requestedSize,
DRenderer11.cpp4026 size_t requestedSize, in getScratchMemoryBuffer() argument
4029 ANGLE_CHECK_GL_ALLOC(context11, mScratchMemoryBuffer.get(requestedSize, bufferOut)); in getScratchMemoryBuffer()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleTests.cpp5188 void combinationsRecursive(const ElementsVector& elements, size_t requestedSize, CombinationVector&… in combinationsRecursive() argument
5190 if (partial.size() == requestedSize) in combinationsRecursive()
5197 combinationsRecursive(elements, requestedSize, solutions, partial); in combinationsRecursive()
5203 CombinationVector combinations(const ElementsVector& elements, size_t requestedSize) in combinations() argument
5208 combinationsRecursive(elements, requestedSize, solutions, partial); in combinations()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineMultisampleTests.cpp5188 void combinationsRecursive(const ElementsVector& elements, size_t requestedSize, CombinationVector&… in combinationsRecursive() argument
5190 if (partial.size() == requestedSize) in combinationsRecursive()
5197 combinationsRecursive(elements, requestedSize, solutions, partial); in combinationsRecursive()
5203 CombinationVector combinations(const ElementsVector& elements, size_t requestedSize) in combinations() argument
5208 combinationsRecursive(elements, requestedSize, solutions, partial); in combinations()
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dbasic.dart2532 requestedSize: size,
2541 ..requestedSize = size