MCPcopy Index your code
hub / github.com/processing/processing / disposeSourceBuffer

Method disposeSourceBuffer

core/src/processing/opengl/Texture.java:835–849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

833
834
835 public void disposeSourceBuffer() {
836 if (usedBuffers == null) return;
837
838 while (0 < usedBuffers.size()) {
839 BufferData data = null;
840 try {
841 data = usedBuffers.remove(0);
842 } catch (NoSuchElementException ex) {
843 PGraphics.showWarning("Cannot remove used buffer");
844 }
845 if (data != null) {
846 data.dispose();
847 }
848 }
849 }
850
851 public void getBufferPixels(int[] pixels) {
852 // We get the buffer either from the used buffers or the cache, giving

Callers

nothing calls this directly

Calls 4

showWarningMethod · 0.95
disposeMethod · 0.95
sizeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected