Searched refs:clampedSize (Results 1 – 2 of 2) sorted by relevance
1169 size_t clampedSize = size; in copyFromStorage() local1172 clampedSize = std::min(clampedSize, mBufferSize - destOffset); in copyFromStorage()1175 if (clampedSize == 0) in copyFromStorage()1189 ANGLE_TRY(source->map(context, sourceOffset, clampedSize, GL_MAP_READ_BIT, &sourcePointer)); in copyFromStorage()1191 auto err = setData(context, sourcePointer, destOffset, clampedSize); in copyFromStorage()1199 srcBox.right = static_cast<unsigned int>(sourceOffset + clampedSize); in copyFromStorage()
1047 size_t clampedSize = endOffset - startOffset;1048 if (clampedSize > 0)1050 [get() didModifyRange:NSMakeRange(startOffset, clampedSize)];