MCPcopy Create free account
hub / github.com/Kitware/VTK / Resize

Method Resize

Rendering/ParallelLIC/vtkParallelTimer.cxx:350–367  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

348
349//------------------------------------------------------------------------------
350void vtkParallelTimerBuffer::Resize(size_t newSize)
351{
352#if defined(vtkParallelTimerBufferDEBUG)
353 size_t oldSize = this->Size;
354#endif
355 if (newSize <= this->Size)
356 {
357 return;
358 }
359 while (this->Size < newSize)
360 {
361 this->Size += this->GrowBy;
362 }
363 this->Data = static_cast<char*>(realloc(this->Data, this->Size));
364#if defined(vtkParallelTimerBufferDEBUG)
365 memset(this->Data + oldSize, -1, this->Size - oldSize);
366#endif
367}
368
369//------------------------------------------------------------------------------
370vtkStandardNewMacro(vtkParallelTimer);

Callers 5

PushBackMethod · 0.95
RenderMethod · 0.45
CaptureMethod · 0.45
MasterEndRenderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected